Unterminated string constant script error since 2.3.1.0

habile's picture

Hi,
Since I upgraded core and framework to 2.3.1.0 I get a script error when editing extensions in IE7.

Line: 811
Char: 194
Error: Unterminated string constant
Code: 0
URL: http://192.168.1.16/admin/config.php?type=setup&display=extensions&extdisplay=1000&skip=0

Thanks,
C.


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I can't reproduce it on FF

p_lindheimer's picture

I can't reproduce it on FF on my system? Do you get an error in FF also? Can you put a screenshot somewhere to get a better picture of the issue?
------------------------------------
Philippe Lindheimer - FreePBX Project Lead
http//freepbx.org - IRC #freepbx


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


Sorry, I really struggle

habile's picture

Sorry, I really struggle with these new boards...

I meant to say I don't see the problem in FF. In IE you either get a popup or a script error triangle on the status bar depending on your configuration.

Screenshot: http://s236.photobucket.com/albums/ff302/habile1/?action=view&current=unterminate.jpg

C.


there is no way I will be

p_lindheimer's picture

there is no way I will be able to reproduce your configuration to see what is on 'line 811.' You are going to have to view the source of the page, find line 811 on the source of what is in your browser, and then let us know what is there so we can really see what it is complaining about.
------------------------------------
Philippe Lindheimer - FreePBX Project Lead
http//freepbx.org - IRC #freepbx


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


ok, try this on

p_lindheimer's picture

ok, try this on /var/www/html/admin/modules/core/functions.inc.php

Index: functions.inc.php
===================================================================
--- functions.inc.php   (revision 5137)
+++ functions.inc.php   (working copy)
@@ -2926,7 +2926,7 @@
                // Some errors for the validation bits
                $msgInvalidDTMFMODE = _("Please enter the dtmfmode for this device");
                $msgInvalidChannel = _("Please enter the channel for this device");
-               $msgConfirmSecret = _("You have not entered a Secret for this device, although this is possible it is generally bad practice to not assign a Secret to a device.\n\nAre you sure you want to leave the Secret empty?");
+               $msgConfirmSecret = _("You have not entered a Secret for this device, although this is possible it is generally bad practice to not assign a Secret to a device. Are you sure you want to leave the Secret empty?");
                $msgInvalidSecret = _("Please enter a Secret for this device");
 
                // zap

And file a bug in the tracker.
------------------------------------
Philippe Lindheimer - FreePBX Project Lead
http//freepbx.org - IRC #freepbx


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


Yep - that sorted it, thanks

habile's picture

Yep - that sorted it, thanks Philippe. Sorry I was a little lazy on that one, I could have worked it out but been v. busy :( -- I'll file a bug.