Fatal error: Uncaught Error: Call to undefined function bcadd()

For PHP 7.4- bcmath, install with apt or yum as below:

sudo apt install php7.4-bcmath

or

sudo yum install php7.4-bcmath

PHP does not recognize "bcadd()" gives the error. "bcadd()" function is included in "bcmath" PHP extention.

Just installing the relevant bcmath extension would solved the issue.

sudo apt-get install php7.0-bcmath

Please note, you should find the correct version of bcmath extension according to your PHP version. And restart apache

sudo service apache2 restart

Tags:

Nginx

Php

Bcmath