Hi all,
I recently upgraded to 14 from 13. Some modules are throwing error and when trying to apply config as well. Hope someone can help with this. Thanks
When applying config:
Reload failed because retrieve_conf encountered an error: 1
exit: 1
Unable to continue. Illegal string offset ‘target’ in /var/www/html/admin/modules/customappsreg/functions.inc.php on line 59 #0 /var/www/html/admin/modules/customappsreg/functions.inc.php(59): Whoops\Run->handleError(2, ‘Illegal string …’, ‘/var/www/html/a…’, 59, Array) #1 /var/www/html/admin/libraries/usage_registry.functions.php(300): customappsreg_getdestinfo(‘ext-queues,302,…’) #2 /var/www/html/admin/libraries/usage_registry.functions.php(351): framework_identify_destinations(Array, Array) #3 /var/lib/asterisk/bin/retrieve_conf(818): framework_list_problem_destinations(Array, false) #4 {main}
Some module shows the below error.
Whoops \ Exception \ ErrorException (E_WARNING)
Illegal string offset ‘destret’
/
var
/
www
/
html
/
admin
/
modules
/
customappsreg
/
functions.inc.php
- <?php
- if (!defined(‘FREEPBX_IS_AUTH’)) { die(‘No direct script access allowed’); }
- // License for all code of this FreePBX module can be found in the license file inside the module directory
- // Copyright 2013 Schmooze Com Inc.
- //
- function customappsreg_destinations() {
- // return an associative array with destination and description
- $allDests = \FreePBX::Customappsreg()->getAllCustomDests();
- if (!$allDests) {
- return null;
- }
- $extens = array();
- foreach ($allDests as $row) {
- // If this has a return flag, we need to wrap it.
- if ($row[‘destret’]) {
- $dest = “customdests,dest-”.$row[‘destid’].",1";
- $extens[] = array(‘destination’ => $dest, ‘description’ => $row[‘description’], ‘category’ => _(“Custom Destinations”), ‘id’ => ‘customdests’);
- } else {
- $extens[] = array(‘destination’ => $row[‘target’], ‘description’ => $row[‘description’], ‘category’ => _(“Custom Destinations”), ‘id’ => ‘customdests’);
- }
- }
- return $extens;
- }
- /** the ‘exten’ is the same as the destination for this module
- */
- function customappsreg_customdests_getdest($exten) {
- return array($exten);
- }
- /** If this is ours, we return it, otherwise we return false
-
- We use just use customappsreg and not the display because it
-
- is a per-module routine
- */
- function customappsreg_getdestinfo($dest) {
- global $active_modules;
- $allDests = \FreePBX::Customappsreg()->getAllCustomDests();
- // Look for $dest in allDests. If we know about it, then return
Arguments
- “Illegal string offset ‘destret’”