Site was down with this error
Error Caught
Undefined constant PDO::MYSQL_ATTR_INIT_COMMAND
mysqli_connection.php:80Dreamhost support got it back up, said “The error was triggered by the site’s ExpressionEngine database driver file, which was calling a PDO MySQL constant in a way that caused a fatal PHP error. I added a small safeguard so that the site only attempts that PDO option when it’s available, and it’s now loading normally again.” Any thoughts?
Sounds like pdo_mysql was not installed or enabled after a php upgrade/change? Not sure what they would have modified, and hopefully they didn’t just edit a EE core file without telling you what they edited. The main question is why did the pdo_mysql extension stop working ie: was there a server update to php and that php version didn’t have pdo_mysql installed or properly enabled? 🤷
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.