php 未找到“Mage_Googlecheckout_Helper_Data”类
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20569358/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Class 'Mage_Googlecheckout_Helper_Data' not found
提问by Matthew Ogborne
We've just upgraded from Magento version 1.8.0.0 to 1.8.1.0 and now when we go to the configuration section of our site we receive the message:
我们刚刚从 Magento 版本 1.8.0.0 升级到 1.8.1.0,现在当我们转到我们网站的配置部分时,我们收到消息:
Fatal error: Class 'Mage_Googlecheckout_Helper_Data' not found in /home/dir/public_html/guides/setup/app/Mage.php on line 547
Any ideas on what might be causing this
关于可能导致这种情况的任何想法
回答by Simon H
Please check the releasenotes:
请查看发行说明:
- Close the Admin Panel browser window.
- As a user with root privileges, delete all files except config.xml from the following >directory: magento-install-dir/app/code/core/Mage/GoogleCheckout/etc
- When you log back in to the Admin Panel, everything works as expected. If you're still encountering errors, see Getting Help With Your Installation or Upgrade.
- 关闭管理面板浏览器窗口。
- 作为具有 root 权限的用户,从以下 > 目录中删除除 config.xml 之外的所有文件:magento-install-dir/app/code/core/Mage/GoogleCheckout/etc
- 当您重新登录到管理面板时,一切都按预期进行。如果您仍然遇到错误,请参阅获取安装或升级帮助。
-- Magento Community Edition (CE) Release Notes (1.8 and later)
回答by Marius
If you get this error it means you are on the right track.
如果您收到此错误,则表示您走在正确的轨道上。
Solution:
Close the Admin Panel browser window. As a user with root privileges, delete all files except config.xml from the following directory: magento-install-dir/app/code/core/Mage/GoogleCheckout/etc When you log back in to the Admin Panel, everything works as expected. If you're still encountering errors, see Getting Help With Your Installation or Upgrade.
解决方案:
关闭管理面板浏览器窗口。作为具有 root 权限的用户,从以下目录中删除除 config.xml 之外的所有文件: magento-install-dir/app/code/core/Mage/GoogleCheckout/etc 当您重新登录到管理面板时,一切都按预期进行. 如果您仍然遇到错误,请参阅获取安装或升级帮助。
The error you get was predicted and documented by the Magento core team. The solution I gave is from the Magento 1.8.1.0 release notes page
你得到的错误是由 Magento 核心团队预测和记录的。我给出的解决方案来自Magento 1.8.1.0 发行说明页面
回答by Dominic
Oddly I recently got this on a Magento 1.9.2.3 install.
奇怪的是,我最近在 Magento 1.9.2.3 安装中得到了这个。
The cause is the following missing from the app\code\core\Mage\GoogleCheckout\etc\config.xml
原因是 app\code\core\Mage\GoogleCheckout\etc\config.xml 中缺少以下内容
<global>
...
<helpers>
<googlecheckout>
<class>Mage_GoogleCheckout_Helper</class>
</googlecheckout>
</helpers>
...
</global>
Results in the autoloader not being able to find the helper file hence reverting to checking for Mage_Googlecheckout.
导致自动加载器无法找到帮助文件,因此恢复检查 Mage_Googlecheckout。
回答by KSM
Delete all files except
config.xmlfrom/app/code/core/Mage/GoogleCheckout/etc.Clear the cache.
删除所有文件,除了
config.xml从/app/code/core/Mage/GoogleCheckout/etc。清除缓存。
回答by Jisse Reitsma
I agree the solution above works. However, I got this error myself after upgrading from Magento 1.7 to 1.8 simply by copying all the new files over the old Magento 1.7 filesystem. I fixed this (and perhaps other bugs waiting) by removing all contents of the app/code/core folder and copying all files from the fresh Magento 1.8 folder app/code/core/* (Mage and Zend) to the now empty folder. Same thing, different approach.
我同意上述解决方案有效。但是,在从 Magento 1.7 升级到 1.8 后,我自己得到了这个错误,只需将所有新文件复制到旧的 Magento 1.7 文件系统上即可。我通过删除 app/code/core 文件夹的所有内容并将所有文件从新的 Magento 1.8 文件夹 app/code/core/*(Mage 和 Zend)复制到现在的空文件夹中来解决这个问题(可能还有其他错误等待)。同样的事情,不同的方法。
回答by neo.the.hacker
Every of the answer so far seem dirty to me. Instead of crippeling the Mage_GoogleCheckout Module you should just deactivate it.
到目前为止,每个答案对我来说都很脏。而不是削弱 Mage_GoogleCheckout 模块,您应该停用它。
Following steps will result in deactivating the module and leaving the code intact:
以下步骤将导致停用模块并保持代码完整:
- go to app/etc/modules
- edit Mage_All.xml
- search for
<Mage_GoogleCheckout> - place
<!--in front of<Mage_GoogleCheckout>and-->right after</Mage_GoogleCheckout> - save the file
- if the problem still persists refresh cache (go back in your browser until you see the adminhtml again, go to system -> cache-management and click the two red buttons in the top right corner)
- 转到应用程序/等/模块
- 编辑 Mage_All.xml
- 搜索
<Mage_GoogleCheckout> - 放在
<!--前面<Mage_GoogleCheckout>和-->后面</Mage_GoogleCheckout> - 保存文件
- 如果问题仍然存在,请刷新缓存(返回浏览器,直到再次看到 adminhtml,转到系统 -> 缓存管理,然后单击右上角的两个红色按钮)
回答by Gaurav
Go to the folder app/etc/modules/Mage_All.xml
转到文件夹 app/etc/modules/Mage_All.xml
Set false for module.
为模块设置 false。
<Mage_GoogleCheckout>
<active>false</active>
<codePool>core</codePool>
<depends>
<Mage_Sales/>
<Mage_Payment/>
<Mage_Usa/>
</depends>
</Mage_GoogleCheckout>
回答by Vinay Sikarwar
If you will delete files then google checkout will not work.
如果您要删除文件,则 google checkout 将不起作用。
I found this answer useful.
我发现这个答案很有用。
<helpers>
<googlecheckout>
<class>Mage_GoogleCheckout_Helper</class>
</googlecheckout>
</helpers>

