Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Moving Magento to another server
 
elina
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2008-04-03
Heraklion Crete
 

confused Hello

i’m trying to moving my magento to another account in my host provider (I’m not changing host ....just accounts..)
so i restore the old database to my new account and copy my old /media/catalog folder to /media/ folder in the new account

if i check my frontend from the real path http://www.p.rimarydom.ain .co.m/magentofolder everything works fine

but this error is comming up when i test a category from the frontend with a new domain name that i bought earlier and assigned to the magento folder.. http://www.new domain.com
Do i have to configure it in the Configuration --> Web --> Base URL??? What is the correct format...??

Invalid attribute namesize
Trace
:
#0 /home/domain/public_html/magento/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1010): Mage::exception('Mage_Eav', 'Invalid attribu...')
#1 /home/domain/public_html/magento/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1091): Mage_Eav_Model_Entity_Collection_Abstract->_addAttributeJoin('size', 'inner')
#2 /home/domain/public_html/magento/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(239): Mage_Eav_Model_Entity_Collection_Abstract->_getAttributeConditionSql('size', Array, 'inner')
#3 /home/domain/public_html/magento/app/code/core/Mage/Catalog/Model/Product/Type/Configurable.php(232): Mage_Eav_Model_Entity_Collection_Abstract->addAttributeToFilter('size', Array)
#4 /home/domain/public_html/magento/app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Type/Configurable/Attribute/Collection.php(101): Mage_Catalog_Model_Product_Type_Configurable->getUsedProducts(Array)
#5 /home/domain/public_html/magento/app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Type/Configurable/Attribute/Collection.php(76): Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Type_Configurable_Attribute_Collection->_addAssociatedProductFilters()
#6 /home/domain/public_html/magento/lib/Varien/Data/Collection/Db.php(594): Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Type_Configurable_Attribute_Collection->_afterLoad()
#7 /home/domain/public_html/stock/app/code/core/Mage/Core/Model/Mysql4/Collection/Abstract.php(185): Varien_Data_Collection_Db->load(false, false)
#8 /home/domain/public_html/magento/app/code/core/Mage/Catalog/Model/Product/Type/Configurable.php(162): Mage_Core_Model_Mysql4_Collection_Abstract->load()
#9 /home/domain/public_html/magento/app/code/core/Mage/Catalog/Model/Product/Type/Configurable.php(219): Mage_Catalog_Model_Product_Type_Configurable->getConfigurableAttributes()
#10 /home/domain/public_html/magento/app/code/core/Mage/Catalog/Model/Product/Type/Configurable.php(307): Mage_Catalog_Model_Product_Type_Configurable->getUsedProducts()
#11 /home/domain/public_html/magento/app/code/core/Mage/Catalog/Model/Product.php(705): Mage_Catalog_Model_Product_Type_Configurable->isSalable()
#12 /home/domain/public_html/magento/app/code/core/Mage/Catalog/Model/Product.php(710): Mage_Catalog_Model_Product->isSalable()
#13 /home/domain/public_html/magento/app/design/frontend/default/default/template/catalog/product/list.phtml(101): Mage_Catalog_Model_Product->isSaleable()
#14 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Template.php(131): include('/home/elinoilo/...')
#15 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Template.php(163): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#16 /home/domain/public_html/magentoapp/code/core/Mage/Core/Block/Template.php(180): Mage_Core_Block_Template->renderView()
#17 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(554): Mage_Core_Block_Template->_toHtml()
#18 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(431): Mage_Core_Block_Abstract->toHtml()
#19 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(408): Mage_Core_Block_Abstract->_getChildHtml('product_list', true)
#20 /home/domain/public_html/magento/app/code/core/Mage/Catalog/Block/Category/View.php(80): Mage_Core_Block_Abstract->getChildHtml('product_list')
#21 /home/domain/public_html/magento/app/design/frontend/default/default/template/catalog/category/view.phtml(48): Mage_Catalog_Block_Category_View->getProductListHtml()
#22 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Template.php(131): include('/home/elinoilo/...')
#23 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Template.php(163): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#24 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Template.php(180): Mage_Core_Block_Template->renderView()
#25 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(554): Mage_Core_Block_Template->_toHtml()
#26 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Text/List.php(37): Mage_Core_Block_Abstract->toHtml()
#27 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(554): Mage_Core_Block_Text_List->_toHtml()
#28 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(431): Mage_Core_Block_Abstract->toHtml()
#29 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(408): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#30 /home/domain/public_html/magento/app/design/frontend/default/default/template/page/3columns.phtml(54): Mage_Core_Block_Abstract->getChildHtml('content')
#31 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Template.php(131): include('/home/domain/...')
#32 /home/domain/public_html/magento/app/code/core/Mage/Core/Block/Template.php(163): Mage_Core_Block_Template->fetchView('frontend/defaul...').....
#33 /home/domain/public_html/stock/app/code/core/Mage/Core/Block/Template.php(180): Mage_Core_Block_Template->renderView()
#34 /home/domain/public

thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1771
Joined:  2007-08-07
Los Angeles
 

For clean transfer:
Before dumping the database for new domain, set in Configuration > Web > (both Unsecure and Secure) > Base URL to {{base_url}}
After restoring the backup on new domain, do not forget to set the correct domain names there.

Alternatively, you could edit Magento database on new server, table core_config_data, and update records where path like ‘web/%/base_url’

 Signature 

- I would love to change the world, but they won’t give me the source code -

 
Magento Community Magento Community
Magento Community
Magento Community
 
elina
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2008-04-03
Heraklion Crete
 

thank you ..!  wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
jimmypalmer
Member
 
Total Posts:  61
Joined:  2008-05-04
 

elina - I’m trying to do this too and was just wandering how you restored your old database.

thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
jeanlucb
Member
 
Total Posts:  60
Joined:  2008-02-10
 

I did that and here is my error after importing all my database…

NoticeUndefined index:  0 in /home/menuempi/public_html/app/code/core/Mage/Core/Model/Mysql4/Config.php on line 88[0] in Mage_Core_Model_Mysql4_Config->loadToXml(Mage_Core_Model_Configin /home/menuempi/public_html/app/code/core/Mage/Core/Model/Config.php on line 185[1] in Mage_Core_Model_Config->init(NULLin /home/menuempi/public_html/app/code/core/Mage/Core/Model/App.php on line 205[2] in Mage_Core_Model_App->init("default""store"NULLin /home/menuempi/public_html/app/Mage.php on line 402[3] in Mage::app("default""store"NULLin /home/menuempi/public_html/app/Mage.php on line 422[4] in Mage::run("default"in /home/menuempi/public_html/index.php on line 40

Notice
Undefined index:  code in /home/menuempi/public_html/app/code/core/Mage/Core/Model/Mysql4/Config.php on line 110[0] in Mage_Core_Model_Mysql4_Config->loadToXml(Mage_Core_Model_Configin /home/menuempi/public_html/app/code/core/Mage/Core/Model/Config.php on line 185[1] in Mage_Core_Model_Config->init(NULLin /home/menuempi/public_html/app/code/core/Mage/Core/Model/App.php on line 205[2] in Mage_Core_Model_App->init("default""store"NULLin /home/menuempi/public_html/app/Mage.php on line 402[3] in Mage::app("default""store"NULLin /home/menuempi/public_html/app/Mage.php on line 422[4] in Mage::run("default"in /home/menuempi/public_html/index.php on line 40


Fatal error
Call to a member function extend() on a non-object in /home/menuempi/public_html/app/code/core/Mage/Core/Model/Mysql4/Config.php on line 111

 
Magento Community Magento Community
Magento Community
Magento Community
 
jimmypalmer
Member
 
Total Posts:  61
Joined:  2008-05-04
 

how did you import your database?

 
Magento Community Magento Community
Magento Community
Magento Community
 
jimmypalmer
Member
 
Total Posts:  61
Joined:  2008-05-04
 

I imported my database just through a sql tool and am getting a similar error:

Fatal error: Call to a member function getAttributeCode() on a non-object in /home/onlyecom/public_html/magento/app/code/core/Mage/Catalog/Model/Product/Type/Configurable.php on line 326

 
Magento Community Magento Community
Magento Community
Magento Community
 
jeanlucb
Member
 
Total Posts:  60
Joined:  2008-02-10
 
jimmypalmer - 03 June 2008 06:41 AM

how did you import your database?

Hi jimmypalmer,

I went into phpmyadmin, export all the database (structure and data) and import the .sql file in ssh by a dump command…

when i go in my phpmyadmin of my new hosting, I see everything has been imported well…

 
Magento Community Magento Community
Magento Community
Magento Community
 
elina
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2008-04-03
Heraklion Crete
 

hello

first i created a new database name with the same name as before and
to restore my old database i went into phpMyAdmin , in the new empty db and import the .sql

 
Magento Community Magento Community
Magento Community
Magento Community
 
northlandadv
Jr. Member
 
Total Posts:  7
Joined:  2008-05-03
 

Don’t forget to go to admin-->configuration and refresh all the cache areas.  It does wonders.  If you don’t, you’ll be seeing a mix of cached and new URLs on the front end.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
53156 users|602 users currently online|107163 forum posts