Forums / General Questions / Upgraded and moved to new directory, now can't load EZ Pages

Upgraded and moved to new directory, now can't load EZ Pages

Views: 879

Results 1 to 7 of 7
22 Nov 2015, 4:55 PM
#1
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Upgraded and moved to new directory, now can't load EZ Pages

I upgraded my site to v1.54 and it worked fine in a subdirectory. I moved it to the root directory and now the links to my EZ Pages don't work. When I click on the links, I get this error:

Sorry, the page you were attempting to access cannot be found.

A link to one of the pages on my site is here: http://www.jms-books.com/index.php?main_page=page&id=22&chapter=0

I know the pages exist -- I see them in admin and I could access them when the site was in the subdirectory. I found something that said the issue was with the CEON (???) but I don't know what that means.

How can I correct this?

Please be kind and use small words -- I know squat when it comes to PHP. Thank you in advance.

22 Nov 2015, 5:30 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Upgraded and moved to new directory, now can't load EZ Pages

What are the settings for the ezpage(s)?

If using CEON URI rewriting, need to have the page(s) rewritten by checking the checkbox at the bottom to have it create a new URI for the product and maintain the previous uris as well...

Otherwise there were changes to how ezpages worked and if they were not setup as expected/required, then yes the page would appear as not found.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

22 Nov 2015, 5:36 PM
#3
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Upgraded and moved to new directory, now can't load EZ Pages

Thanks. I don't think I have CEON URI rewriting installed -- at least, I didn't install it as a modification, so if it came with the original installation of v1.54, then it's there but I didn't put it there myself. There is no checkbox on my EZ Pages to rewrite them. If I just click UPDATE, nothing happens.

Otherwise, I'm not sure what settings you're referring to? Should I install the mod?

22 Nov 2015, 5:50 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Upgraded and moved to new directory, now can't load EZ Pages

jmsnyder23:

Thanks. I don't think I have CEON URI rewriting installed -- at least, I didn't install it as a modification, so if it came with the original installation of v1.54, then it's there but I didn't put it there myself. There is no checkbox on my EZ Pages to rewrite them. If I just click UPDATE, nothing happens.

Otherwise, I'm not sure what settings you're referring to? Should I install the mod?

No need to install it for the purpose of fixing your issue... Hold on while I look up the instructions on how to setup ezpages. It has to do with the information at the top of the ezpage's individual screen.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

22 Nov 2015, 5:51 PM
#5
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Upgraded and moved to new directory, now can't load EZ Pages

Okay, I figured it out. Duh! In previous versions of Zen Cart, I could have everything "turned off" (chapters, TOC, etc) and the pages would still display. Apparently that isn't the case in 1.54. So I turned on the TOC and the links work now. Whew!

Thanks for your help :)

22 Nov 2015, 6:07 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Upgraded and moved to new directory, now can't load EZ Pages

mc12345678:

No need to install it for the purpose of fixing your issue... Hold on while I look up the instructions on how to setup ezpages. It has to do with the information at the top of the ezpage's individual screen.

Although figured out a solution, an area with more information is:
https://www.zen-cart.com/content.php?40-ez-pages

It is possible to reprogram to support the setup you describe above and it is documented elsewhere in the forum if needed...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

24 Nov 2015, 3:16 AM
#7
barco57 avatar

barco57

Totally Zenned

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

Re: Upgraded and moved to new directory, now can't load EZ Pages

jmsnyder23:

Okay, I figured it out. Duh! In previous versions of Zen Cart, I could have everything "turned off" (chapters, TOC, etc) and the pages would still display. Apparently that isn't the case in 1.54. So I turned on the TOC and the links work now. Whew!

Thanks for your help :)

in includes/modules/pages/page/header_php.php comment out the line with the // line 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)";

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!