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

霸气de小男生 提交于 2019-12-08 19:05:23

问题


After installed "eduTrac SIS" and accessing "dashboard" got this error

Ubuntu 16.4, PHP 7.0(php7.0-fpm), Apache2, Nginx,

URL gives error 500 and nginx/error.log displays,

FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function PHPBenchmark\bcadd() in /var/www/html/eduTrac-SIS/app/src/vendor/phpbenchmark/phpbenchmark/lib/PHPBenchmark/Utils.php:18


回答1:


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


来源:https://stackoverflow.com/questions/51094183/fatal-error-uncaught-error-call-to-undefined-function-bcadd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!