Fatal error: Class 'PDO' not found

Status
Not open for further replies.

osusigna

New Member
Messages
9
Reaction score
0
Points
1
Hi there,

I have this error message showing up whenever I try to load a webpage that calls the database via PDO: "Fatal error: Class 'PDO' not found in /home/osusigna/public_html/[...] on line[...]". The same error appears in my error_log file.

This is the code that establishes the connection to the database:
PHP:
try {
    $bdd = new PDO('mysql:host=localhost;dbname='.$dbName, $dbUser, $dbPassword);
}
catch(Exception $e) {
    die('Error: '.$e->getMessage());
}

It's been working just fine about an hour ago and I didn't make any changes. The same code is also working fine on another hosting service. Is there some maintenance I am not aware of?

Regards,
Xavier

edit: I'm on Vox.
 
Last edited:

usama_rasab27

Member
Messages
208
Reaction score
15
Points
18
Hi, it works for me. I don't get an error and I'm also on VOX.

[EDIT] I spoke too soon.
 
Last edited:

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
The issue should be resolved, let us know if you have any further trouble.
 
Status
Not open for further replies.
Top