Post by mnoreke » Sun Feb 04, 2024 4:03 am

I am trying to setup a fresh install to test OpenCart for a project.

During setup, I get this error.
Undefined constant PDO::MYSQL_ATTR_INIT_COMMAND: in C:\OpenCart\system\library\db\pdo.php on line 37

Windows 10
IIS with PHP(ver 8.3.2, module list attached)
MySQL (v 8.0.36)
OpenCart (v4.0.2.3)

Also, only mPDO shows up as a DbDriver. I was expecting a MySQLi option per the docs.

Please advise on how to troubleshoot this.

Newbie

Posts

Joined
Sun Feb 04, 2024 3:51 am

Post by straightlight » Sun Feb 04, 2024 12:14 pm

mnoreke wrote:
Sun Feb 04, 2024 4:03 am
I am trying to setup a fresh install to test OpenCart for a project.

During setup, I get this error.
Undefined constant PDO::MYSQL_ATTR_INIT_COMMAND: in C:\OpenCart\system\library\db\pdo.php on line 37

Windows 10
IIS with PHP(ver 8.3.2, module list attached)
MySQL (v 8.0.36)
OpenCart (v4.0.2.3)

Also, only mPDO shows up as a DbDriver. I was expecting a MySQLi option per the docs.

Please advise on how to troubleshoot this.
If MySQLi extension does not show up on the list, then it might be something with your virtual server that may require configuration to load the library prior to install OC.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 4 guests