sccp_manager
sccp_manager copied to clipboard
Locale error when saving
Hello,
I am getting an error when saving any modifications on the SCCP phone screen.
The changes do save to the database and the phones reflect the changes.
Error comes back ever time.
Whoops\Exception\ErrorException Undefined index: locale File:/var/www/html/admin/modules/sccp_manager/Sccp_manager.class.php:1888
I don't have a locale listed in the phone settings, but I believe for United States English you don't need any locale defined.
Downloaded latest version as of 2017/10/25, same issue.

Hello, I think the last update should fix this error.
Same error even after removing the module and reinstalling from today's version.
After replacing the files sccp_manager, you must run amportal chown. After installation it is necessary to execute "aplay config". What is your version of the PHP and Asterisk ? Now I do not understand how this error turns .....
Ok ran a fwconsole chown
[root@tele1 ~]# fwconsole chown
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions...
Setting base permissions...Done
Setting specific permissions...
763 [============================]
Finished setting permissions
Asterisk 14.6.2 (Complied from source) PHP 5.4.16 FreePBX 13.0.192.19
Same problem.
I commented out two lines in the problem .php file. Seems to "bypass" that error. I know that is not the correct solution, but it worked for now.
/var/www/html/admin/modules/sccp_manager/Sccp_manager.class.php
Line 1890 + 1891 //$xml_node->name = $lang_arr['locale']; //$xml_node->langCode = $lang_arr['code'];
Unfortunately I am not able to create the conditions for repetition of this error. This is most likely due to the fact that in a DB is a piece of garbage in the fields sccpsettings.netlang, sccpsettings.netlang or sccpdevice._hwlang. I added some more protection but if that doesn't help then please replace the code Line 1890 + 1891 /* $xml_node->name = $lang_arr['language']; $xml_node->langCode = $lang_arr['code']; */ $xml_node->name = print_r($lang_arr,1); $xml_node->langCode = print_r($lang,1); Send me the contents of the file SEP????????.XML in section userLocale, networkLocaleInfo, networkLocale.
I tried to write step by step instructions. https://github.com/PhantomVl/sccp_manager/wiki Perhaps you have something not done.