【问题标题】:Magento Value '29,990000' has to be numericMagento Value '29,990000' 必须是数字
【发布时间】:2015-04-10 14:07:17
【问题描述】:

我刚刚更新了我的 zendserver。然后当我尝试在我的 magento 本地访问 /admin 时,我收到以下错误:

值“29,990000”必须是数字

我尝试替换

$price = sprintf("%f", $price);

与

$price = (float) $price; 

在app/code/core/Mage/Directory/Model/Currency.php 但上述方法根本不起作用。

然后我尝试在我的php.ini 中将precision = 14 更改为precision = 8 但我仍然可以找到解决这个问题的方法

【问题讨论】:

  • 真的是逗号吗?逗号在您所在的国家/地区是否表示“小数点”?

标签: php magento ubuntu zend-server


【解决方案1】:

我已经通过将我的 PHP 从 PHP 5.5 降级到 5.3 解决了这个问题

【讨论】:

  • 您没有使用 Zend Server 提供的 PHP 吗?通常,您在选择 Zend Server 版本时选择要使用的 PHP 版本...
猜你喜欢
  • 1970-01-01
  • 2021-04-21
  • 2020-05-26
  • 1970-01-01
  • 2019-10-02
  • 2020-04-19
  • 1970-01-01
  • 2015-08-07
  • 1970-01-01
相关资源
最近更新 更多