How to fix the error “Invalid backend model specified: catalog/attribute_backend_customlayoutupdate” when loading a Magento site?

Symptoms

After updating Magento from 1.4.1.1 to 1.4.2.0, the frontend homepage was not loading, spitting out this error message instead:

Invalid backend model specified: catalog/attribute_backend_customlayoutupdate

This happens with and without compilation, but after you disabled compilation you get at least a stacktrace with correct references to files:

#0 /var/www/vhosts/example.com/httpdocs/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php(338): Mage::exception('Mage_Eav', 'Invalid backend...')
#1 /var/www/vhosts/example.com/httpdocs/app/code/core/Mage/Eav/Model/Entity/Abstract.php(619): Mage_Eav_Model_Entity_Attribute_Abstract->getBackend()
#2 /var/www/vhosts/example.com/httpdocs/app/code/core/Mage/Eav/Model/Entity/Abstract.php(1461): Mage_Eav_Model_Entity_Abstract->walkAttributes('backend/afterLo...', Array)
#3 /var/www/vhosts/example.com/httpdocs/app/code/core/Mage/Eav/Model/Entity/Abstract.php(901): Mage_Eav_Model_Entity_Abstract->_afterLoad(Object(Mage_Catalog_Model_Category))
#4 /var/www/vhosts/example.com/httpdocs/app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Abstract.php(647): Mage_Eav_Model_Entity_Abstract->load(Object(Mage_Catalog_Model_Category), '2', NULL)

The error message seems to refer to be related to the product description attribute “custom_layout_update”, which is provided by Magento itself, and is a “Textarea” attribute, no boolean at all. The error seems to be caused by database content of the Magento 1.4.1.1 version that does not match with something in the code of the 1.4.2.0 version to which this installation has been updated.

Solutions

  • A complete reinstallation of Magento 1.4.2.0 from scratch, not taking over the current content of the database. This was done in the case referred to here, as the shop was in testing mode still.
  • Probably, this could be fixed by directly editing database content, in analogy to a fix for a similar error: go to table eav_attribute and edit all records where column backend_model contains catalog/attribute_backend_customlayoutupdate. Which normally is one record, or two if you use a localization package. Simply completely delete that backend_model value, as it is unclear what belongs there. (It would have to be looked up in a fresh Magento 1.4.2.0 installation).

Posted

in

,

by

Tags:

Comments

3 responses to “How to fix the error “Invalid backend model specified: catalog/attribute_backend_customlayoutupdate” when loading a Magento site?”

  1. teju

    Hi,
    I have use magneto 1.6.2.0.
    open the magento front side error display and backend side will be open

    There has been an error processing your request
    Exception printing is disabled by default for security reasons.
    Error log record number: 259208943

    a:5:{i:0;s:86:”Invalid backend model specified: accesscontrol/entity_attribute_backend_customergroups”;i:1;s:5827:”#0 D:\wamp\www\e4hats\magento\app\code\core\Mage\Eav\Model\Entity\Attribute\Abstract.php(346): Mage::exception(‘Mage_Eav’, ‘Invalid backend…’)
    #1 D:\wamp\www\e4hats\magento\app\code\core\Mage\Eav\Model\Entity\Abstract.php(640): Mage_Eav_Model_Entity_Attribute_Abstract->getBackend()
    #2 D:\wamp\www\e4hats\magento\app\code\core\Mage\Eav\Model\Entity\Abstract.php(1624): Mage_Eav_Model_Entity_Abstract->walkAttributes(‘backend/afterLo…’, Array)
    #3 D:\wamp\www\e4hats\magento\app\code\core\Mage\Eav\Model\Entity\Abstract.php(964): Mage_Eav_Model_Entity_Abstract->_afterLoad(Object(Mage_Catalog_Model_Category))
    #4 D:\wamp\www\e4hats\magento\app\code\core\Mage\Catalog\Model\Resource\Abstract.php(698): Mage_Eav_Model_Entity_Abstract->load(Object(Mage_Catalog_Model_Category), ‘2’, NULL)
    #5 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Model\Abstract.php(225): Mage_Catalog_Model_Resource_Abstract->load(Object(Mage_Catalog_Model_Category), ‘2’, NULL)
    #6 D:\wamp\www\e4hats\magento\app\code\core\Mage\Catalog\Model\Layer.php(168): Mage_Core_Model_Abstract->load(‘2’)
    #7 D:\wamp\www\e4hats\magento\app\code\core\Mage\Catalog\Block\Navigation.php(346): Mage_Catalog_Model_Layer->getCurrentCategory()
    #8 D:\wamp\www\e4hats\magento\app\code\core\Mage\Catalog\Block\Navigation.php(145): Mage_Catalog_Block_Navigation->getCurrentCategory()
    #9 D:\wamp\www\e4hats\magento\app\code\core\Mage\Catalog\Block\Navigation.php(250): Mage_Catalog_Block_Navigation->isCategoryActive(Object(Varien_Data_Tree_Node))
    #10 D:\wamp\www\e4hats\magento\app\code\core\Mage\Catalog\Block\Navigation.php(441): Mage_Catalog_Block_Navigation->_renderCategoryMenuItemHtml(Object(Varien_Data_Tree_Node), 0, false, true, true, ‘level-top’, ”, true)
    #11 D:\wamp\www\e4hats\magento\app\design\frontend\default\e4hats\template\catalog\navigation\top.phtml(43): Mage_Catalog_Block_Navigation->renderCategoriesMenuHtml(0, ‘level-top’)
    #12 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Template.php(241): include(‘D:\wamp\www\e4h…’)
    #13 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Template.php(272): Mage_Core_Block_Template->fetchView(‘frontend\defaul…’)
    #14 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Template.php(286): Mage_Core_Block_Template->renderView()
    #15 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Abstract.php(863): Mage_Core_Block_Template->_toHtml()
    #16 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Text\List.php(43): Mage_Core_Block_Abstract->toHtml()
    #17 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Abstract.php(863): Mage_Core_Block_Text_List->_toHtml()
    #18 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
    #19 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml(‘topMenu’, true)
    #20 D:\wamp\www\e4hats\magento\app\design\frontend\default\e4hats\template\page\html\header.phtml(61): Mage_Core_Block_Abstract->getChildHtml(‘topMenu’)
    #21 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Template.php(241): include(‘D:\wamp\www\e4h…’)
    #22 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Template.php(272): Mage_Core_Block_Template->fetchView(‘frontend\defaul…’)
    #23 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Template.php(286): Mage_Core_Block_Template->renderView()
    #24 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Abstract.php(863): Mage_Core_Block_Template->_toHtml()
    #25 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
    #26 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml(‘header’, true)
    #27 D:\wamp\www\e4hats\magento\app\design\frontend\default\e4hats\template\page\2columns-right.phtml(44): Mage_Core_Block_Abstract->getChildHtml(‘header’)
    #28 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Template.php(241): include(‘D:\wamp\www\e4h…’)
    #29 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Template.php(272): Mage_Core_Block_Template->fetchView(‘frontend\defaul…’)
    #30 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Template.php(286): Mage_Core_Block_Template->renderView()
    #31 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Block\Abstract.php(863): Mage_Core_Block_Template->_toHtml()
    #32 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Model\Layout.php(529): Mage_Core_Block_Abstract->toHtml()
    #33 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Controller\Varien\Action.php(391): Mage_Core_Model_Layout->getOutput()
    #34 D:\wamp\www\e4hats\magento\app\code\core\Mage\Cms\Helper\Page.php(132): Mage_Core_Controller_Varien_Action->renderLayout()
    #35 D:\wamp\www\e4hats\magento\app\code\core\Mage\Cms\Helper\Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), ‘home’)
    #36 D:\wamp\www\e4hats\magento\app\code\core\Mage\Cms\controllers\IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), ‘home’)
    #37 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Controller\Varien\Action.php(420): Mage_Cms_IndexController->indexAction()
    #38 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch(‘index’)
    #39 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Controller\Varien\Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #40 D:\wamp\www\e4hats\magento\app\code\core\Mage\Core\Model\App.php(349): Mage_Core_Controller_Varien_Front->dispatch()
    #41 D:\wamp\www\e4hats\magento\app\Mage.php(640): Mage_Core_Model_App->run(Array)
    #42 D:\wamp\www\e4hats\magento\index.php(80): Mage::run(”, ‘store’)
    #43 {main}”;s:3:”url”;s:16:”/e4hats/magento/”;s:11:”script_name”;s:25:”/e4hats/magento/index.php”;s:4:”skin”;s:7:”default”;}

    Any Idea about this error
    Help me…
    Thanks…

  2. teju, have you tried the analogous solution to the one I proposed in the article? That is:

    (1) Using phpMyAdmin or similar, go to table eav_attribute
    (2) Find all records where column backend_model contains accesscontrol/entity_attribute_backend_customergroups
    (3) Delete these values in column backend_model

    But make a dtaabase backup first or remember the lines where you deleted this, in case this just makes stuff worse.

  3. Hi sir,

    Here my errors in magento 1.7.0.1., how to solve it….

    Thank

    There has been an error processing your request
    Invalid backend model specified: catalog/product_attribute_backend_finishdate

    Trace:
    #0 /home/craftisa/public_html/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php(346): Mage::exception(‘Mage_Eav’, ‘Invalid backend…’)
    #1 /home/craftisa/public_html/app/code/core/Mage/Catalog/Model/Resource/Abstract.php(205): Mage_Eav_Model_Entity_Attribute_Abstract->getBackend()
    #2 /home/craftisa/public_html/app/code/core/Mage/Eav/Model/Entity/Abstract.php(998): Mage_Catalog_Model_Resource_Abstract->_setAttributeValue(Object(Mage_Catalog_Model_Product), Array)
    #3 /home/craftisa/public_html/app/code/core/Mage/Eav/Model/Entity/Abstract.php(959): Mage_Eav_Model_Entity_Abstract->_loadModelAttributes(Object(Mage_Catalog_Model_Product))
    #4 /home/craftisa/public_html/app/code/core/Mage/Catalog/Model/Resource/Abstract.php(698): Mage_Eav_Model_Entity_Abstract->load(Object(Mage_Catalog_Model_Product), ‘7’, NULL)
    #5 /home/craftisa/public_html/app/code/core/Mage/Core/Model/Abstract.php(225): Mage_Catalog_Model_Resource_Abstract->load(Object(Mage_Catalog_Model_Product), ‘7’, NULL)
    #6 /home/craftisa/public_html/app/code/local/Queldorei/ShopperSettings/Helper/Data.php(13): Mage_Core_Model_Abstract->load(‘7’)
    #7 /home/craftisa/public_html/app/code/local/Queldorei/ShopperSettings/Helper/Data.php(27): Queldorei_ShopperSettings_Helper_Data->_loadProduct(Object(Mage_Catalog_Model_Product))
    #8 /home/craftisa/public_html/app/design/frontend/default/shopper/template/catalog/product/list.phtml(146): Queldorei_ShopperSettings_Helper_Data->getLabel(Object(Mage_Catalog_Model_Product))
    #9 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Template.php(241): include(‘/home/craftisa/…’)
    #10 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView(‘frontend/defaul…’)
    #11 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
    #12 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
    #13 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
    #14 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml(‘product_list’, true)
    #15 /home/craftisa/public_html/app/code/core/Mage/Catalog/Block/Category/View.php(85): Mage_Core_Block_Abstract->getChildHtml(‘product_list’)
    #16 /home/craftisa/public_html/app/design/frontend/default/shopper/template/catalog/category/view.phtml(69): Mage_Catalog_Block_Category_View->getProductListHtml()
    #17 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Template.php(241): include(‘/home/craftisa/…’)
    #18 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView(‘frontend/defaul…’)
    #19 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
    #20 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
    #21 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
    #22 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Text_List->_toHtml()
    #23 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
    #24 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml(‘content’, true)
    #25 /home/craftisa/public_html/app/design/frontend/default/shopper/template/page/2columns-left.phtml(58): Mage_Core_Block_Abstract->getChildHtml(‘content’)
    #26 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Template.php(241): include(‘/home/craftisa/…’)
    #27 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView(‘frontend/defaul…’)
    #28 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
    #29 /home/craftisa/public_html/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
    #30 /home/craftisa/public_html/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
    #31 /home/craftisa/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
    #32 /home/craftisa/public_html/app/code/core/Mage/Catalog/controllers/CategoryController.php(159): Mage_Core_Controller_Varien_Action->renderLayout()
    #33 /home/craftisa/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Catalog_CategoryController->viewAction()
    #34 /home/craftisa/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch(‘view’)
    #35 /home/craftisa/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #36 /home/craftisa/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
    #37 /home/craftisa/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
    #38 /home/craftisa/public_html/index.php(87): Mage::run(”, ‘store’)
    #39 {main}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.