Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2006
    Posts
    42
    Plugin Contributions
    0

    Default Links ON ez-pages TO OTHER turned-off ez-pages don't work after upgrade

    Appologies if I'm missing something obvious here!

    I have ez-pages that contain links to other ez-pages.

    Link in sidebox: "lit answer key"

    http://blackbirdandcompany.com/index...page=page&id=9

    The above page has links to other ez-pages, for example "1. Read the Book"

    http://blackbirdandcompany.com/index...age=page&id=64

    The secondary ez-page is not assigned to any menu, Header, Sidebox, Footer, etc, all are turned off. On my previous 1.3x site, the links all worked fine, now on my 1.5.4 site the secondary links bring up a zencart alert message at the top that reads "Sorry, the page you were attempting to access cannot be found."

    If I assign the secondary page to the sidebox, then the link on the primary page will work. But the point is to not have the secondary pages in a menu because there are about 100 of them.

    It's like the pages are turned off, which kind of makes sense, I guess, but it always worked before.

    I made a new test ez-page and placed the link on the primary page to see if it was the old links. It had the same behavior, the link worked when assigned to the sidebox, but not when turned off.

  2. #2
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,739
    Plugin Contributions
    0

    Default Re: Links ON ez-pages TO OTHER turned-off ez-pages don't work after upgrade

    includes/modules/pages/page/header_php.php

    find line 28-30
    Code:
    $sql = "select * from " . TABLE_EZPAGES . " where pages_id = " . (int)$ezpage_id;
    // comment the following line to allow access to pages which don't have a status switch set to Yes:
    $sql .= " AND (status_toc > 0 or status_header > 0 or status_sidebox > 0 or status_footer > 0)";
    and change too

    Code:
    $sql = "select * from " . TABLE_EZPAGES . " where pages_id = " . (int)$ezpage_id;
    // comment the following line to allow access to pages which don't have a status switch set to Yes:
    //$sql .= " AND (status_toc > 0 or status_header > 0 or status_sidebox > 0 or status_footer > 0)";
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #3
    Join Date
    Dec 2006
    Posts
    42
    Plugin Contributions
    0

    Default Re: Links ON ez-pages TO OTHER turned-off ez-pages don't work after upgrade

    Thank you!!!

 

 

Similar Threads

  1. Replies: 9
    Last Post: 10 Apr 2013, 01:09 PM
  2. product pages don't match after upgrade
    By srafferty in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 1 Apr 2011, 10:48 AM
  3. After Upgrade define pages editor does not work.
    By ADE Cyber Emporium in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 20 Oct 2010, 02:57 PM
  4. turned off pages showing on sitemap
    By lavergara in forum General Questions
    Replies: 1
    Last Post: 27 Aug 2007, 02:49 PM

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