Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2006
    Posts
    13
    Plugin Contributions
    0

    Default "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)

  2. #2
    Join Date
    Apr 2006
    Posts
    413
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Nov 2006
    Posts
    9
    Plugin Contributions
    1

    Default 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>

  4. #4
    Join Date
    Nov 2006
    Posts
    13
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    Nov 2006
    Posts
    9
    Plugin Contributions
    1

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

    Quote Originally Posted by mauiexcellent View Post
    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:
    Code:
    <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:
    Code:
    <p>
      <!-- Start of StatCounter Code -->
    -------------> empty javascript code block
      <script language="javascript" type="text/javascript"></script>
    -------------> empty javascript end
      <script language="javascript" src="http://www.statcounter.com/counter/counter.js" type="text/javascript">
      </script>
    ---------------> <noscript> tag missing here
    -------------> the point of page break
      <noscript />
    </p>

 

 

Similar Threads

  1. v150 BULK copy functionality using the "Duplicate Product" "Copy Method"
    By Zean in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 28 Jun 2012, 12:57 AM
  2. Why has "Define your main Index page copy here." appeared when I turn off categories?
    By johnybravo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Sep 2011, 09:56 PM
  3. Marg’s insert comment code, how do I make it say "Dear CUSTOMER_NAME?"
    By apemusic in forum Managing Customers and Orders
    Replies: 17
    Last Post: 14 Jan 2011, 03:21 AM
  4. Replies: 4
    Last Post: 7 Jul 2007, 06:29 PM
  5. Code corrupted. Insert fresh copy. error !
    By ff7799 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Jul 2006, 05:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR