When I check for the requirements to upgrade, the reply is as follow…
Your PHP version of 7.2.34-28+ubuntu20.04.1+deb.sury.org+1 is NOT supported.
You must have a version higher than or equal to 7.4
When I check för PHP version, it responds with 7.4, as expected.
jakob@freepbxserver:~$ php --version
PHP 7.4.28 (cli) (built: Feb 17 2022 16:06:35) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
I’m stuck on this error message after trying to upgrade PHP the other day.
jakob@freepbxserver:~$ sudo fwconsole reload
Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in file /var/www/html/admin/libraries/BMO/Database.class.php on line 127
Stack trace:
1. Error->() /var/www/html/admin/libraries/BMO/Database.class.php:127
2. FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:71
3. FreePBX->__construct() /var/www/html/admin/bootstrap.php:144
4. require_once() /etc/freepbx.conf:10
5. include_once() /var/lib/asterisk/bin/fwconsole:1
OK, so my question is, how do I proceed? Where do I go from here…?