Magento“adminhtml/system_config_backend_image_favicon”错误
我尝试在 Magento 中安装空白模板,现在在尝试访问管理 -> 时出现以下错误打印:配置->设计部分。
Invalid config field backend model: adminhtml/system_config_backend_image_favicon
Trace:
#0 /home/trilight/public_html/magetest/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(310): Mage::throwException('Invalid config ...')
#1 /home/trilight/public_html/magetest/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(204): Mage_Adminhtml_Block_System_Config_Form->initFields(Object(Varien_Data_Form_Element_Fieldset), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element))
#2 /home/trilight/public_html/magetest/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php(92): Mage_Adminhtml_Block_System_Config_Form->initForm()
#3 /home/trilight/public_html/magetest/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(77): Mage_Adminhtml_Block_System_Config_Edit->initForm()
#4 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_ConfigController->editAction()
#5 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch('edit')
#6 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#7 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch()
#8 /home/trilight/public_html/magetest/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#9 /home/trilight/public_html/magetest/index.php(80): Mage::run('', 'store')
#10 {main}
我不明白错误是什么,简单的谷歌搜索没有带来任何结果。访问前端时我遇到另一个错误,如下所示:
Invalid method Mage_Wishlist_Block_Links::addWishlistLink(Array
(
)
)
Trace:
#0 [internal function]: Varien_Object->__call('addWishlistLink', Array)
#1 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Model/Layout.php(347): Mage_Wishlist_Block_Links->addWishlistLink()
#2 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Model/Layout.php(213): Mage_Core_Model_Layout->_generateAction(Array, Array)
#3 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#4 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Model/Layout.php(209): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#5 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Action.php(343): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /home/trilight/public_html/magetest/app/code/core/Mage/Cms/Helper/Page.php(110): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#7 /home/trilight/public_html/magetest/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage()
#8 /home/trilight/public_html/magetest/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
#9 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction(Object(Mage_Cms_IndexController), 'home')
#10 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch()
#11 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match('index')
#12 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch(Object(Mage_Core_Controller_Request_Http))
#13 /home/trilight/public_html/magetest/app/Mage.php(596): Mage_Core_Model_App->run()
#14 /home/trilight/public_html/magetest/index.php(80): Mage::run(Array)
#15 {main}
任何帮助将不胜感激。
谢谢。
I tried to install the Blank template in Magento and now get the following error printing when trying to access the Admin -> Configuration -> Design section.
Invalid config field backend model: adminhtml/system_config_backend_image_favicon
Trace:
#0 /home/trilight/public_html/magetest/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(310): Mage::throwException('Invalid config ...')
#1 /home/trilight/public_html/magetest/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(204): Mage_Adminhtml_Block_System_Config_Form->initFields(Object(Varien_Data_Form_Element_Fieldset), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element))
#2 /home/trilight/public_html/magetest/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php(92): Mage_Adminhtml_Block_System_Config_Form->initForm()
#3 /home/trilight/public_html/magetest/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(77): Mage_Adminhtml_Block_System_Config_Edit->initForm()
#4 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_ConfigController->editAction()
#5 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch('edit')
#6 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#7 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch()
#8 /home/trilight/public_html/magetest/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#9 /home/trilight/public_html/magetest/index.php(80): Mage::run('', 'store')
#10 {main}
I don't understand what the error is and a simple Google search brings nothing. I have another error when accessing the front end and that is as follows:
Invalid method Mage_Wishlist_Block_Links::addWishlistLink(Array
(
)
)
Trace:
#0 [internal function]: Varien_Object->__call('addWishlistLink', Array)
#1 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Model/Layout.php(347): Mage_Wishlist_Block_Links->addWishlistLink()
#2 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Model/Layout.php(213): Mage_Core_Model_Layout->_generateAction(Array, Array)
#3 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#4 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Model/Layout.php(209): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#5 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Action.php(343): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /home/trilight/public_html/magetest/app/code/core/Mage/Cms/Helper/Page.php(110): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#7 /home/trilight/public_html/magetest/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage()
#8 /home/trilight/public_html/magetest/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
#9 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction(Object(Mage_Cms_IndexController), 'home')
#10 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch()
#11 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match('index')
#12 /home/trilight/public_html/magetest/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch(Object(Mage_Core_Controller_Request_Http))
#13 /home/trilight/public_html/magetest/app/Mage.php(596): Mage_Core_Model_App->run()
#14 /home/trilight/public_html/magetest/index.php(80): Mage::run(Array)
#15 {main}
Any help will be so much appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
遇到了同样的问题,但从我正在使用的主题中覆盖 Wishlist.xml 以及来自 base/layout 的 Wishlist.xml 解决了这个问题。
Had the same issue but overriding wishlist.xml from the theme I’m using with the wishlist.xml from base/layout fixed this problem.
终于明白了这一点。哇! 1.4.2.0‘升级’?!?
显然它在“升级”时丢失了一堆文件。我错误地认为它正在工作,然后今天尝试在配置下使用“设计”。哎呀。
我建议阅读这篇帖子。
..对于图标错误,具体执行以下操作:
wget http://svn.magentocommerce.com/source/branches/1.4/app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Image /Favicon.php
将 Favicon.php 相对于您在源中看到的下载位置放置。
(这与我的结局无关。所有权限都是正确的。我拥有这个系统。这是通过 connect/pear 对每个 magento 核心进行的不完整升级。)
编辑:
如果您不想继续发现问题,或者更容易(1.4.2.0):
获取源代码:
wget http://www.magentocommerce.com/downloads/assets/1.4.2.0/magento-1.4 .2.0.tar.gz
解压并更改为 magento/app/code/core
小心仔细复制并理解下一步(!):
cp -R * /{your_magento_site}/app/code/core
这些文件的所有者可能需要根据您复制文件的凭据进行 chowned...
所有需要的“升级” ' 文件现在应该就位。
Finally figured this out. WTH! 1.4.2.0 'upgrade'?!?
Apparently it missed a bunch of files when it 'upgraded'. I assumed incorrectly that it was working and then tried to use 'design' today under configuration. Whoops.
I recommend reading this post.
..And for the favicon error specifically do this:
wget http://svn.magentocommerce.com/source/branches/1.4/app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Image/Favicon.php
place Favicon.php relative to where you see it downloading from in your source.
(This had nothing to do with my end. All perms correct. I own this system. This was an incomplete upgrade per magento core via connect/pear.)
Edit:
Or easier if you dont want to keep finding problems (1.4.2.0):
Grab source:
wget http://www.magentocommerce.com/downloads/assets/1.4.2.0/magento-1.4.2.0.tar.gz
untar and change to magento/app/code/core
Be careful you copy carefully and understand next step(!) :
cp -R * /{your_magento_site}/app/code/core
The owner of these files may need to be chowned depending on credentials you copied files as...
All needed 'upgrade' files should now be in place.
您是否尝试过删除 var/cache 和 var/sessions 目录?这应该可以解决这个问题
Have you tried deleting the var/cache and var/sessions directory ? That should fix this
关于wishlist.xml问题,我遇到了同样的问题,在系统>配置>高级中禁用它和/或使用base/layout中的whislist.xml,就像Fooligan所说的那样。
我仍在寻找“无效的配置字段后端模型:adminhtml/system_config_backend_image_favicon”的解决方案
所以,如果有人解决了这个问题......? ;)
About the wishlist.xml problem, i had the same problem, disable it in system>configuration>advanced and/or use the whislist.xml from base/layout like Fooligan said.
I'm still searching for a solution for the "Invalid config field backend model: adminhtml/system_config_backend_image_favicon"
So, if someone fixed this....? ;)
通过 connectmanager 升级 magento 后,你也遇到过这种情况吗?我发现有趣的信息说我应该通过 ftp 重新上传某些文件夹 - 有人尝试过吗?
has that also happened to you after upgrading magento via connectmanager? I found interesting info saying I should reupload certain folders via ftp - anyone tried that?
这是在新安装的magento(1.4.2.0)上通过connectmanager安装Yoast seo空白主题后发生的,
我不知道如果您通过FTP上传主题来安装主题是否会有所不同?
It happened after installing the Yoast seo blank theme through connectmanager on a new installation of magento (1.4.2.0)
I don't know if it would make a difference if you install the theme by uploading it via FTP?