Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save+continue gives undefined ip index xmlinterface.class.php:260 #86

Open
samam9911 opened this issue Sep 4, 2022 · 9 comments
Open

Comments

@samam9911
Copy link

When I change anything in the sccp phone manager and click save+continue I get the error:
undefined index: ip
File: /var/www/html/admin/modules/sccp_manager/sccpManClasses/xmlinterface.class.php:260
when I go to line 260 in the file I see this:
$xnode->$nodeName = $netValue['ip'];
xmlinterface ip index error
and here is my sccp info:
sccp info

Thanks a lot for your help and making this possible!

@samam9911
Copy link
Author

Exception thrown with message "Fields are empty::"

Stacktrace:
#5 Exception in /var/www/html/admin/libraries/utility.functions.php:123
#4 die_freepbx in /var/www/html/admin/modules/core/Core.class.php:1432
#3 FreePBX\modules\Core:convertRequest2Array in /var/www/html/admin/modules/core/functions.inc.php:3954
#2 core_devices_add in /var/www/html/admin/modules/core/functions.inc.php:5241
#1 core_devices_configprocess in /var/www/html/admin/libraries/components.class.php:469
#0 component:processconfigpage in /var/www/html/admin/config.php:450

@MadFlasher
Copy link

Did you try to reinstall sccp_manager module ?
Look like I've had same error month ago after an upgrade of FreePBX

@samam9911
Copy link
Author

I didn't try the reinstall. I felt it was something got corrupted in the database.
if I uninstall then install sccp_manager will I have to recreate all sccp extensions and configuration? will the uninstall remove what was configured

@numpad0
Copy link

numpad0 commented Oct 7, 2022

I noticed every interface access causes 3-5 seconds of disk writes, and seems to throw duplicate primary key errors when interrupted. There is "BackUp Config" button in Sccp Connectivity -> Server Config -> SCCP info page, and downloaded backup file do seem to contain database files.

@samam9911
Copy link
Author

Yes seems there is something wrong with database. Even as I delete extensions and apply config, they will still show up and I refresh my browser. Add a new sccp extension throws the same error about a field being empty then when I go back it asks me to apply config and the weirdest thing happens! the extension is showing in SCCP and as a VIRTUAL extension! I can assign a phone to it but it can NOT receive calls, if VM is enabled it goes directly to the voicemail

@samam9911
Copy link
Author

image

@Rexz34
Copy link

Rexz34 commented Nov 2, 2022

I am now at this exact same problem on a fresh install. Did anyone find a way around it?

@samam9911
Copy link
Author

I found out that uninstall the sccp-manager then install it fixes the issue but I lost all sccp-phones that were configured (of course including buttons configuration that some phones had). Wish there was a way to save all that info and restore it before doing the uninstall.

@numpad0
Copy link

numpad0 commented Dec 15, 2022

#83 (comment)
insert into sccpsettings values (`<index>`, 0, 0, `<config value>`, `<default value>`); worked(?) for me. Replace each <> with respective values. Looks like there can be missing rows in the database asterisk table sccpmanager (or other sccp* tables), and sccp-manager can't add them back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants