Magento Forum

Invalid entity_type specified: catalog_product
 
mzeblu
Jr. Member
 
Total Posts:  11
Joined:  2008-06-07
 

Hope someone can help.
My website was working fine earlier, I made no changes to it, came back later today and this is what I find.  I cannot see the storefront or admin side of the website.  Hosting with siteground and they say it is a magento script causing the error and is not their problem.

Can anyone help me with this?  I’m good at following directions but not diagnosing code issues.

Thanks

Invalid entity_type specifiedcatalog_product
Trace
:
#0 /home/watchwoo/public_html/magento/app/code/core/Mage/Eav/Model/Config.php(107): Mage::exception('Mage_Eav', 'Invalid entity_...')
#1 /home/watchwoo/public_html/magento/app/code/core/Mage/Eav/Model/Entity/Abstract.php(232): Mage_Eav_Model_Config->getEntityType('catalog_product')
#2 /home/watchwoo/public_html/magento/app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product.php(39): Mage_Eav_Model_Entity_Abstract->setType('catalog_product')
#3 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Model/Config.php(697): Mage_Catalog_Model_Resource_Eav_Mysql4_Product->__construct(Array)
#4 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Model/Config.php(737): Mage_Core_Model_Config->getModelInstance('catalog_resourc...', Array)
#5 /home/watchwoo/public_html/magento/app/Mage.php(322): Mage_Core_Model_Config->getResourceModelInstance('catalog/product', Array)
#6 /home/watchwoo/public_html/magento/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(106): Mage::getResourceModel('catalog/product')
#7 /home/watchwoo/public_html/magento/app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Collection.php(44): Mage_Eav_Model_Entity_Collection_Abstract->_init('catalog/product')
#8 /home/watchwoo/public_html/magento/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(67): Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection->_construct()
#9 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Model/Config.php(697): Mage_Eav_Model_Entity_Collection_Abstract->__construct(Array)
#10 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Model/Config.php(737): Mage_Core_Model_Config->getModelInstance('catalog_resourc...', Array)
#11 /home/watchwoo/public_html/magento/app/Mage.php(322): Mage_Core_Model_Config->getResourceModelInstance('catalog/product...', Array)
#12 /home/watchwoo/public_html/magento/app/code/core/Mage/Catalog/Model/Category.php(139): Mage::getResourceModel('catalog/product...')
#13 /home/watchwoo/public_html/magento/app/code/core/Mage/Catalog/Model/Layer.php(41): Mage_Catalog_Model_Category->getProductCollection()
#14 /home/watchwoo/public_html/magento/app/code/core/Mage/Catalog/Block/Product/List.php(64): Mage_Catalog_Model_Layer->getProductCollection()
#15 /home/watchwoo/public_html/magento/app/code/core/Mage/Catalog/Block/Product/List.php(106): Mage_Catalog_Block_Product_List->_getProductCollection()
#16 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(553): Mage_Catalog_Block_Product_List->_beforeToHtml()
#17 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Model/Email/Template/Filter.php(56): Mage_Core_Block_Abstract->toHtml()
#18 /home/watchwoo/public_html/magento/lib/Varien/Filter/Template.php(122): Mage_Core_Model_Email_Template_Filter->blockDirective(Array)
#19 /home/watchwoo/public_html/magento/app/code/core/Mage/Cms/Block/Page.php(75): Varien_Filter_Template->filter(Array, Array)
#20 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(554): Mage_Cms_Block_Page->_toHtml('It's pretty sim...')
#21 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Block/Text/List.php(37): Mage_Core_Block_Abstract->toHtml()
#22 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(554): Mage_Core_Block_Text_List->_toHtml()
#23 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(431): Mage_Core_Block_Abstract->toHtml()
#24 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(408): Mage_Core_Block_Abstract->_getChildHtml()
#25 /home/watchwoo/public_html/magento/app/design/frontend/default/default/template/page/2columns-right.phtml(50): Mage_Core_Block_Abstract->getChildHtml('content', true)
#26 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Block/Template.php(131): include('/home/watchwoo/...')
#27 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Block/Template.php(163): Mage_Core_Block_Template->fetchView('content')
#28 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Block/Template.php(180): Mage_Core_Block_Template->renderView('frontend/defaul...')
#29 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(554): Mage_Core_Block_Template->_toHtml()
#30 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Model/Layout.php(505): Mage_Core_Block_Abstract->toHtml()
#31 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(319): Mage_Core_Model_Layout->getOutput()
#32 /home/watchwoo/public_html/magento/app/code/core/Mage/Cms/Helper/Page.php(77): Mage_Core_Controller_Varien_Action->renderLayout()
#33 /home/watchwoo/public_html/magento/app/code/core/Mage/Cms/controllers/IndexController.php(26): Mage_Cms_Helper_Page->renderPage()
#34 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(342): Mage_Cms_IndexController->indexAction(Object(Mage_Cms_IndexController), 'home')
#35 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(159): Mage_Core_Controller_Varien_Action->dispatch()
#36 /home/watchwoo/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(146): Mage_Core_Controller_Varien_Router_Standard->match('index')
#37 /home/watchwoo/public_html/magento/app/Mage.php(427): Mage_Core_Controller_Varien_Front->dispatch(Object(Mage_Core_Controller_Request_Http))
#38 /home/watchwoo/public_html/magento/index.php(40): Mage::run()
#39 {main}
 
Magento Community Magento Community
Magento Community
Magento Community
 
mzeblu
Jr. Member
 
Total Posts:  11
Joined:  2008-06-07
 

Bump..

Anyone know.. ?  Any help?

 
Magento Community Magento Community
Magento Community
Magento Community
 
widescape
Jr. Member
 
Total Posts:  2
Joined:  2008-09-18
 

Just delete the folder /var/cache/ and everything should be up and running again.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Nls_io
Jr. Member
 
Avatar
Total Posts:  24
Joined:  2008-02-13
Paris, France
 

This happens everytime Magento is on high load (traffic). If you stress test Magento with Siege or Ab, you’ll see this error approximately 7% of the time (on my server). The only solution is to disable EAV cache (but loosing performance) or clearing the cache (/var/cache).

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top