Unable to check for updates on PHP 7

I’m running Ubuntu 16.04 with PHP 7 and the latest FreePBX 14. I had to turn off deprecated errors in my amportal.conf, and update my MySQL options, but otherwise everything seems to be running fine.

However, I’m not able to check for new updates in FreePBX. I traced down the problem, and the issue is that if FreePBX posts to http://mirror1.freepbx.org/all-14.0.xml with a phpver of 7.0, the script responds with a 500 error and no error message.

I’ve modified my modulefunctions.class.php to hardcode the php version to 5.6, and it returns fine, installs and runs modules fine. I’m guessing that the 500 error has something to do with checking whether the PHP version is supported, but I wish there would be some other argument that could be passed (and a FreePBX option to send it) to override the PHP version check.

You can’t use php7 with FreePBX. There are lots of issues. Please dont do it.