Fatal error: Call to a member function beginTransaction() on a non-object in magento

Fatal error: Call to a member function beginTransaction() on a non-object in app/code/core/Mage/Core/Model/Abstract.php on line 313:

In case if we are facing issue like above then the for fix we have to check our module etc/config file first.

Whenever override magento core file to you local module, then we might be miss some thing from the config.xml file.

Solution:

<catalog>
<class>Jute_Catalog_Model</class>
<resourceModel>Jute_Catalog_Mysql4</resourceModel>
</catalog>

replace to below format

<catalog>
<class>Jute_Catalog_Model</class>
<resourceModel>jute_mysql4</resourceModel>
</catalog>

1. Check <resourceModel> tag is declared properly or not (with our spell mistake)
2. Check inside resourceModel tag – all are small letter.

 

————————————————————————————————————————————————————————————

Corner of Blog:

“Our prime purpose in this life is to help others. And if you can’t help them, at least don’t hurt them.”
by Dalai Lama

 

———————————————————————————————————————————————————————————————-

Leave a Reply