Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Strange error
 
XPSM1730
Member
 
Total Posts:  70
Joined:  2008-02-27
 

All in a sudden this error appears when an order is being confirmed by the customer: invalid entry_type stated: order_item

When i log into the adminpanel i get to see the following:

Invalid entry_type stated: order_item
Trace:
#0 /home/admin/domains/xxxx.nl/public_html/app/code/core/Mage/Eav/Model/Config.php(107): Mage::exception(’Mage_Eav’, ‘Ongeldig entry_...’)
#1 /home/admin/domains/xxxxxx.nl/public_html/app/code/core/Mage/Eav/Model/Entity/Abstract.php(232): Mage_Eav_Model_Config->getEntityType(’order_item’)
#2 /home/admin/domains/xxxxxx.nl/public_html/app/code/core/Mage/Sales/Model/Entity/Order/Item.php(35): Mage_Eav_Model_Entity_Abstract->setType(’order_item’)
#3 /home/admin/domains/xxxx.nl/public_html/app/code/core/Mage/Core/Model/Config.php(697): Mage_Sales_Model_Entity_Order_Item->__construct(Array)
#4 /home/admin/domains/xxxxxx.nl/public_html/app/code/core/Mage/Core/Model/Config.php(737): Mage_Core_Model_Config->getModelInstance(’sales_entity/or...’, Array)
#5 /home/admin/domains/xxxxxx.nl/public_html/app/Mage.php(322): Mage_Core_Model_Config->getResourceModelInstance(’sales/order_ite...’, Array)
#6 /home/admin/domains/xxxxxxx.nl/public_html/app/Mage.php(336): Mage::getResourceModel(’sales/order_ite...’, Array)
#7 /home/admin/domains/xxxxxxxxxx.nl/public_html/app/code/core/Mage/Reports/Model/Mysql4/Product/Collection.php(172): Mage::getResourceSingleton(’sales/order_ite...’)
#8 /home/admin/domains/xxxxxx.nl/public_html/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Products/Ordered.php(51): Mage_Reports_Model_Mysql4_Product_Collection->addOrderedQty()
#9 /home/admin/domains/xxxxxxx.nl/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(438): Mage_Adminhtml_Block_Dashboard_Tab_Products_Ordered->_prepareCollection()
#10 /home/admin/domains/xxxxxxxx.nl/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(444): Mage_Adminhtml_Block_Widget_Grid->_prepareGrid()
#11 /home/admin/domains/xxxxxxxxxx.nl/public_html/app/code/core/Mage/Core/Block/Abstract.php(553): Mage_Adminhtml_Block_Widget_Grid->_beforeToHtml()
#12 /home/admin/domains/xxxxxxx.nl/public_html/app/code/core/Mage/Adminhtml/Block/Dashboard/Grids.php(43): Mage_Core_Block_Abstract->toHtml()
#13 /home/admin/domains/xxxxxx.nl/public_html/app/code/core/Mage/Core/Block/Abstract.php(193): Mage_Adminhtml_Block_Dashboard_Grids->_prepareLayout()
#14 /home/admin/domains/xxxxxxxx.nl/public_html/app/code/core/Mage/Core/Model/Layout.php(402): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#15 /home/admin/domains/xxxxxx.nl/public_html/app/code/core/Mage/Adminhtml/Block/Dashboard.php(66): Mage_Core_Model_Layout->createBlock(’adminhtml/dashb...’)
#16 /home/admin/domains/xxxxxxxx.nl/public_html/app/code/core/Mage/Core/Block/Abstract.php(193): Mage_Adminhtml_Block_Dashboard->_prepareLayout()
#17 /home/admin/domains/xxxxxx.nl/public_html/app/code/core/Mage/Core/Model/Layout.php(402): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#18 /home/admin/domains/xxxxxxx.nl/public_html/app/code/core/Mage/Adminhtml/controllers/DashboardController.php(35): Mage_Core_Model_Layout->createBlock(’adminhtml/dashb...’, ‘dashboard’)
#19 /home/admin/domains/xxxxxxxx.nl/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(342): Mage_Adminhtml_DashboardController->indexAction()
#20 /home/admin/domains/xxxxx.nl/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(148): Mage_Core_Controller_Varien_Action->dispatch(’index’)
#21 /home/admin/domains/xxxxxx.nl/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(146): Mage_Core_Controller_Varien_Router_Admin->match(Object(Mage_Core_Controller_Request_Http))
#22 /home/admin/domains/xxxxxxxx.nl/public_html/app/Mage.php(427): Mage_Core_Controller_Varien_Front->dispatch()
#23 /home/admin/domains/xxxxxxxx.nl/public_html/index.php(40): Mage::run()
#24 {main}

The store has been running fine for 5 months.... DOes anybody know what the problem is and how to fix it?
I’ve repaired the database but that didn’t do much.

 
Magento Community Magento Community
Magento Community
Magento Community
 
XPSM1730
Member
 
Total Posts:  70
Joined:  2008-02-27
 

This issue has been resolved.
ClamAV changed the chmod rights for some magento files and folders, resulting in strange errors.
I’ve set chmod back to 777 for all files and magento is running fine again.

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