FreePBX | Register | Issues | Wiki | Portal | Support

Digium_phones_conf has a deprecated constructor in file /var/www/html/admin/modules/digium_phones/functions.inc.php on line 316

freepbx
Tags: #<Tag:0x00007f74a6855620>

#1

Hi there,

I’m trying to make a complete installation of FreePBX 14 - Asterisk 16 with PHP 7.2 at Ubuntu 18.04. I’ve made a couple of changes in some PHP files. Like changing some each lines to foreach lines. That made things work great.

Now I want to apply the config in FreePBX, and it’s giving the error:
Reload failed because retrieve_conf encountered an error: 1

When I execute the command: /var/lib/asterisk/bin/retrieve_conf it gives the following output:

Looks like a PHP method from PHP 5 that isn’t working in PHP 7 anymore. I’m not new to PHP, but I like to hear things from you guys.

How to solve this PHP problem, and does anyone ever succeed a working installation with PHP 7?

Thanks for the answers.

Kind regards,
Serge


(Andrew Nagy) #3

This is already fixed in freepbx 15 which has support for php 7.

I’m also locking this thread because @shuijsen thinks it’s wise to just go delete all posts he’s ever made.


(Andrew Nagy) closed #4