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.
You just made my day 🙂 Thanks so much 🙂
Glad to help! I swear this one had me scratching my head for a good few hours
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?
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!
Thank you Kirrus,
I’m sorry, was in a hurry and didn’t read properly
ty
Thank you for taking the time to document this! Just saved me so much work 🙂
Glad to have helped!
Thanks about sharing the solution for this error.
Already got tired from it.