We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How do I resolve PDO Error

How Do I?

fanderson's avatar
fanderson
883 posts
5 years ago
fanderson's avatar fanderson

I am running EE 5.3.0 and need to upgrade PHP from 5.6 to 7.2 but when I make the change in cPanel the site won’t load and I get the following error

Fatal error: 
Uncaught Error: Class 'PDO' not found in /home/myDomain/public_html/eesystem/ee/legacy/database/drivers/mysqli/mysqli_connection.php:71 Stack trace: 

#0 /home/myDomain/public_html/eesystem/ee/legacy/database/DB_driver.php(88): CI_DB_mysqli_connection->open() 

#1 /home/myDomain/public_html/eesystem/ee/legacy/database/DB_driver.php(265): CI_DB_driver->initialize() 

#2 /home/myDomain/public_html/eesystem/ee/legacy/database/DB_driver.php(180): CI_DB_driver->simple_query('SELECT LOWER(mo...') 

#3 /home/myDomain/public_html/eesystem/ee/legacy/database/DB_active_rec.php(1138): CI_DB_driver->query('SELECT LOWER(mo...') 

#4 /home/myDomain/public_html/eesystem/ee/legacy/models/addons_model.php(215): CI_DB_active_record->get('modules') 

#5 /home/myDomain/public_html/eesystem/ee/EllisLab/ExpressionEngine/Service/Addon/Addon.php(57): Addons_model->get_installed_modules() 

#6 /home/myDomain/public_html/eesystem/ee/EllisLab/ExpressionEngine/Service/Addon/Factory.php(85): EllisLab\ExpressionEngine\Se in /home/myDomain/public_html/eesystem/ee/legacy/database/drivers/mysqli/mysqli_connection.php on line 71

When I run ee_wizard with the same configuration I get the following error:

Fatal error: Uncaught Error: Class 'PDO' not found in /home/myDomain/public_html/ee_wizard/index.php:243 Stack trace: #0 /home/myDomain/public_html/ee_wizard/index.php(131): check_db(Array) #1 {main} thrown in /home/myDomain/public_html/ee_wizard/index.php on line 243

This only happens on one site that is hosted on Media Temple. I am posting this here because Media Temple said it wasn’t their responsibility to troubleshoot errors.

       
fanderson's avatar
fanderson
883 posts
5 years ago
fanderson's avatar fanderson

You talk your hosting provider into installing the PDO extension. Then you go on with life.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.