Drupal RuntimeException:NumberFormatter需要bcmath扩展名
我已经安装了drupal商务模块。我在查看产品页面时遇到以下错误Drupal RuntimeException:NumberFormatter需要bcmath扩展名,drupal,drupal-commerce,Drupal,Drupal Commerce,我已经安装了drupal商务模块。我在查看产品页面时遇到以下错误 RuntimeException: The bcmath extension is required by NumberFormatter. in CommerceGuys\Intl\Formatter\NumberFormatter->__construct() (line 113 of /home/web/docroot/vendor/commerceguys/intl/src/Formatter/NumberForma
RuntimeException: The bcmath extension is required by NumberFormatter. in CommerceGuys\Intl\Formatter\NumberFormatter->__construct() (line 113 of /home/web/docroot/vendor/commerceguys/intl/src/Formatter/NumberFormatter.php).
您有bcmath错误,需要安装PHP bcmath扩展
sudo apt安装php7.2-bcmath
您可以使用php函数检查已启用的扩展<代码>获取加载的扩展()
yum安装php-bcmath根据您的php版本,您必须安装bcmath扩展 7.2
sudo apt install php7.2-bcmath
7.4
sudo apt install php7.2-bcmath
安装完成后,您必须重新启动apache服务器,然后只有它才会启动
sudo service apache2 restart