Jump to content

Error Message On Maintenance Script


Recommended Posts

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-&gt;table: Inv
alid argument supplied for foreach()
                             on line 109 of &quot;/<path removed>
server/public/motorcycle/lib/max/ErrorHandler.php&quot;
                             on line 894 of &quot;/<path removed>
server/public/motorcycle/lib/max/Dal/DataObjects/DB_DataObjectCommon.php&quot;
                             on line 866 of &quot;/<path removed>
server/public/motorcycle/lib/max/Dal/DataObjects/DB_DataObjectCommon.php&quot;
                             on line 1890 of &quot;/srv/users/serverpilot/apps/a
dserver/public/motorcycle/lib/pear/DB/DataObject.php&quot;
                             on line 148 of &quot;/<path removed>
server/public/motorcycle/lib/max/Dal/DataObjects/DB_DataObjectCommon.php&quot;
                             on line 93 of &quot;/<path removed>s
erver/public/motorcycle/lib/OA/Preferences.php&quot;
                             on line 377 of &quot;/<path removed>
server/public/motorcycle/lib/OA/Preferences.php&quot;
                             on line 55 of &quot;/<path removed>s
erver/public/motorcycle/lib/OX/Maintenance.php&quot;
                             on line 48 of &quot;/<path removed>s
erver/public/motorcycle/scripts/maintenance/maintenance.php&quot;
                             on line 22 of &quot;/<path removed>s
erver/public/motorcycle/maintenance/maintenance.php&quot;

This is a new server configuration I'm testing, it isn't production yet. What am I missing?

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 11 months later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...