无法解决“未找到货币'USD'"错误 [英] Can't solve "Currency 'USD' not found" error
问题描述
我在前端和后端收到此消息:处理您的请求时出错.
I'm getting this message at the frontend and the backend: There has been an error processing your request.
当我删除缓存文件夹(var/cache,/tmp&/session)时,我使前端再次工作,直到我访问商店中有价格的页面.后端很难再次工作(现在还不行).
When I delete the cache folders (var/cache, /tmp & /session) I get the frontend working again until I visit any page in the store with a price in it. The backend is harder to get working again (it isn't right now).
检查错误日志,我从未找到货币'USD'"开始获得了一大堆错误日志.这一切都是在进行一些小的更改之后开始发生的,包括将货币代码的顺序从"$ 100.00"更改为"100,00€",这是通过编辑/lib/Zend/Locale/Data/es.xml(西班牙语)完成的规范):
Checking the error logs I get a whole bunch of them starting with "Currency 'USD' not found". This all started happening after a few minor changes including changing the order of the currency code from "$ 100.00" to "100,00 €" which I did by editing /lib/Zend/Locale/Data/es.xml (the spanish language specification) here:
<currencyFormats>
<currencyFormatLength>
<currencyFormat>
<pattern>¤ #,##0.00</pattern>
</currencyFormat>
</currencyFormatLength>
<unitPattern count="other">{0} {1}</unitPattern>
</currencyFormats>
我尝试返回到以前的格式,然后将原始文件复制回去.某些地方一定有其他东西坏掉了,我找不到它.
I tried returning to the previous format and then copying the original file back. Something else must have broken somewhere and I can't find it.
以下是错误日志中最后步骤的摘要(您是否都需要它们?)
Here is a summary of the last steps in the Error logs (do you need them all?)
a:5:{i:0; s:24:未找到货币'USD'"; 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))
a:5:{i:0;s:24:"Currency 'USD' not found";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')
#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)
#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)
#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)
#4 /home/content/32/9343032/html/app/code/core/Mage/Adminhtml/Block/Dashboard/Bar.php(82): Mage_Directory_Model_Currency->format(NULL)
请在这里帮助我...
Please help me out here...
谢谢 米格尔(Miguel)
Thanks Miguel
推荐答案
清除缓存,从var/session中删除所有会话文件并刷新.
Clear cache, remove all session file from var/session and refresh.
这篇关于无法解决“未找到货币'USD'"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!