Page 1 of 1

[SOLVED] Javascript error in IE 7 when viewing "Content > Pages"

Posted: Tue Jan 27, 2009 5:13 pm
by joecannes
Hi all,

I've just a fresh install of CMS MLE 1.5.2, using IE 7.

While still using IE 7, I login into the admin area, and click on Content > Pages, and that's where I get where I javascript error stating:

Error: Expected ')'

I dont get the error using Firefox.

If I delete all the pages and just keep the default page, the error is gone. But when i create a new page, the error reappears.

The error also appears when I go to Content > Printer Friendly Pages.

ANyone else getting this error in IE 7, and does anyone know how to fix this problem?

Thanks,

JC

Re: Javascript error in IE 7 when viewing "Content > Pages"

Posted: Tue Jan 27, 2009 5:16 pm
by joecannes
Just to follow up, it used to be that if I had an apostrophe in my menu text, then I would recieve this error.

I figured that out in CMSMS MLE 1.4.1. 

But I am not using any special characters for the menu text or title.

[SOLVED] Javascript error in IE 7 when viewing "Content > Pages"

Posted: Tue Jan 27, 2009 8:38 pm
by joecannes
After spending this morning looking into the problem, just figured it out:

I opened admin.inc.php  (using Dreamweaver) under:

admin > lang > en_US > admin.inc.php

and edited line 1146:

$lang['admin']['confirmdefault'] = 'Are you sure you want to set - %s - as the site\\\'s default page?';

and updated it to

$lang['admin']['confirmdefault'] = 'Are you sure you want to set - %s - as the site default page?';

and my javascript problem has gone away!


Second, for the Printer Friendly Pages, I opened the file called en_US.php (using Dreamweaver) under:

modules > Printing > lang > en_US.php

and edited line 13:

$lang["confirmresettemplate"]="Are you sure the template should be reset to it's default value?";

and updated it to:

$lang["confirmresettemplate"]="Are you sure the template should be reset to the default value?";



Alby, can this be updated for the next version of CMSMS MLE? (not the way I wrote the confirmation sentence, but the problem with the apostriphe " 's" )


Joe Cannes

Re: [SOLVED] Javascript error in IE 7 when viewing "Content > Pages"

Posted: Tue Jan 27, 2009 9:02 pm
by RonnyK
First one is fixed in SVN with revision 5409.

Ronny

Re: [SOLVED] Javascript error in IE 7 when viewing "Content > Pages"

Posted: Tue Jan 27, 2009 9:27 pm
by RonnyK
Second one is fixed in SVN as well with rev.78.

Ronny

Re: [SOLVED] Javascript error in IE 7 when viewing "Content > Pages"

Posted: Wed Feb 18, 2009 6:45 am
by SideshowBob
Just wanted to say thanks to JC for finding this one!

I was just about to start the debug process and your post saved me a lot of time.

Thanks of course to the awesome CMSMS team for fixing it too.

Bob