Mautic Community Forums

DoctrineDBALExceptionDriverException: An exception occured in driver: could not find driver

Hello there,

After installing the cronjobs as per the documentation, I get those error messages everytime a command is triggered:

Quote:
DoctrineDBALExceptionDriverException: An exception occured in driver: could not find driver (uncaught exception) at /var/www/mysite/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php

I have not idea what this is...My phpinfo() shows I have PDO and pdo_mysql enabled with the drivers "mysql" and "sqlite".
Please help.

MORE INFO:
This is what i see inside phpinfo():
PDO Driver for MySQL enabled
Client API version mysqlnd 5.0.11-dev - 20120503 - $Id: SOME_HASH_HERE $

Hello there,
After installing the cronjobs as per the documentation, I get those error messages everytime a command is triggered:

I have not idea what this is…My phpinfo() shows I have PDO and pdo_mysql enabled with the drivers “mysql” and “sqlite”.
Please help.

MORE INFO:
This is what i see inside phpinfo():
PDO Driver for MySQL enabled
Client API version mysqlnd 5.0.11-dev - 20120503 - $Id: SOME_HASH_HERE $

Alright, fixed it.
It looks like I have two php versions installed, one for apache, one for the php cli. And of course, pdo_mysql was enabled for apache only, and the cronjob use the CLI. So I had to activate pdo_mysql for the cli.