sccp_manager icon indicating copy to clipboard operation
sccp_manager copied to clipboard

Locale error when saving

Open GMeola opened this issue 8 years ago • 7 comments

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.

screen shot 2017-10-25 at 09 59 31

GMeola avatar Oct 25 '17 14:10 GMeola

Hello, I think the last update should fix this error.

PhantomVl avatar Oct 25 '17 18:10 PhantomVl

Same error even after removing the module and reinstalling from today's version.

screen shot 2017-10-25 at 18 10 58

GMeola avatar Oct 25 '17 22:10 GMeola

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 .....

PhantomVl avatar Oct 25 '17 22:10 PhantomVl

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

GMeola avatar Oct 26 '17 01:10 GMeola

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'];

GMeola avatar Oct 26 '17 03:10 GMeola

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.

PhantomVl avatar Oct 26 '17 08:10 PhantomVl

I tried to write step by step instructions. https://github.com/PhantomVl/sccp_manager/wiki Perhaps you have something not done.

PhantomVl avatar Oct 31 '17 16:10 PhantomVl