drupal - RuntimeException:NumberFormatter 需要 bcmath 扩展
问题描述
我已经安装了 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/NumberFormatter.php).
解决方案
你有 bcmath 错误,你需要安装 PHP bcmath 扩展。
sudo apt install php7.2-bcmath
您可以使用 php 函数检查已启用的扩展。get_loaded_extensions()
推荐阅读
- java - 如何将 gradle 处理的代码导入为库(Eclipse)
- python - conda:使用最新包创建环境
- r - 您如何将大型 RasterStack 对象临时插入到更高的周期性(每周到每天)
- python - 如何在熊猫中将奇怪的日期值修复为日期时间类型
- javascript - 使用 TypeScript 的函数名称的 ESlint 规则(camelCase 首字母小写)
- wcf-data-services - WCF 数据服务和 url 参数
- swift - 如何在 NSTableView 中的行之间添加空格
- python - 为什么计算时差会返回错误
- javascript - 如何获取文本区域中的复选框数据和范围内的文本区域数据?
- reactjs - 如何在 Firebase 数据库中正确存储/检索数据