Fatal error: Call to a member function query on a non-object

Discussion on reselling your hosting space, bandwidth, emails, php version, End-user MySQL database support and all supported softwares offered with reseller hosting services offered by hostripples.
hrdedicated
Site Admin
Posts: 50
Joined: Thu May 30, 2013 10:28 pm

Fatal error: Call to a member function query on a non-object

Postby hrdedicated » Sat Jun 01, 2013 9:15 am

Error code :

Content-type: text/html

Fatal error: Call to a member function query() on a
non-object in
/home/username/public_html/adserver/lib/pear/DB/DataObject.php
on line 2365

Error code:
Fatal Error
Script Error
Cannot connect to MySQL: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)

+++++++++++++++++++++++++++++++++++++++++++++++++++

Content-type: text/html

Fatal error: Call to a member function query() on a
non-object in
/home/username/public_html/adserver/lib/pear/DB/DataObject.php
on line 2365


Solution

This is a sign of the service MySQL failing, goahead and upgrade your mysql version to most stable version :

If you have cpanel on server try this

root@server01[~]#/scripts/mysqlup --force

Else you can upgrade it using yum

root@server01[~]#yum upgrade mysql

Thank you.

Return to “cPanel Reseller Hosting Services Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests