我们已经将Magento从一个服务器迁移到另一个服务器(保留标题),一切正常,除非您将第一个项目添加到购物车时出现以下错误:
Trace:
#0 /var/www/vhosts/XXXXXXXXXX.com/httpdocs/app/code/core/Mage/Checkout/controllers/CartController.php(130): Zend_Currency->toCurrency('12,40')
#1 /var/www/vhosts/XXXXXXXXXX..com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Checkout_CartController->indexAction()
#2 /var/www/vhosts/XXXXXXXXXX..com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#3 /var/www/vhosts/XXXXXXXXXX..com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#4 /var/www/vhosts/XXXXXXXXXX..com/httpdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#5 /var/www/vhosts/XXXXXXXXXX..com/httpdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#6 /var/www/vhosts/XXXXXXXXXX..com/httpdocs/index.php(87): Mage::run('', 'store')
#7 {main}
我查看了日志路径,但没有给我更多信息,知道它可以吗?
由于
答案 0 :(得分:0)
12,40不是数字,它是一个字符串...你使用像ajax cart,货币修饰符这样的任何模块吗?如果是,请检查这些模块,因为zend_currency将在您的语言环境12.40中转换为12,40。
如果12,40是订单的最小金额,请考虑更改配置中的值。