[Solved] Magento - dbModel read resource does not implement Zend_Db_Adapter_Abstract or Magento install error - Exception printing is disabled

Magento - dbModel read resource does not implement Zend_Db_Adapter_Abstract 

or 

Magento install error - Exception printing is disabled


If you enabled full page cache on Zend server this error shows up:


dbModel read resource does not implement Zend_Db_Adapter_Abstract
Trace
:#0 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Mysql4\Collection\Abstract.php(68): Varien_Data_Collection_Db->setConnection(false)


What you should do next:

1. try to clear cache - erase all files from MAGENTO_ROOT/var/cache/ directory

2. change settings 



1. Navigate to the \"errors\" folder.
2. Change local.xml.sample to local.xml
3. You should now see a new list of crazy errors all over the Magento page - this is okay.
4. Open magento/lib/Zend/Cache/Backend/File.php and look for:

protected $_options = array(\'cache_dir\' => \'null\',

5. Change it to:


protected $_options = array(\'cache_dir\' => \'tmp/\',

6 .Save it.
7. Now the final step is to go create a tmp folder in the root Magento folder. (make permission 777 and ownership as web server user)
8. That’s it.  

Comments

Post a Comment

Popular posts from this blog

How to clean DB from old logs in Magento 1.x

Securing the Pi-hole with fail2ban to prevent DNS Amplification attacks

Apache 2.4 + mod_wsgi + Python 3.7 + Django installation on Centos 7.10