Alanaktion / phproject

A high performance full-featured project management system
https://www.phproject.org
GNU General Public License v3.0
384 stars 106 forks source link

Undefined class constant #391

Closed emike09 closed 3 years ago

emike09 commented 3 years ago

When attempting to browse to our PHProject installation, I'm getting the following error message:

500 Internal Server Error

Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' [/var/www/projects.utahca.org/vendor/bcosca/fatfree-core/db/sql.php:517]

This has been happening for a few months, however sometimes I'm able to log in just fine without any issue, so the problem is intermittent.

Ubuntu 18.04.5 PHProject Version: 1.7.9 PHP Version: 7.4.10 MySQL version: 14.14 Distrib 5.7.31 for Linux

Any tips?

Alanaktion commented 3 years ago

You likely need to enable the pdo_mysql extension in your php.ini configuration, though it would typically not work at all if that was disabled. I'm not sure how that issue could be intermittent.

https://stackoverflow.com/q/2424343/873843

emike09 commented 3 years ago

That did it! It was related to upgrading to PHP 7.4 and not updating php.ini with the required extensions.