I'm getting the following error after moving a Magento 1.9.1 project from my local Vagrant box to a remote server:

Fatal error: Call to a member function beginTransaction() on boolean in /var/www/html/app/code/core/Mage/Core/Model/Abstract.php on line 313

This errors points to this section of code:


Where $this->_getResource is returning false. This seems to be caused by either a Model autoloading issue, or models not getting initialized correctly but I cannot find the cause.

The app has no errors locally, and I don't see any major differences between my server environment and local environment. Here are the config files and model files that are relevant to the problem



Example model, all the models are empty similar to this.

class Company_XMPieFormBuilder_Model_Configuration extends Company_Core_Model_Abstract {

    protected function _construct()


Base model.

class Company_Core_Model_Abstract extends Mage_Core_Model_Abstract {

1 Answer 1


The problem comes from the declaration of the resources and the name used in the models.

So instead of :


And then in your models you need to call:


That comes from the fact that you declares your entities using the xmpieformbuilder_resource tag.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.