Quantcast
Channel: Sentora Support Forums - All Forums
Viewing all articles
Browse latest Browse all 4654

zpanel daemon errors "Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'"

$
0
0
Hello,

Been using zpanel for a while but recently upgraded to php7. Everything seems to be running smoothly until I tried to add a sub domain last night. It was "pending" for longer than usual so I ran daemon.php manually and received this error.



Code:
PHP Fatal error:  Uncaught Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /etc/zpanel/panel/inc/dbc.inc.php:25
Stack trace:
#0 /etc/zpanel/panel/bin/daemon.php(20): require_once()
#1 {main}
  thrown in /etc/zpanel/panel/inc/dbc.inc.php on line 25

Other posts I found with this error had multiple versions of php installed or no pdo driver enabled. But I've verified I only have php 7 installed and according to phpinfo() the mysql pdo driver is installed.


Hoping someone here has some ideas. Thanks!

Viewing all articles
Browse latest Browse all 4654