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

Upgrading from 1.4.1.1 to 1.4.2 and then onto 1.8.1 - Can’t retrieve entity config: customer/eav_attribute_website
 
rds23star
Jr. Member
 
Total Posts:  1
Joined:  2012-08-06
 

Not sure where this should sit, but the problem seems to be at the 1.4.1.1 => 1.4.2 stage.

We’re having issues trying to upgrade an old site from 1.4.1.1 to 1.4.2 and then on to 1.8.1 and it seems to be an issue with the site’s database when upgrading from 1.4.1.1 to 1.4.2.

We initially found an issue with the engines for tables, so we ran the database repair kit. This then seemed to upgrade with no problems, but when trying to amend/add a new customer account, we got the following error:

a:5:{i:0;s:60:"Can't retrieve entity config: customer/eav_attribute_website";i:1;s:3540:"#0 /******/htdocs/app/code/core/Mage/Core/Model/Resource.php(272): Mage::throwException('Can't retrieve ...')
#1 /******/htdocs/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(276): Mage_Core_Model_Resource->getTableName('customer/eav_at...')
#2 /*******/htdocs/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(488): Mage_Core_Model_Resource_Db_Abstract->getTable('customer/eav_at...')
#3 /*******/htdocs/app/code/core/Mage/Customer/Model/Resource/Attribute/Collection.php(64): Mage_Core_Model_Resource_Db_Collection_Abstract->getTable('customer/eav_at...')
#4 /*******/htdocs/app/code/core/Mage/Eav/Model/Resource/Attribute/Collection.php(153): Mage_Customer_Model_Resource_Attribute_Collection->_getEavWebsiteTable()
#5 /*******/htdocs/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(135): Mage_Eav_Model_Resource_Attribute_Collection->_initSelect()
#6 /*******/htdocs/app/code/core/Mage/Core/Model/Config.php(1348): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Array)
#7 /*******/htdocs/app/code/core/Mage/Core/Model/Config.php(1380): Mage_Core_Model_Config->getModelInstance('customer_entity...', Array)
#8 /*******/htdocs/app/Mage.php(491): Mage_Core_Model_Config->getResourceModelInstance('customer/attrib...', Array)
#9 /*******/htdocs/app/code/core/Mage/Eav/Model/Config.php(354): Mage::getResourceModel('customer/attrib...')
#10 /*******/htdocs/app/code/core/Mage/Eav/Model/Config.php(478): Mage_Eav_Model_Config->_initAttributes(Object(Mage_Eav_Model_Entity_Type))
#11 /*******/htdocs/app/code/core/Mage/Eav/Model/Entity/Abstract.php(512): Mage_Eav_Model_Config->getEntityAttributeCodes(Object(Mage_Eav_Model_Entity_Type), Object(Kgn_Coreextended_Model_Customer))
#12 /*******/htdocs/app/code/core/Mage/Eav/Model/Entity/Abstract.php(952): Mage_Eav_Model_Entity_Abstract->loadAllAttributes(Object(Kgn_Coreextended_Model_Customer))
#13 /*******/htdocs/app/code/core/Mage/Core/Model/Abstract.php(225): Mage_Eav_Model_Entity_Abstract->load(Object(Kgn_Coreextended_Model_Customer), 607, NULL)
#14 /*******/htdocs/app/code/core/Mage/Adminhtml/controllers/CustomerController.php(45): Mage_Core_Model_Abstract->load(607)
#15 /*******/htdocs/app/code/core/Mage/Adminhtml/controllers/CustomerController.php(97): Mage_Adminhtml_CustomerController->_initCustomer()
#16 /*******/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_CustomerController->editAction()
#17 /*******/htdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit')
#18 /*******/htdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#19 /*******/htdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#20 /*******/htdocs/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#21 /*******/htdocs/index.php(87): Mage::run('', 'store')

This specific error we were able to get by first resaving the store view entry under Manage Stores and reindexing and clearing the Cache and then by running the following in the frontend:

$attr Mage::getSingleton('eav/config')->getAttribute('customer''attr_code');
$attr->setData('used_in_forms', array('customer_account_edit''adminhtml_customer'));
$attr->save();

This allowed us to open the edit view, but when we trying to save a customer, it crashes to the main Dashboard page with the following error in system.log:

Warning: include(Mage/Customer/Model/Attribute/Data/.php): failed to open streamNo such file or directory  in /******/htdocs/lib/Varien/Autoload.php on line 93
Warning
: include(): Failed opening 'Mage/Customer/Model/Attribute/Data/.php' for inclusion (include_path='/********/htdocs/app/code/local:/********/htdocs/app/code/community:/********/htdocs/app/code/core:/*********/htdocs/lib:.:/usr/share/pear:/usr/share/php')  in /*********/htdocs/lib/Varien/Autoload.php on line 93

Comparing the upgraded installation with a clean version of 1.4.2, showed they were identical. We tried to put onto 1.8.1 in case there was an issue with the files. The installation then crashed whilst updating the database with the following exception:

Can't retrieve entity config: customer/eav_attribute_website

Has anyone experienced any similar issues to this and been able to resolve them? All non core modules were switched off prior to upgrading.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kemweb
Jr. Member
 
Total Posts:  1
Joined:  2012-05-15
 

I am updating from 1.4.0.1 to 1.8 and got the same problem but no solution yet.

I changed some tables to InnoDB thought it might be the problem but that did not help. Anyway:

ALTER TABLE `report_compared_product_indexENGINE=InnoDB;
ALTER TABLE `report_viewed_product_indexENGINE=InnoDB;
ALTER TABLE `eav_attribute_labelENGINE=InnoDB;
ALTER TABLE `customer_eav_attributeENGINE=InnoDB;

I also cleared cache and reindexed. Looks like a lot of people had this problem before.

There is a thread with a sql fix but that did not work for me:

http://www.magentocommerce.com/boards/viewthread/214185/

Another solution might be the db repair tool but I can’t create a second db for this at the moment.

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