Some modules cannot be installed on FreePBX 16

I had to upgrade to FreePBX 16 earlier than planned, almost everything works well, with a few exceptions: two modules - cdr and cel - cannot be installed/upgraded due to php errors.
Is there any fix for that?

[email protected]:~# fwconsole ma downloadinstall cdr
No repos specified, using: [standard,extended,unsupported] from last GUI settings

Downloading module 'cdr'
Processing cdr
Verifying local module download...Verified
Extracting...Done
Download completed in 0 seconds

In DB.class.php line 153:
                                                                              
  count(): Parameter must be an array or an object that implements Countable  

[email protected]:~# fwconsole ma upgrade cel
No repos specified, using: [standard,extended,unsupported] from last GUI settings

Downloading module 'cel'
Processing cel
Verifying local module download...Verified
Extracting...Done
Download completed in 0 seconds

In DB.class.php line 153:
                                                                              
  count(): Parameter must be an array or an object that implements Countable

Fixed by this change in /var/www/html/admin/libraries/DB.class.php line 153:

if (!count((array)$dsn)) {

Is this a Distro install with PHP 7.4? I’m not able to reproduce this.

Non-distro, but with PHP-7.4, see prehistory.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.