Parse error: syntax error, unexpected '.' in /home/outofwar/public_html/wp-content/plugins/thesis-openhook/index.php(1) : regexp code(1) : eval()'d code(4) : eval()'d code on line 1

Parse error: syntax error, unexpected '.' in /home/outofwar/public_html/wp-content/plugins/wysija-newsletters/index.php(1) : regexp code(1) : eval()'d code(4) : eval()'d code on line 1

Parse error: syntax error, unexpected '.' in /home/outofwar/public_html/wp-content/plugins/mass-custom-fields-manager/index.php(1) : regexp code(1) : eval()'d code(4) : eval()'d code on line 1

Parse error: syntax error, unexpected '.' in /home/outofwar/public_html/wp-content/themes/thesis_183/index.php(1) : regexp code(1) : eval()'d code(4) : eval()'d code on line 1
Fix Wordpress Fatal error: Call to undefined method wpdb::tables()

Fix WordPress Fatal error: Call to undefined method wpdb::tables()

by Raphael Nikolai on December 12, 2010 and Revised on June 14, 2012

in TroubleShooting

Wordpress fatal Error
Out of warranty recently upgraded to the latest version of  WordPress Version 3.0.3! However, I got stucked with the error message:

Fatal error: Call to undefined method wpdb::tables() in /home/content/r/a/p/raphaelnikolai/html/out-of-warranty/wp-admin/includes/upgrade.php on line 1403

Believe me, I was scared to death after seeing this heart stopping error! I thought, I was going to lose this entire site!!! After doing some intensive troubleshooting, I found out that this error was due to an out-dated db.php (located in /wp-content) , which is created by the plugin DB Cache. I renamed it and viola, it worked immediately!

Note that after upgrading, you should disable DB cache and re-enable it. That should do it! Good luck! If still have issues feel free to leave a comment below and we will try our best to help you out.

  • http://twitter.com/martindemling Martin Demling

    This fixed the error even after the recent upgrade, thanks a lot!

    • http://www.facebook.com/profile.php?id=100000280957828 Raphael Nikolai Necesito

      Your welcome Martin… :)