Tag Archives: argh

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.

Must post before midnight…

Got to be quick. Today is the closest ie come to failing the challenge (using my brothers post earlier to give me a break, hope that doesn’t break the rules!

Today, used the east-coast train. Sat opposite to an older Irish lady, who looked like she had a lot of money, and seemed a little rude, the little I spoke to her. Don’t know if she was or not, it was very early in the morning. Then spent the rest of the day preparing a server, to move a site onto it in a rush this weekend. Kinda out-grown shared hosting all of a sudden, being a Christmas targetted website! Mine because I phoned the customer with the “we need to turn you off” call 😉 fun fun. Anyway must post. Cutting it fine!