tintinboss
tintinboss

Reputation: 672

Magento : Fatal error: Call to undefined method Zend_Db_Statement_Exception

To put it shortly, I'm looking for a lifesaver... I'm in serious trouble with this

I had a working Magento 1.7 installation, there was some problem with a plugin named worldpay, so I checked for various upgrades via magento connect and was upgrading. While trying to upgrade Mage core or something like that, it shown me an error.

Since then 500 internal server error was showing. So, I used magento cleanup tool and now I was stuck with 503 error.

I removed maintenance.flag file and now I'm stuck with this error

Fatal error: Call to undefined method Zend_Db_Statement_Exception::getPrevious() in /home/****/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php on line 351

I cannot get rid of it. No google solution here... Is there someone who can help me???

I'm ready to pay for it too.

The site has a huge database (1.5GB) , so no reinstall here. Please

Thanks

Upvotes: 0

Views: 2493

Answers (1)

bogatyrjov
bogatyrjov

Reputation: 5378

First of all, go to index.php and see if developer mode is off by checking lines

if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
    Mage::setIsDeveloperMode(true);
}

#ini_set('display_errors', 1);

If the developer mode was off or if switching it off didn't help, go to /home/****/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php on line 351 and see what's going on.

Magento can not find Zend_Db_Statement_Exception::getPrevious() method for some reason, so either comment this out and see what is going to happen or search entire directory for getPrevious() method and correct the reference Zend_Db_Statement_Exception if this method happens to be in some other place.

If this doesn't help, try to run the upgrade script again.

If after this it is still a problem, you will probably need to hire a developer to fix it. There are plenty of freelancers, who would be happy to do it.

Upvotes: 1

Related Questions