I have developed a custom module that also has a custom database table. However, I cannot insert records since I am presented with the following error:

Fatal error: Call to a member function beginTransaction() on boolean in /httpdocs/includes/src/__default.php on line 6105

Here is the code that I am trying:

$data = array(
          'voucher'     => 'voucher',
          'customer_name' => 'customer_name',
          'order'           => 'order',
          'value'           => 'value',
          'status'      => 1,
          'date'            => '',
$model = Mage::getModel('antikatavoles/antikatavoles')->setData($data);

And this is my config file:

<?xml version="1.0" ?>




Can anyone help me figure this one out?


  • you should disable the Magento compiler when you install a new module Sep 22 '17 at 18:13

You have compilation mode turned on but the module doesn't have the src compiled for compilation mode.

Also, remove the mysql4 deprecated since 2010 stuff lol


You have to do like below

$post = $this->getRequest()->getPost();
$model = Mage::getModel('student/student')->setData(); 
$data = array('name'=>$post['name'],
  1. You have compilation mode turned on.
  2. Stop it and re-compile it.

We should not use compilation mode in development.

  • 1
    who down voted this ? what is wrong in this answer ? Sep 14 '18 at 6:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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