致命错误:未被捕获的错误:调用未定义的函数bcadd() [英] Fatal error: Uncaught Error: Call to undefined function bcadd()
问题描述
在安装"eduTrac SIS"并访问仪表板"后出现此错误
After installed "eduTrac SIS" and accessing "dashboard" got this error
Ubuntu 16.4,PHP 7.0(php7.0-fpm),Apache2,Nginx,
Ubuntu 16.4, PHP 7.0(php7.0-fpm), Apache2, Nginx,
URL给出错误500和nginx/error.log显示,
URL gives error 500 and nginx/error.log displays,
在stderr中发送的FastCGI:"PHP消息:PHP致命错误:未被捕获 错误:调用未定义的函数PHPBenchmark \ bcadd() /var/www/html/eduTrac-SIS/app/src/vendor/phpbenchmark/phpbenchmark/lib/PHPBenchmark/Utils.php:18
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
推荐答案
PHP无法识别"bcadd()"给出的错误. "bcadath" PHP扩展中包含"bcadd()"函数.
PHP does not recognize "bcadd()" gives the error. "bcadd()" function is included in "bcmath" PHP extention.
只需安装相关的bcmath扩展程序即可解决此问题.
Just installing the relevant bcmath extension would solved the issue.
sudo apt-get install php7.0-bcmath
请注意,您应该根据您的PHP版本找到正确的bcmath扩展版本. 并重新启动apache
Please note, you should find the correct version of bcmath extension according to your PHP version. And restart apache
sudo service apache2 restart
这篇关于致命错误:未被捕获的错误:调用未定义的函数bcadd()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!