Whoops \ Exception \ ErrorException (E_DEPRECATED)
htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated
if ($tech!="enum") {
$channelid = htmlentities($trunk_details['channelid'],ENT_COMPAT | ENT_HTML401, "UTF-8");
if ($tech!="custom" && $tech!="dundi") { // custom trunks will not have user/peer details in database table
// load from db
if (empty($peerdetails)) {
$peerdetails = core_trunks_getTrunkPeerDetails($trunknum);
}
if (empty($usercontext)) {
$usercontext = htmlentities($trunk_details['usercontext'],ENT_COMPAT | ENT_HTML401, "UTF-8");
}
if (empty($userconfig)) {
$userconfig = core_trunks_getTrunkUserConfig($trunknum);
}
if (empty($register)) {
$register = core_trunks_getTrunkRegister($trunknum);
}
}
}
FreePBX Version
FreePBX 17
Issue Description
Ref :- https://community.freepbx.org/t/voip-innovations-module-metered-trunk-gives-whoops/102193 VoIP Innovations module metered trunk gives whoops when trying to edit the trunk.
Operating Environment
FreePBX V17
Relevant log output