|
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…
|