Mautic Community Forums

Errors from CLI crons

Getting these messages from a couple of the cron jobs, mautic:segments:update and mautic:campaigns:trigger



[DoctrineDBALExceptionDriverException]

An exception occured in driver: could not find driver



[DoctrineDBALDriverPDOException]

could not find driver



[PDOException]

could not find driver



running MariaDB backend off LAMP stack

Getting these messages from a couple of the cron jobs, mautic:segments:update and mautic:campaigns:trigger

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

[DoctrineDBALDriverPDOException]
could not find driver

[PDOException]
could not find driver

running MariaDB backend off LAMP stack

If your CLI is running a different version of php than your front-end, you can run into this.
Make sure both have the php-mysqli extension installed.

For example, on Debian:

apt get install php5-mysql[/code] for [code]php 5

apt get install php7.0-mysql for php7

@swip thanks!