Fatal error: Call to a member function query() on a non-object ..DatabasePDO.php
#1
Fatal error: Call to a member function query() on a non-object ..DatabasePDO.php
Hi guys, need some help in getting our db back online. seems like our website crashed yesterday and now is showing this error:
Fatal error: Call to a member function query() on a non-object in /var/sentora/hostdata/zadmin/public_html/*sitename*/includes/database/DatabasePDO.php on line 53

On Panel side, here's the error:

Critical Error: [0100] - Unable to connect or authenticate to the Sentora database (sentora_core).

We advice that you contact the server administrator to ensure that the database server is online and that the correct connection parameters are being used.


based on searching the forums, here's what we've tried:
1. deleted log files just to be sure since it solved other folks' problems
2. replaced the /DatabasePDO.php being referenced with a back-up copy
3. Will try the password fix, though it's doubtful because we never changed passwords. Sad

Has anyone else gotten this particular error and how'd you fix? No one seems to have gotten the fatal error based on searching the forums.

Thank you for all the help!

Alex
Reply
#2
RE: Fatal error: Call to a member function query() on a non-object ..DatabasePDO.php
Is mysql running?
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Repo update error hostingms 3 8 ,711 02-14-2024, 09:20 AM
Last Post: TGates
apt-get install mod_ssl ERROR CMs222 9 32 ,143 11-11-2022, 09:14 PM
Last Post: zustudios
Sentora debug and error files johnnyp 0 2 ,310 10-27-2022, 06:16 PM
Last Post: johnnyp

Forum Jump:


Users browsing this thread: 1 Guest(s)