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

Magento

eCommerce Software for Online Growth

Magento Forum

   
Foreign database in ressources container
 
pasglop
Jr. Member
 
Total Posts:  2
Joined:  2008-04-15
 

Just a post about the way I made the tool work with ip-host mysql 4.1 database.

My configuration is :
PHP 5.2
mysql 5.0
debian etch
Mage_Oscommerce 0.8.18912

When trying to configure oscommerce profile, I was always getting a “can’t connect to database error” . After investigation, I found out that method Mage_Oscommerce_Model_Mysql4_Oscommerce::_getForeignAdapter is returning a Mage_Core_Model_Resource with default configuration (Magento’s database) parameter.

in app/code/core/Mage/core/Model/Ressource.php line 74, getConnection method test if a connection exists with the same parent name. As parent name in config.xml is “ressources” (common name for all ressources), it returns magento connection and not foreign one. I patched with a parameter to force creation for foreign connection for the moment. Don’t know if you saw this before…

 
Magento Community Magento Community
Magento Community
Magento Community
 
mic68
Jr. Member
 
Total Posts:  2
Joined:  2008-04-15
 

have the same problem - but dont find the place where to patch.
could you explain what you have done?

 
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
53170 users|798 users currently online|107190 forum posts