coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: skidpics on September 08, 2007, 06:40:03 AM

Title: Multiple runtime errors notifications...
Post by: skidpics on September 08, 2007, 06:40:03 AM
I keep having multiple runtime error notifications when running IE..  There are usually different line numbers in the notification and it keeps asking if I would like to debug - Can anyone figure out why it is doing this?  I does NOT do it running firefox, just IE...

Interesting update - It ONLY does it when I using the IE firefox Extension, and not IE itself.

Anyone have any clues?


Title: Re: Multiple runtime errors notifications...
Post by: Sami on September 08, 2007, 08:22:28 AM
More detail please , post the error/notification string
Title: Re: Multiple runtime errors notifications...
Post by: skidpics on September 09, 2007, 01:06:58 AM
Quote from: Sami on September 08, 2007, 08:22:28 AM
More detail please , post the error/notification string
This is the only thing it states on the screen - Of course, it does not show up if you have to option in IE turned off to display the errors:


A runtime error has occured.
Do you wish to debug?

Line 68
error: Syntax Error


Do you want my debug info?
Title: Re: Multiple runtime errors notifications...
Post by: Nibbler on September 09, 2007, 02:13:05 AM
No; we want line 68.
Title: Re: Multiple runtime errors notifications...
Post by: skidpics on September 09, 2007, 02:48:19 AM
Quote from: Nibbler on September 09, 2007, 02:13:05 AM
No; we want line 68.
Microsoft Script Editor does not have line number, but when I go to debug, does it go to the line of code that has the error automatically or do I give you line 68 from a particular file?

Title: Re: Multiple runtime errors notifications...
Post by: Sami on September 09, 2007, 08:52:02 AM
Post line #68 of that file
Title: Re: Multiple runtime errors notifications...
Post by: skidpics on September 09, 2007, 05:28:55 PM
Quote from: Sami on September 09, 2007, 08:52:02 AM
Post line #68 of that file

Here is line #68 of the Microsoft Script Debugger:

<th scope="row" width="24%"><!-- Begin: AdBrite --><script type="text/javascript">

Seems like I might need to contact adbrite about their script generating an error, or is there an issue with my javascript on the local pc?

Title: Re: Multiple runtime errors notifications...
Post by: Joachim Müller on September 09, 2007, 08:10:45 PM
Post a link to the page where you get that error. Line numbers between source code and actual output may differ, particularly for dynamically generated pages.
Title: Re: Multiple runtime errors notifications...
Post by: skidpics on September 10, 2007, 03:19:17 AM
Quote from: GauGau on September 09, 2007, 08:10:45 PM
Post a link to the page where you get that error. Line numbers between source code and actual output may differ, particularly for dynamically generated pages.

I get the error with IE when I just go to my website:  http://skidpics.com (http://skidpics.com)
Title: Re: Multiple runtime errors notifications...
Post by: Joachim Müller on September 10, 2007, 08:11:25 AM
The following errors need to be corrected (line 69 ff).:   var AdBrite_Title_Color = &#39;940F04&#39;;
   var AdBrite_Text_Color = &#39;000000&#39;;
   var AdBrite_Background_Color = &#39;FFFFFF&#39;;
   var AdBrite_Border_Color = &#39;FFFFFF&#39;;


Replace with   var AdBrite_Title_Color = '940F04';
   var AdBrite_Text_Color = '000000';
   var AdBrite_Background_Color = 'FFFFFF';
   var AdBrite_Border_Color = 'FFFFFF';
and you should be fine.

Seems like apostrophes got replaced with &#39;
Title: Re: Multiple runtime errors notifications...
Post by: skidpics on September 10, 2007, 03:21:18 PM
I see that, but in my theme, it is listed as:

  var AdBrite_Title_Color = '0000FF';
   var AdBrite_Text_Color = '000000';
   var AdBrite_Background_Color = 'FFFFFF';
   var AdBrite_Border_Color = 'FFFFFF';


and if you look at the source code once the page has loaded, there is no change either.  It seems ti changes when debug loads it:

  var AdBrite_Title_Color = '0000FF';
   var AdBrite_Text_Color = '000000';
   var AdBrite_Background_Color = 'FFFFFF';
   var AdBrite_Border_Color = 'FFFFFF';


What would be changing it?
Title: Re: Multiple runtime errors notifications...
Post by: Sami on September 10, 2007, 03:43:40 PM
Did you use anycontent.php ? if yes then check the js code there too
Title: Re: Multiple runtime errors notifications...
Post by: skidpics on September 10, 2007, 03:50:33 PM
Quote from: Sami on September 10, 2007, 03:43:40 PM
Did you use anycontent.php ? if yes then check the js code there too

I am not using it.. 
Title: Re: Multiple runtime errors notifications...
Post by: skidpics on September 10, 2007, 05:05:35 PM
Quote from: Sami on September 10, 2007, 03:43:40 PM
Did you use anycontent.php ? if yes then check the js code there too

You were right.  I was not using anycontent, but rather, had the bad code in MiniCMS..   

Thanks a lot for the help !!
Title: Re: Multiple runtime errors notifications...
Post by: Joachim Müller on September 10, 2007, 05:40:15 PM
Use miniCMS only for textual content, not to add CSS of JavaScript stuff. Marking thread as "solved".