I was created a custom module for my Magento project. This module works in Magento 1.6.X . But while i install this extension in Magento version 1.3.2.4 . Magento throws below error.
dbModel read resource does not implement Zend_Db_Adapter_Abstract
Many Forums discussed this issue. But unfortunately. I don’t get any results.
I cleared cache, Reindexed. What else should i do to solve this one.
Var folder permission is setuped 777. Even I tried in fresh Magento installation but same error.
Thanks In Advance.
For that version of Magento (1.3.2.4), you need to specify read and write connections in your config.xml file.
Under
<global>, add a<resources>node like so:Make sure to refresh your cache!
This type of configuration is optional in later releases of Magento; the system will load the default read/write connections if you don’t specify them in your config. I’m not sure when exactly this feature was implemented, but it is present in 1.6.x.
The difference between 1.3.2.4 and 1.6.x is located in Mage_Core_Model_Resource::getConnection().
1.6.x will return the default read/write connection if you don’t have one specified in your config.xml:
Mage_Core_Model_Resource::getConnection()
1.3.2.4 will return false:
The reason why you get the “does not implement Zend_Db_Adapter_Abstract” error is located in Varien_Data_Collection_Db::setConnection():
When
falseis passed in as the connection ($conn), it’ll throw this error because — of course —falseis not an instance of Zend_Db_Adapter_Abstract.