motowebmaster Posted October 11, 2014 Report Share Posted October 11, 2014 I'm trying to setup maintenance.php on a new server I'm trying out and see this error at the command line: PHP Fatal error: Call to a member function query() on a non-object in /<path removed>/lib/pear/DB/DataObject.php on line 2365 #!/usr/bin/php -q in the Debug log: Oct 11 13:49:57 -0400 OX-54396dc4f28fa [ warning] DB_DataObject->table: Inv alid argument supplied for foreach() on line 109 of "/<path removed> server/public/motorcycle/lib/max/ErrorHandler.php" on line 894 of "/<path removed> server/public/motorcycle/lib/max/Dal/DataObjects/DB_DataObjectCommon.php" on line 866 of "/<path removed> server/public/motorcycle/lib/max/Dal/DataObjects/DB_DataObjectCommon.php" on line 1890 of "/srv/users/serverpilot/apps/a dserver/public/motorcycle/lib/pear/DB/DataObject.php" on line 148 of "/<path removed> server/public/motorcycle/lib/max/Dal/DataObjects/DB_DataObjectCommon.php" on line 93 of "/<path removed>s erver/public/motorcycle/lib/OA/Preferences.php" on line 377 of "/<path removed> server/public/motorcycle/lib/OA/Preferences.php" on line 55 of "/<path removed>s erver/public/motorcycle/lib/OX/Maintenance.php" on line 48 of "/<path removed>s erver/public/motorcycle/scripts/maintenance/maintenance.php" on line 22 of "/<path removed>s erver/public/motorcycle/maintenance/maintenance.php" This is a new server configuration I'm testing, it isn't production yet. What am I missing? Quote Link to comment Share on other sites More sharing options...
motowebmaster Posted October 15, 2014 Author Report Share Posted October 15, 2014 Anyone? Quote Link to comment Share on other sites More sharing options...
Eliza0406 Posted October 16, 2014 Report Share Posted October 16, 2014 Hi, In revive adserver configuration file,check your database table prefix.Configured database table prefix might mismatched with your database table prefix. Quote Link to comment Share on other sites More sharing options...
motowebmaster Posted October 17, 2014 Author Report Share Posted October 17, 2014 Hi, In revive adserver configuration file,check your database table prefix.Configured database table prefix might mismatched with your database table prefix. It did match, but thanks for responding. In the end I believe it was some sort of mysql issue, but couldn't figure out what the bug was. Took down the server and am going to try again this weekend with an alternative config. Quote Link to comment Share on other sites More sharing options...
Michael M Posted October 5, 2015 Report Share Posted October 5, 2015 I was getting this same error (our maintenance script stopped running after a server crash). I was able to fix this by checking our mysql tables. turns out a few were corrupted. i did a repair and started getting stats again. hope that helps someone. andrewatfornax 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.