Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento 无法解决“未找到货币“USD”错误_Magento_Backend_Frontend - Fatal编程技术网

Magento 无法解决“未找到货币“USD”错误

Magento 无法解决“未找到货币“USD”错误,magento,backend,frontend,Magento,Backend,Frontend,我在前端和后端收到这样一条消息:处理您的请求时出错 当我删除缓存文件夹var/cache、/tmp&/session时,我会让前端重新工作,直到我访问商店中任何包含价格的页面为止。后端很难重新工作,现在不是 通过检查错误日志,我得到了一大堆以“USD”开头的错误日志,但没有找到。这一切都是在一些微小的更改之后开始的,包括将货币代码的顺序从$100.00更改为$100,00欧元,我在这里编辑了/lib/Zend/Locale/Data/es.xml西班牙语规范: <currencyFor

我在前端和后端收到这样一条消息:处理您的请求时出错

当我删除缓存文件夹var/cache、/tmp&/session时,我会让前端重新工作,直到我访问商店中任何包含价格的页面为止。后端很难重新工作,现在不是

通过检查错误日志,我得到了一大堆以“USD”开头的错误日志,但没有找到。这一切都是在一些微小的更改之后开始的,包括将货币代码的顺序从$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>
我尝试返回到以前的格式,然后将原始文件复制回来。一定是别的什么东西坏了,我找不到了

下面是错误日志中最后几步的摘要—您需要全部步骤吗

a:5:{i:0;s:24:找不到货币“USD”;i:1;s:3740:0/home/content/32/9343032/html/app/code/core/Mage/core/Model/Locale.php575:Zend_Currency->构建“USD”,对象Zend_Locale

1/home/content/32/9343032/html/app/code/core/Mage/Directory/Model/Currency.php233:Mage\u core\u Model\u Locale->货币“欧元”

2/home/content/32/9343032/html/app/code/core/Mage/Directory/Model/Currency.php216:Mage\u Directory\u Model\u Currency->formatTxtNULL,数组

3/home/content/32/9343032/html/app/code/core/Mage/Directory/Model/Currency.php197:Mage\u Directory\u Model\u Currency->formatPrecisionNULL,2,Array,true,false

4/home/content/32/9343032/html/app/code/core/Mage/Adminhtml/Block/Dashboard/Bar.php82:Mage\u目录\模型\货币->格式空

请帮帮我

谢谢
Miguel

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

首先从管理面板检查您的Magento区域设置 系统->配置->

常规->常规->区域设置选项 区域设置//检查所选的选项

如果选项为英语,请选择Kingdon

请更新区域设置文件..或检查是否有可用的货币设置

转到cpanel并打开magento文件: lib/Zend/Locale/Data/en.xml

        <currency type="USD">
            <displayName>US Dollar</displayName>
            <displayName count="one">US dollar</displayName>
            <displayName count="other">US dollars</displayName>
            <symbol>$</symbol>
        </currency>
或者您可以添加以下选项

<numbers>

        <currencyFormats>
            <currencyFormatLength>
                <currencyFormat>
                    <pattern>¤#,##0.00;(¤#,##0.00)</pattern>
                </currencyFormat>
            </currencyFormatLength>
            <unitPattern count="one">{0} {1}</unitPattern>
            <unitPattern count="other">{0} {1}</unitPattern>
        </currencyFormats>

        add the below lines

         <currencies>
          <currency type="USD">
                <displayName>US Dollar</displayName>
                <displayName count="one">US dollar</displayName>
                <displayName count="other">US dollars</displayName>
                <symbol>$</symbol>
            </currency>
            <currency type="USN">
                <displayName>US Dollar (Next day)</displayName>
                <displayName count="one">US dollar (next day)</displayName>
                <displayName count="other">US dollars (next day)</displayName> 
            </currency>
        </currencies>

    </numbers>

在所有更改之后..请清除magento缓存..要正确处理所有更改

顺便说一句:忘了提到更改为·,0.00到,0.00。有趣的代码表示欧元符号。您是否确实更改了管理面板中的货币类型?它似乎在寻找美元货币。udjamaflip,感谢您的回复ponse.是的,货币从一开始就被正确地改成了欧元。这是我的一个变化有毒的一个?我不知道。在任何情况下,因为我无法访问管理员我做了什么,我决定更新到1702我有1700和刷新一切。它现在工作正常,我必须一个接一个地检查细节,以确保所有的小变化我对代码所做的修改都是正确的,不会再次中断。