FreePBX fails when installing using PHP 8.4, no issue with PHP 8.3

I’m switching php default back to PHP 8.3, the installation went through with no issue.

here is the error

PHP Warning: Undefined array key "ASTLOGDIR" in /www/html/admin/libraries/utility.functions.php on line 584 PHP Fatal error: Uncaught Error: Class "FreePBX" not found in /www/html/admin/libraries/utility.functions.php:587 Stack trace: #0 /www/html/admin/libraries/utility.functions.php(350): dbug_write() #1 /www/html/admin/libraries/Composer/vendor/composer/ClassLoader.php(576): freepbx_error_handler() #2 /www/html/admin/libraries/Composer/vendor/composer/ClassLoader.php(576): include('...') #3 /www/html/admin/libraries/Composer/vendor/composer/ClassLoader.php(427): {closure:Composer\Autoload\ClassLoader::initializeIncludeClosure():575}() #4 /www/html/admin/bootstrap.php(114): Composer\Autoload\ClassLoader->loadClass() #5 /media/haloserver/etc/freepbx.conf(10): require_once('...') #6 /var/lib/asterisk/bin/fwconsole(12): include_once('...') #7 {main} thrown in /www/html/admin/libraries/utility.functions.php on line 587 Done

FreePBX 17 is written for a specific version of PHP: 8.2. You should have no expectations that it will work with any other version of PHP.

Understand. I made this post for someone running into this issue.
But It also would be nice if there is a warning if when the PHP version is not matched with the “specific” ideal version.

Good idea!