Admin Life Errors, Fixes, and Encounters


OpenX error: Call to a member function query()

If you ever get an error like this from openx, it means it can't make a database connection and your DB may be done.

/usr/local/bin/php /usr/local/www/openx/scripts/maintenance/maintenance.php

PHP Fatal error: Call to a member function query() on a non-object in /usr/local/www/openx/lib/pear/DB/DataObject.php on line 2354

Filed under: Errors Comments Off
Comments (0) Trackbacks (0)
  1. I have the same problem, anyone got a solution?

  2. Thanks. Yes, it was the database.

  3. I am also having the same problem. Can anybody provide the cause and solution. Thanks in advance.

  4. I have the same problem. What is the solution?

  5. How are people coming to this and commenting, “I have this problem, what is the solution?”

    The solution is in the first sentence of the post. OpenX can’t make a database connection. This means either your database is crashed, or you’ve given OpenX incorrect connection information. Debug that first.

  6. I’m havin the same issue, for me its just the database connection as described above, just change Openx connection details in /…/openx/var/ (this file changes based on your config), created the database in mysql, and it works ok.

  7. I too have the same databse issue .open your var/ these file change the database setting according to your databse)and it will work fine.

  8. You’ve really imressepd me with that answer!

Trackbacks are disabled.