Forums / General Questions / "Code corrupted. Insert fresh copy." on main page

"Code corrupted. Insert fresh copy." on main page

Locked

Views: 5,125

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
13 Nov 2006, 6:56 PM
#1
mauiexcellent avatar

mauiexcellent

New Zenner

Join Date:
Nov 2006
Posts:
13
Plugin Contributions:
0

"Code corrupted. Insert fresh copy." on main page

I did a search for this and didn't find it. After making a few very small changes to my main page (define_main_page.php), I now get the message at the bottom of the live page, "Code corrupted. Insert fresh copy."

The page in general functions fine, but it used to display about 8 products beneath that page area, and now it doesn't, it just has that message.

I did make an FTP backup of everything a day or two ago, but I think the backup failed. I am not actually sure where the pure code to replace that page is located in the folders anyway. I am thinking I will take the live HTML source into Frontpage, and see if I can find some mismatched start/end statements of some kind.

Any other suggestions?

By the way, the only thing I did to the page (through the standard-view page editor in Zen Cart Tools), was change one picture at the end of the bottom of the 3rd column, changed the URL link on one link, and added 1 line of text...again, all these things at the bottom of the 3rd column.

The website is : http://www.mauiexcellent.com/

Thanks
Matt

The Zen Cart logo at the top says "Your version of Zen Cart appears to be current", and is Version Number 1.2.5.
**Server OS: **Linux 2.6.17-5mdv **Database: **MySQL 5.0.24a-log **Server Date: **11/13/2006 10:54:05 **Database Date: **11/13/2006 10:54:04 **Server Up Time: **10:54:05 up 29 days, 13:24, 0 users, load average: 2.52, 2.19, 1.80
**PHP Version: **5.1.6 (Zend: 2.1.0)
**HTTP Server: **Apache/2.2.3 (Mandriva Linux/PREFORK-1mdv2007.0)

13 Nov 2006, 7:45 PM
#2
jetx avatar

jetx

Zen Follower

Join Date:
Apr 2006
Posts:
425
Plugin Contributions:
0

Re: "Code corrupted. Insert fresh copy." on main page

Replace it with the original from the upgrade zip file, includes/languages/english/html_includes. Check if you have a template folder in that directory, if so that is where you'll need to replace it to.

I'd suggest not using frontpage, etc.

13 Nov 2006, 8:43 PM
#3
dedek avatar

dedek

New Zenner

Join Date:
Nov 2006
Posts:
9
Plugin Contributions:
1

Re: "Code corrupted. Insert fresh copy." on main page

The message "Code corrupted. Insert fresh copy" doesn't come from Zen Cart.

IMHO your counter is corrupted:

<script language="javascript" src="http://www.statcounter.com/counter/counter.js" type="text/javascript"></script>

13 Nov 2006, 11:21 PM
#4
mauiexcellent avatar

mauiexcellent

New Zenner

Join Date:
Nov 2006
Posts:
13
Plugin Contributions:
0

Re: "Code corrupted. Insert fresh copy." on main page

Thanks tons, you are right, must be the counter...I wonder if that is also why my products are not showing up. I'll clean the counter out, and see if everything works right.

Thanks!!!
Matt

14 Nov 2006, 1:23 PM
#5
dedek avatar

dedek

New Zenner

Join Date:
Nov 2006
Posts:
9
Plugin Contributions:
1

Re: "Code corrupted. Insert fresh copy." on main page

mauiexcellent:

Thanks tons, you are right, must be the counter...I wonder if that is also why my products are not showing up. I'll clean the counter out, and see if everything works right.

Thanks!!!
Matt

Matt, I was in a hurry last time. Here is more info:

The page is breaking due to javascript counter issue. All the page code is loaded but not displayed by browser after the counter code.

When disabling javascript the whole page is shown.

If you display your HTML source code you can see:

<p>
  <!-- Start of StatCounter Code -->
  <script language="javascript" type="text/javascript"></script>
  <script language="javascript" src="http://www.statcounter.com/counter/counter.js" type="text/javascript">
  </script>
  <noscript />
</p>

The same with the possible points of issue:

<p>
  <!-- Start of StatCounter Code -->
[b]-------------> empty javascript code block[/b]
  <script language="javascript" type="text/javascript"></script>
[b]-------------> empty javascript end[/b]
  <script language="javascript" src="http://www.statcounter.com/counter/counter.js" type="text/javascript">
  </script>
[b]---------------> <noscript> tag missing here
-------------> the point of page break[/b]
  <noscript />
</p>