dbModel read resource does not implement Zend_Db_Adapter_Abstract

user3906474 picture user3906474 · Aug 28, 2014 · Viewed 7.9k times · Source

i am facing a situation where i can't find any solution. My website was working fine till i installed a new extension. After installing this extension my website and admin panel is not working. Actually i have installed lower version extension because i didn't noticed version and installed.

I am getting this stack trace :-

dbModel read resource does not implement Zend_Db_Adapter_Abstract

Trace:
#0 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(134): Varien_Data_Collection_Db->setConnection(false)
#1 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/Config.php(1348): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#2 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/Config.php(1380): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#3 /home/krishangrover/public_html/app/Mage.php(491): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#4 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#5 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#6 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/App.php(608): Mage_Core_Model_Abstract->getCollection()
#7 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/App.php(466): Mage_Core_Model_App->_initStores()
#8 /home/krishangrover/public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store')
#9 /home/krishangrover/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#10 /home/krishangrover/public_html/index.php(87): Mage::run('', 'store')
#11 {main}

I have done all the solution but no one is working. i have searched over google and searched on stackoverflow also. But no solution is working.

Answer

Rajeev K Tomy picture Rajeev K Tomy · Aug 28, 2014

If you are sure the extension created the problem. You need to disable the extension and try again.

For this you need to follow these steps

  1. Go to the root directory of Magento
  2. Open the directory app/etc/modules/.
  3. You can find a file with a name Ksv_Attributemanager.xml there. Open that file.
  4. There you can see a code like this <active>true</active>. Put false there.
  5. Clear the cache and load the page again.

Let me know whether it makes any difference.

EDIT

If you didn't find such file, then any one in those file is contributed by that extension. What you need to do is, open all files which does not start with Mage, and check for this code.

<config>
    <modules>
        <Ksv_Attributemanager>
            <active>true</active>
            <codePool>community</codePool>
        </Ksv_Attributemanager>
    </modules>
</config>

There may be a depend node present along with this one. If you find such code in any one of the file, put false instead true and try again. (If this code present, that means that file is a part of that custom extension)