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

Upgrade from 15. to 1.7; onepagecheckout does not go further than step 1
 
michielh
Jr. Member
 
Total Posts:  22
Joined:  2011-03-04
 

Hey erveryone!

I thought I managed to upgrade my magento installation from 1.5 to 1.7, however after rechecking the live site I noticed that the onepagecheckout page doesn’t go from step 1 to step 2. After performing several tests I found out that the AJAX calls returned an error:

<pre>Warning: include(Mage/Customer/Entity/Model/Address/Attribute/Backend/Region.php)
[<a href='function.include'>function.include</a>]failed to open streamNo such file or directory  in /home/sites/domains/site.com/public_html/lib/Varien/Autoload.php on line 93

After searching for the document, I found out that the file seems to be located in

/domains/site.com/public_html/app/code/core/Mage/Customer/Model/Entity/Address/Attribute/Backend/Region.php

So instead of Customer/Model/Entity, it’s Customer/Entity/Model. Is anyone familiar with this problem? I downloaded the magento 1.7 zip file afterwards to verify, and it had the app\code\core\Mage\Customer\Model\Entity structure, so I do not know why magento would reference to a file on a different location.

Any help is much appreciated. If I find the answer myself I will post it to this thread in order to make it available for you guys.

Thanks!

[update]
I copied the file&folder;structure to the location he required, but now I receive a different error:

<pre>Invalid backend model specifiedcustomer_entity/address_attribute_backend_region
#0 /home/site/domains/site.com/public_html/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php(346): Mage::exception('Mage_Eav', 'Invalid backend...')
#1 /home/site/domains/site.com/public_html/app/code/core/Mage/Eav/Model/Entity/Abstract.php(1094): Mage_Eav_Model_Entity_Attribute_Abstract->getBackend()
#2 /home/site/domains/site.com/public_html/app/code/core/Mage/Eav/Model/Entity/Abstract.php(998): Mage_Eav_Model_Entity_Abstract->_setAttributeValue(Object(Mage_Customer_Model_Address), Array)
#3 /home/site/domains/site.com/public_html/app/code/core/Mage/Eav/Model/Entity/Abstract.php(959): Mage_Eav_Model_Entity_Abstract->_loadModelAttributes(Object(Mage_Customer_Model_Address))
#4 /home/site/domains/site.com/public_html/app/code/core/Mage/Core/Model/Abstract.php(225): Mage_Eav_Model_Entity_Abstract->load(Object(Mage_Customer_Model_Address), '7', NULL)
#5 /home/site/domains/site.com/public_html/app/code/core/Mage/Checkout/Model/Type/Onepage.php(246): Mage_Core_Model_Abstract->load('7')
#6 /home/site/domains/site.com/public_html/app/code/core/Mage/Checkout/controllers/OnepageController.php(320): Mage_Checkout_Model_Type_Onepage->saveBilling(Array, '7')
#7 /home/site/domains/site.com/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Checkout_OnepageController->saveBillingAction()
#8 /home/site/domains/site.com/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('saveBilling')
#9 /home/site/domains/site.com/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))
#10 /home/site/domains/site.com/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#11 /home/site/domains/site.com/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#12 /home/site/domains/site.com/public_html/index.php(87): Mage::run('', 'store')
#13 {main}</pre>
 
Magento Community Magento Community
Magento Community
Magento Community
 
michielh
Jr. Member
 
Total Posts:  22
Joined:  2011-03-04
 

Final update

I managed to fix the forthcoming error Customer Address Edit Error Invalid backend Model Specified , by using the following fix:

1) Get into your database and find the table eav_attribute (make sure you create a database backup before you start!)
2) Search in the field backend_model for records that start with “customer/entity_”, you’ll probably find 2 like I did, the value in their attribute code field being ‘region’ and ‘street’.
3) replace those two record:
3a) change: customer_entity/address_attribute_backend_street to customer/entity_address_attribute_backend_street
3b) change: customer_entity/address_attribute_backend_region to customer/entity_address_attribute_backend_region

I hope anyone can use this information. If you do, please let me know how it worked out!

 
Magento Community Magento Community
Magento Community
Magento Community
 
diffstrat
Jr. Member
 
Total Posts:  4
Joined:  2010-07-09
 

Did the trick for me. Thanks for posting. Here’s the SQL to make the change in case it’s helpful for anyone else.

UPDATE `eav_attribute`
    
SET backend_model 'customer/entity_address_attribute_backend_street'
    
WHERE backend_model 'customer_entity/address_attribute_backend_street';
    
UPDATE `eav_attribute`
    
SET backend_model 'customer/entity_address_attribute_backend_region'
    
WHERE backend_model 'customer_entity/address_attribute_backend_region';
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top