After updating this with the error when editing extensions

Hi

After updating this with the error when editing extensions

Whoops \ Exception \ ErrorException (E_WARNING)
HELP
Invalid argument supplied for foreach()
/var/www/html/admin/modules/sipsettings/Sipsettings.class.php
// thow new Exception(“WTF. You suck”);
}
}
}

public function getBinds() {
	$binds = array();
	foreach($this->getConfig("binds") as $protocol => $bind) {
		foreach($bind as $ip => $state) {
			if($state != "on") {

Server/Request Data

someone help me ?

Tks

I can’t reproduce this problem. Make sure all your modules are up to date and if the problem persists, file a ticket at http://issues.freepbx.org with steps to reproduce it.

I did see this and it went away after updating the sipsettings module

My sipsettings this with version 13.0.11

You know of any comand pair remedy this problem ?

Please provide more information or post a screenshot of said error

when I click Edit Extension appears this error

Module | Version | Status |
±--------------------±---------------±------------------------------------+
| accountcodepreserve | 13.0.2 | Enabled |
| announcement | 13.0.2 | Enabled |
| areminder | 13.0.3 | Enabled |
| arimanager | | Not Installed (Locally available) |
| asterisk-cli | 13.0.2 | Enabled |
| asteriskinfo | 13.0.4 | Enabled |
| backup | 13.0.6 | Enabled |
| blacklist | 13.0.5 | Enabled |
| bria | | Not Installed (Locally available) |
| broadcast | 13.0.2 | Enabled |
| builtin | | Enabled |
| bulkdids | 13.0.2 | Enabled |
| bulkextensions | 13.0.2 | Enabled |
| bulkhandler | 13.0.8 | Enabled |
| callback | 13.0.1alpha1 | Enabled |
| callerid | 13.0.2 | Enabled |
| callforward | 13.0.4 | Enabled |
| calllimit | 13.0.2 | Enabled |
| callrecording | 13.0.2 | Enabled |
| callwaiting | 13.0.1 | Enabled |
| campon | 13.0.1alpha1 | Enabled |
| cdr | 13.0.9 | Enabled |
| cel | | Not Installed (Locally available) |
| certman | 13.0.2 | Enabled |
| cidlookup | 13.0.4 | Enabled |
| conferences | 13.0.5 | Enabled |
| conferencespro | 13.0.1alpha1 | Enabled |
| configedit | 13.0.4 | Enabled |
| contactdir | | Not Installed (Locally available) |
| contactmanager | 13.0.4 | Enabled |
| core | 13.0.1beta1.23 | Enabled |
| cos | 13.0.4 | Enabled |
| customappsreg | 13.0.4.2 | Enabled |
| customcontexts | 2.11.0.1 | Enabled |
| dahdiconfig | 13.0.3 | Enabled |
| dashboard | 13.0.9 | Enabled |
| daynight | 13.0.4 | Enabled |
| dictate | 13.0.2 | Enabled |
| directory | 13.0.3 | Enabled |
| disa | 13.0.2 | Enabled |
| donotdisturb | 13.0.3 | Enabled |
| dundicheck | 2.11.0.3 | Enabled |
| endpoint | 13.0.0.3 | Enabled |
| endpointman | 2.11.7 | Disabled; Pending upgrade to 2.11.9 |
| extensionroutes | 13.0.2 | Enabled |
| extensionsettings | 13.0.1alpha1 | Enabled |
| fax | 13.0.6 | Enabled |
| faxpro | 13.0.8 | Enabled |
| featurecodeadmin | 13.0.2 | Enabled |
| findmefollow | 13.0.10 | Enabled |
| fop2admin | | Not Installed (Locally available) |
| framework | 13.0.1beta3.45 | Enabled |
| freepbx_ha | 13.0.2 | Enabled |
| fw_langpacks | 12.0.7 | Enabled |
| hotelwakeup | 13.0.3 | Enabled |
| iaxsettings | 13.0.3 | Enabled |
| infoservices | 12.0.3.2 | Enabled |
| irc | 2.11.0.4 | Enabled |
| isymphony | | Not Installed (Locally available) |
| ivr | 13.0.4 | Enabled |
| ivrpro | | Not Installed (Locally available) |
| javassh | 2.11.2 | Enabled |
| languages | 13.0.3 | Enabled |
| languagestatus | | Not Installed (Locally available) |
| logfiles | 13.0.3 | Enabled |
| manager | 13.0.2.4 | Enabled |
| miscapps | 13.0.2.1 | Enabled |
| miscdests | 13.0.2 | Enabled |
| motif | 12.0.4 | Enabled |
| music | 13.0.4 | Enabled |
| outroutemsg | 13.0.2 | Enabled |
| paging | 13.0.3 | Enabled |
| parking | 13.0.3 | Enabled |
| parkpro | 13.0.6 | Enabled |
| pbdirectory | 2.11.0.2 | Enabled |
| phonebook | 13.0.3 | Enabled |
| phpagiconf | 2.11.0.2 | Enabled |
| phpinfo | 13.0.2 | Enabled |
| pinsets | 13.0.2 | Enabled |
| pinsetspro | 13.0.3 | Enabled |
| presencestate | 13.0.3 | Enabled |
| printextensions | 13.0.3 | Enabled |
| queuemetrics | 2.11.0.3 | Enabled |
| queueprio | 13.0.2 | Enabled |
| queues | 13.0.5 | Enabled |
| qxact_reports | 13.0.3 | Enabled |
| recording_report | 13.0.5 | Enabled |
| recordings | 12.0.8 | Enabled |
| restapi | | Not Installed (Locally available) |
| restapps | | Not Installed (Locally available) |
| restart | 13.0.3 | Enabled |
| ringgroups | 13.0.4 | Enabled |
| setcid | 13.0.2 | Enabled |
| sipsettings | 13.0.11 | Enabled |
| sipstation | | Not Installed (Locally available) |
| sms | | Not Installed (Locally available) |
| sng_mcu | 13.0.2 | Enabled |
| soundlang | 13.0.0beta6 | Enabled |
| speeddial | 2.11.0.2 | Enabled |
| superfecta | | Not Installed (Locally available) |
| sysadmin | 13.0.11.2 | Enabled |
| timeconditions | 13.0.5 | Enabled |
| tts | 13.0.3 | Enabled |
| ttsengines | 13.0.3 | Enabled |
| ucp | 13.0.5 | Enabled |
| ucpnode | 13.0.7 | Enabled |
| userman | 13.0.10 | Enabled |
| vmblast | 13.0.2 | Enabled |
| vmnotify | | Not Installed (Locally available) |
| voicemail | 13.0.9 | Enabled |
| voicemail_report | 13.0.1alpha1 | Enabled |
| vqplus | | Not Installed (Locally available) |
| weakpasswords | 13.0.1alpha1 | Enabled |
| webcallback | | Not Installed (Locally available) |
| webrtc | | Not Installed (Locally available) |
| xmpp | | Not Installed (Locally available) |

I am a new user and the system does not allow you to send images or links

So will the full error:

  1. Whoops\Exception\ErrorException
    /­var/­www/­html/­admin/­modules/­sipsettings/­Sipsettings.class.php 81

Whoops \ Exception \ ErrorException (E_WARNING)
HELP
Invalid argument supplied for foreach()
/var/www/html/admin/modules/sipsettings/Sipsettings.class.php
// thow new Exception(“WTF. You suck”);
}
}
}

public function getBinds() {
	$binds = array();
	foreach($this->getConfig("binds") as $protocol => $bind) {
		foreach($bind as $ip => $state) {
			if($state != "on") {
  1. Sipsettings getBinds
    /­var/­www/­html/­admin/­modules/­core/­functions.inc/­drivers/­Sip.class.php 166

Whoops \ Exception \ ErrorException (E_WARNING)
HELP
Invalid argument supplied for foreach()
/var/www/html/admin/modules/core/functions.inc/drivers/Sip.class.php
public function getDeviceDisplay($display, $deviceInfo, $currentcomponent, $primarySection) {
$section = _(“Settings”);
$category = “general”;
$pport = ‘’;
$techd = ($deviceInfo[‘tech’] == ‘sip’) ? ‘CHAN_SIP’ : strtoupper($deviceInfo[‘tech’]);
$devinfo_tech = $deviceInfo[‘tech’];
if($this->freepbx->Modules->moduleHasMethod(“sipsettings”,“getBinds”)) {
$out = $this->freepbx->Sipsettings->getBinds();
foreach($out[$devinfo_tech] as $ip => $data1) {
foreach($data1 as $protocol => $port)

  1. FreePBX\modules\Core\Drivers\Sip getDeviceDisplay
    /­var/­www/­html/­admin/­modules/­core/­functions.inc.php6484

Whoops \ Exception \ ErrorException (E_WARNING)
HELP
Invalid argument supplied for foreach()
/var/www/html/admin/modules/core/functions.inc.php
$section = ($extdisplay ? _(“Edit Extension”) : _(“Add Extension”));
} else {
$section = ($extdisplay ? _(“Edit User”) : _(“Add User”));
}

		$drivers = FreePBX::Core()->getAllDrivers();
		if(isset($drivers[$devinfo_tech])) {
			$devopts = $drivers[$devinfo_tech]->getDeviceDisplay($display, $deviceInfo, $currentcomponent, $section);
		} else {
			$devopts = array();
  1. core_devices_configpageload
    /­var/­www/­html/­admin/­libraries/­components.class.php479

Whoops \ Exception \ ErrorException (E_WARNING)
HELP
Invalid argument supplied for foreach()
/var/www/html/admin/libraries/components.class.php
foreach ( array_keys($this->guifuncs) as $sortorder ) {
foreach ( $this->guifuncs[$sortorder] as $func ) {
$modparts = explode(“_”,$func,2);
$thismod = $modparts[0];

				modgettext::push_textdomain($thismod);
				$perf->Start("buildpager-$func");
				$func($this->compname);
				$perf->Stop("buildpager-$func");
				modgettext::pop_textdomain();
  1. component buildconfigpage
    /­var/­www/­html/­admin/­config.php327

Whoops \ Exception \ ErrorException (E_WARNING)
HELP
Invalid argument supplied for foreach()
/var/www/html/admin/config.php
$bmo->Performance->Stop(“inits-$display”);

	// now run each 'process' function and 'gui' function
	$bmo->Performance->Start("processconfigpage-$display");
	$currentcomponent->processconfigpage();
	$bmo->Performance->Stop("processconfigpage-$display");
	$bmo->Performance->Start("buildconfigpage-$display");
	$currentcomponent->buildconfigpage();
	$bmo->Performance->Stop("buildconfigpage-$display");

}

Module | Version | Status | is the fwconsole ma list

sipsettings module v13.0.12

Updated to version 13.0.12 and solved

Tks