5Jan/10Off
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 openx.domain.com
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
June 1st, 2011 - 01:50
I have the same problem, anyone got a solution?
June 23rd, 2011 - 08:00
Thanks. Yes, it was the database.
November 23rd, 2011 - 01:55
I am also having the same problem. Can anybody provide the cause and solution. Thanks in advance.
November 29th, 2011 - 05:24
I have the same problem. What is the solution?
June 1st, 2012 - 10:37
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.
June 22nd, 2012 - 09:47
I’m havin the same issue, for me its just the database connection as described above, just change Openx connection details in /…/openx/var/192.168.1.145.conf.php (this file changes based on your config), created the database in mysql, and it works ok.
September 15th, 2014 - 02:19
I too have the same databse issue .open your var/192.168.1.145.conf.php(in these file change the database setting according to your databse)and it will work fine.
December 22nd, 2015 - 01:17
You’ve really imressepd me with that answer!