Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / Links ON ez-pages TO OTHER turned-off ez-pages don't work after upgrade

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

Started by anduril3019 on 18 May 2015, 7:13 PM · Views: 1,165

Results 1 to 3 of 3
18 May 2015, 7:13 PM
#1
anduril3019 avatar

anduril3019

New Zenner

Join Date:
Dec 2006
Posts:
42
Plugin Contributions:
0

Post #1 by anduril3019

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.php?main_page=page&id=9

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

http://blackbirdandcompany.com/index.php?main_page=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.

19 May 2015, 1:37 AM
#2
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Post #2 by barco57

includes/modules/pages/page/header_php.php

find line 28-30

$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

$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
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

19 May 2015, 8:12 AM
#3
anduril3019 avatar

anduril3019

New Zenner

Join Date:
Dec 2006
Posts:
42
Plugin Contributions:
0

Post #3 by anduril3019

Thank you!!!