Magento Forum

   
Weird Error When Adding to Card (Invalid entity_type specified)
 
jjafuller
Jr. Member
 
Total Posts:  17
Joined:  2008-03-24
 

My client has been reporting the following, error when attempting to purchase an item. I have never seen the error myself. Does anyone recognize this, and hopefully know how to fix it? Thanks.

Invalid entity_type specifiedquote_address_rate
Trace
:
#0 httpdocs/app/code/core/Mage/Eav/Model/Config.php(107): Mage::exception('Mage_Eav', 'Invalid entity_...')
#1 httpdocs/app/code/core/Mage/Eav/Model/Entity/Abstract.php(232): Mage_Eav_Model_Config->getEntityType('quote_address_r...')
#2 httpdocs/app/code/core/Mage/Sales/Model/Entity/Quote/Address/Rate.php(33): Mage_Eav_Model_Entity_Abstract->setType('quote_address_r...')
#3 httpdocs/app/code/core/Mage/Core/Model/Config.php(697): Mage_Sales_Model_Entity_Quote_Address_Rate->__construct(Array)
#4 httpdocs/app/code/core/Mage/Core/Model/Config.php(737): Mage_Core_Model_Config->getModelInstance('sales_entity/qu...', Array)
#5 httpdocs/app/Mage.php(322): Mage_Core_Model_Config->getResourceModelInstance('sales/quote_add...', Array)
#6 httpdocs/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(106): Mage::getResourceModel('sales/quote_add...')
#7 httpdocs/app/code/core/Mage/Sales/Model/Entity/Quote/Address/Rate/Collection.php(34): Mage_Eav_Model_Entity_Collection_Abstract->_init('sales/quote_add...')
#8 httpdocs/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(67): Mage_Sales_Model_Entity_Quote_Address_Rate_Collection->_construct()
#9 httpdocs/app/code/core/Mage/Core/Model/Config.php(697): Mage_Eav_Model_Entity_Collection_Abstract->__construct(Array)
#10 httpdocs/app/code/core/Mage/Core/Model/Config.php(737): Mage_Core_Model_Config->getModelInstance('sales_entity/qu...', Array)
#11 httpdocs/app/Mage.php(322): Mage_Core_Model_Config->getResourceModelInstance('sales/quote_add...', Array)
#12 httpdocs/app/code/core/Mage/Sales/Model/Quote/Address.php(307): Mage::getResourceModel('sales/quote_add...')
#13 httpdocs/app/code/core/Mage/Sales/Model/Quote/Address.php(396): Mage_Sales_Model_Quote_Address->getShippingRatesCollection()
#14 httpdocs/app/code/core/Mage/Checkout/Model/Cart.php(137): Mage_Sales_Model_Quote_Address->removeAllShippingRates()
#15 httpdocs/app/code/core/Mage/Checkout/controllers/CartController.php(68): Mage_Checkout_Model_Cart->init()
#16 httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(342): Mage_Checkout_CartController->indexAction()
#17 httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(159): Mage_Core_Controller_Varien_Action->dispatch('index')
#18 httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(146): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#19 httpdocs/app/Mage.php(427): Mage_Core_Controller_Varien_Front->dispatch()
#20 httpdocs/index.php(40): Mage::run('default')
#21 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
 
Rence
Jr. Member
 
Total Posts:  7
Joined:  2008-02-18
 

Disabling EAV cache fixes this specific error.

Found suggestion in this thread.

====================================

I’m getting a similar error on my site.

Invalid entity_type specified: quote_item
Trace:
#0 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Eav/Model/Config.php(107): Mage::exception(’Mage_Eav’, ‘Invalid entity_...’)
#1 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Eav/Model/Entity/Abstract.php(232): Mage_Eav_Model_Config->getEntityType(’quote_item’)
#2 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Sales/Model/Entity/Quote/Item.php(33): Mage_Eav_Model_Entity_Abstract->setType(’quote_item’)
#3 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Core/Model/Config.php(697): Mage_Sales_Model_Entity_Quote_Item->__construct(Array)
#4 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Core/Model/Config.php(737): Mage_Core_Model_Config->getModelInstance(’sales_entity/qu...’, Array)
#5 /home/classi27/public_html/lucbags/store/app/Mage.php(322): Mage_Core_Model_Config->getResourceModelInstance(’sales/quote_ite...’, Array)
#6 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(106): Mage::getResourceModel(’sales/quote_ite...’)
#7 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Sales/Model/Entity/Quote/Item/Collection.php(41): Mage_Eav_Model_Entity_Collection_Abstract->_init(’sales/quote_ite...’)
#8 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(67): Mage_Sales_Model_Entity_Quote_Item_Collection->_construct()
#9 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Core/Model/Config.php(697): Mage_Eav_Model_Entity_Collection_Abstract->__construct(Array)
#10 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Core/Model/Config.php(737): Mage_Core_Model_Config->getModelInstance(’sales_entity/qu...’, Array)
#11 /home/classi27/public_html/lucbags/store/app/Mage.php(322): Mage_Core_Model_Config->getResourceModelInstance(’sales/quote_ite...’, Array)
#12 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Sales/Model/Quote.php(554): Mage::getResourceModel(’sales/quote_ite...’)
#13 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Sales/Model/Quote.php(587): Mage_Sales_Model_Quote->getItemsCollection()
#14 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Sales/Model/Quote.php(602): Mage_Sales_Model_Quote->getAllItems()
#15 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Checkout/Model/Cart.php(134): Mage_Sales_Model_Quote->hasItems()
#16 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Checkout/controllers/CartController.php(68): Mage_Checkout_Model_Cart->init()
#17 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Core/Controller/Varien/Action.php(342): Mage_Checkout_CartController->indexAction()
#18 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(159): Mage_Core_Controller_Varien_Action->dispatch(’index’)
#19 /home/classi27/public_html/lucbags/store/app/code/core/Mage/Core/Controller/Varien/Front.php(146): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#20 /home/classi27/public_html/lucbags/store/app/Mage.php(427): Mage_Core_Controller_Varien_Front->dispatch()
#21 /home/classi27/public_html/lucbags/store/index.php(40): Mage::run()
#22 {main}

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