Php erro when running through upgrade from 15 to 16

I’m trying to run through upgrade from version 15 to Version 16.

/var/www/html/admin/libraries/modulefunctions.class.php
* sent out informing of the issues if enabled.
*
* @param array $exposures vulnerability information array returned by module_get_security()
*/
function update_security_notifications($exposures) {
global $db;
$notifications = notifications::create($db);

    if (!empty($exposures)) {
        $cnt = count($exposures);
        if ($cnt == 1) {
            $text = _("There is 1 module vulnerable to security threats");
        } else {
            $text = sprintf(_("There are %s modules vulnerable to security threats"), $cnt);
        }
        $extext = "";
        foreach($exposures as $m => $vinfo) {
            $extext .= sprintf(
                _("%s (Cur v. %s) should be upgraded to v. %s to fix security issues: %s")."\n",
                $m, $vinfo['curver'], $vinfo['minver'], implode($vinfo['vul'],', ')
            );
        }
        $notifications->add_security('freepbx', 'VULNERABILITIES', $text, $extext, 'config.php?display=modules');
    } else {
        $notifications->delete('freepbx', 'VULNERABILITIES');
    }
}

/**
* Get Active Locally Set Repos
*
* @return array Array of Active Repos array("<reponame>" => 1)
*/
function get_active_repos() {
    global $active_repos;
    global $db;

    if (!isset($active_repos) || !$active_repos) {
        $repos = sql("SELECT `data` FROM `module_xml` WHERE `id` = 'repos_json'","getOne");
        if(!empty($repos)) {

Arguments
“implode(): Passing glue string after array is deprecated. Swap the parameters”

I seen in another post to upgarde framework however that fails as well

[[email protected] freepbx]# fwconsole ma downloadinstall framework
No repos specified, using: [commercial,standard] from last GUI settings

Downloading module ‘framework’

In modulefunctions.class.php line 454:

implode(): Passing glue string after array is deprecated. Swap the parameters

This is on CentOS 7,
Usiing php 7.4 from remi repo

What is best coarse of action?

This happens when I go the module admin page. fyi.

I did the following

kguptaKapil GuptaSangoma

Sep '21

For FreePBX-16, We have found some PHP 7.4 compatibility issues so we need to update the framework first from the Freepbx linux CLI before updating security fixes.

fwconsole ma downloadinstall framework --tag=16.0.10.31

That appears to be working.