StatCounter User Forum  
StatCounter Free web tracker and counter

Go Back   StatCounter User Forum > StatCounter.com > Help

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 11-24-2007, 05:13 PM
ukvariety ukvariety is offline
Junior Member
 
Join Date: Nov 2007
Posts: 5
Default Code corrupted. Insert fresh copy

I have encountered this problem with one template I have been using. I have tested the template and found that it has to be the statcounter code causing it. When the statcounter code is removed, the error message disappears.

The url of the page is currently EbaySalesAdvice.com

My username is ukvariety

The error message can be seen at the bottom left of the page. It says "Code corrupted. Insert fresh copy"

I have searched online but can not find a solution. I have checked the code to make sure that it has not been reformatted. The statcounter code is exactly as it is provided from your website.

The statcounter works, it just displays this message. I have checked all other javascripts to make sure they are all closed correctly and everything seems fine.

Thanks in advance for your help.
  #2  
Old 11-24-2007, 06:24 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,176
Default

I don't know. You should fix your page, yuo have some validation errors:

http://validator.w3.org/check?verbos...lesadvice.com/


Probably by the time it gets to that part of the source code somehtign is already messed up.

The code by itself works fine. You will in fact see a hit coming from my own pc from a simple temporary test page with your Statcounter code taken from your online page, that I made and viewed in my browser.

You have an invisible counter. No error message was given.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #3  
Old 11-24-2007, 06:27 PM
Arne's Avatar
Arne Arne is offline
Moderator
 
Join Date: Sep 2004
Location: Lulea, Sweden
Posts: 5,465
Default

It looks like your Peel Code is messing up a part of the Statcounter code, making the SC code as a part of Peel Code and that makes the SC code corrupted.

Delete the code for both, in the bottom of the page. Then insert them again carefully, no to close to eatch other so they get mixed again.
  #4  
Old 11-24-2007, 06:56 PM
ukvariety ukvariety is offline
Junior Member
 
Join Date: Nov 2007
Posts: 5
Default

Thanks for your help. I have tried everything.

I removed all other javascript code including the peel code and the header, but the message still appeared. This error only shows in this template.

I cant understand why the validation keeps saying that the boardercolor is invalid. Everytime I remove the one it mentions, it just moves on to the next boardercolor. Am I missing something?

I have now removed the peel code and I still get the error.

This error is caused by the statcounter code. It has some conflict with this template. This is the only template that I have seen it happen on, but there are a lot of people online with the same problem.

The bordercolor="#000000" problem should only effect netscape. It should be fine with most other browsers.

However I have removed all errors shown in dreamweaver and have ran another validation and it shows a green light. http://validator.w3.org/check?uri=ht...up=0&verbose=1

However the error is still there.

So, just to recap, I have removed all errors and peel code.

any suggestions?
  #5  
Old 11-24-2007, 07:46 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,176
Default

Quote:
Originally Posted by ukvariety View Post
Thanks for your help. I have tried everything.

I removed all other javascript code including the peel code and the header, but the message still appeared. This error only shows in this template.

I cant understand why the validation keeps saying that the boardercolor is invalid. Everytime I remove the one it mentions, it just moves on to the next boardercolor. Am I missing something?

I have now removed the peel code and I still get the error.

This error is caused by the statcounter code. It has some conflict with this template. This is the only template that I have seen it happen on, but there are a lot of people online with the same problem.

The bordercolor="#000000" problem should only effect netscape. It should be fine with most other browsers.

However I have removed all errors shown in dreamweaver and have ran another validation and it shows a green light. http://validator.w3.org/check?uri=ht...up=0&verbose=1

However the error is still there.

So, just to recap, I have removed all errors and peel code.

any suggestions?

Ok, bordercolor is not valid html but it doesn't break code. It's just that you should be using a style for that.

I don't se the peel script so no idea what it does and how. Right now your Statcounter code is ok.

If the peel scritp uses some fo the same variable names as Statcounter or if it plays around in the DOM, it could well interfere, depending on what it does and how.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #6  
Old 11-24-2007, 09:56 PM
ukvariety ukvariety is offline
Junior Member
 
Join Date: Nov 2007
Posts: 5
Default

I have put the peel code after the statcounter code instead of the other way around and that seems to have done it.

Weird how it only works one way on this template. I have checked my other domains and some are one way round while other are the other way round.

Any ideas why it does it just on this template?

Thanks for all your help.
  #7  
Old 11-24-2007, 10:27 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,176
Default

Well look at that code!

Quote:
<!-- Start of Peel Code -->
<script src="http://www.ebaysalesadvice.com/peel/esel_multi_link.js"
type="text/javascript"></script>
<script type="text/javascript">
<!-- End of Peel Code -->
The pink stuff is the opening of a new script but there nothing after it to close it. Remove that line rigth away.

Why didn't you use the validator? it would have shown you that you have a problem right there.

http://validator.w3.org/check?uri=ht...up=0&verbose=1
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #8  
Old 11-24-2007, 06:58 PM
ukvariety ukvariety is offline
Junior Member
 
Join Date: Nov 2007
Posts: 5
Default

Nope, scrap that it's working.

I'll add the peel code and see what it does.
  #9  
Old 11-24-2007, 07:00 PM
ukvariety ukvariety is offline
Junior Member
 
Join Date: Nov 2007
Posts: 5
Default

Ok, it seems that statcounter code does conflict with the peel code...

Why does that only happen on this template? I have the peel code on over 23 other domains and this is the only template that has this error.

Any ideas?
  #10  
Old 11-24-2007, 07:43 PM
Arne's Avatar
Arne Arne is offline
Moderator
 
Join Date: Sep 2004
Location: Lulea, Sweden
Posts: 5,465
Default

Quote:
Originally Posted by ukvariety View Post
Ok, it seems that statcounter code does conflict with the peel code...

Why does that only happen on this template? I have the peel code on over 23 other domains and this is the only template that has this error.

Any ideas?
Ok, the Statcounter code looks good now, you should see my visits. But I don't see any Peel Code there anymore? If you removed it, then please put it back so we can see where and how it apperars in the source of the page. I can't see any other reason for the code to corrupt than if the Peel code is not going to the "right" place it will mix up with the SC code.
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:23 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.