无法解决"货币'美元'未找到"错误

Mig*_*elR 0 frontend backend magento

我在前端和后端收到此消息:处理您的请求时出错.

当我删除缓存文件夹(var/cache,/ tmp&/ session)时,我得到了前端再次工作,直到我访问商店中的任何页面并且价格合理.后端很难再次工作(现在不是).

检查错误日志我得到了一大堆以"货币'美元'未找到"开头.这一切都是在经过一些小的改动后开始发生的,包括将货币代码的顺序从"$ 100.00"更改为"100,00€",我通过编辑/lib/Zend/Locale/Data/es.xml(西班牙语)来完成规范)这里:

  <currencyFormats>
    <currencyFormatLength>
     <currencyFormat>
        <pattern>¤ #,##0.00</pattern>
     </currencyFormat>
   </currencyFormatLength>
   <unitPattern count="other">{0} {1}</unitPattern>
 </currencyFormats>
Run Code Online (Sandbox Code Playgroud)

我尝试返回以前的格式,然后将原始文件复制回来.其他东西必须在某个地方破碎,我找不到它.

以下是错误日志中的最后几个步骤的摘要(您是否需要它们?)

a:5:{i:0; s:24:"货币'美元'未找到"; i:1; s:3740:"#0/home/content/32/9343032/html/app/code/core/Mage/Core/Model/Locale.php(575):Zend_Currency - > __ construct('USD',Object(Zend_Locale))

#1 /home/content/32/9343032/html/app/code/core/Mage/Directory/Model/Currency.php(233):Mage_Core_Model_Locale-> currency('EUR')

#2 /home/content/32/9343032/html/app/code/core/Mage/Directory/Model/Currency.php(216):Mage_Directory_Model_Currency-> formatTxt(NULL,Array)

#3 /home/content/32/9343032/html/app/code/core/Mage/Directory/Model/Currency.php(197):Mage_Directory_Model_Currency-> formatPrecision(NULL,2,Array,true,false)

#4 /home/content/32/9343032/html/app/code/core/Mage/Adminhtml/Block/Dashboard/Bar.php(82):Mage_Directory_Model_Currency-> format(NULL)

请帮帮我...

谢谢米格尔

bn0*_*00d 7

清除缓存,从var/session中删除所有会话文件并刷新.