Odd Magento / Fishpig / WordPress error

If you get an error like:
Fatal error: Call to a member function select() on a non-object in /home/username/public_html/app/code/community/Fishpig/Wordpress/Model/Resource/Page.php on line 119

Then, check you’ve not just changed a MySQL username, without updating the fishpig configuration, or otherwise Fishpig can’t access the MySQL database for some reason. It seems to store a MySQL login in Magento config. I’ve not yet found exactly where, I’ll update this post with more once I understand more about what it’s doing.

 

It presented as the main Magento site throwing the following error:

exception ‘Zend_Exception’ with message ‘dbModel read resource does not implement Zend_Db_Adapter_Abstract’

 

Which it seems that most everyone will tell you to clear your cache to fix. You *will* need to clear your cache, probably. Just, after fixing the MySQL connection issue.

 

The following line is to make it easier for people googling to find this post:
Fatal error: Call to a member function select() on a non-object in /public_html/app/code/community/Fishpig/Wordpress/Model/Resource/Page.php on line 119 magento fishpig

 

This post my making sure  https://xkcd.com/979/ doesn’t happen from me.

7 thoughts on “Odd Magento / Fishpig / WordPress error

  1. Allie Ashton

    Hi,
    thank you for posting this, but the link you provided leads to a webcomic site, could you explain me how you solved the problem?

  2. Kirrus Post author

    Hi Allie,

    The error is caused by Fishpig not being able to connect to the database. You need to check or reset your MySQL access details, or your Fishpig configuration, as I say in the post πŸ™‚

    The comic link just explains why I posted!

Leave a Reply

Your email address will not be published. Required fields are marked *