Zen Cart Logo
Forums / Bug Reports / [Not a Bug] Easy pages links

[Not a Bug] Easy pages links

Locked

Views: 5,372

Results 21 to 35 of 35
This thread is locked. New replies are disabled.
20 Feb 2015, 10:30 AM
#21
mc12345678 avatar

mc12345678

Totally Zenned

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

[Not a Bug] Easy pages links

May I suggest going back to the basics?

Mprough, in the first post, there is indication that previous versions of ZC have been used, the thread or issue appears to be focused on ZC 1.5.4 with a "fix" associated with 1.5.3 correcting the problem you were having...

What about the answers to all of those helpful questions in the posting tips? The ones centered around how this site became ZC 1.5.4 as reported and any differences in it as compared to a clean install would help Dr. Byte with his question above or it might help another developer correct something in a plugin, etc...

20 Feb 2015, 6:43 PM
#22
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: [Not a Bug] Easy pages links

mc12345678:

Mprough, in the first post, there is indication that previous versions of ZC have been used, the thread or issue appears to be focused on ZC 1.5.4 with a "fix" associated with 1.5.3 correcting the problem you were having...

DrByte:

I'm still not clear whether there's a case to consider that there's a bug or not.

Since this was posted in Bug Reports I'd like to get clarification: Is there a bug? If so, please explain how to reproduce using a clean unaltered install of v1.5.4, and I'll be happy to fix it.

Neither was I which is why I questioned the "solution". In a clean 1.5.4 shop I can't reproduce the issue.. hence my concern that perhaps some bug had escaped my detection.. I think that this issue was something in the v1.5.3 codebase and FIXED in 1.5.4. That link for the "fix" suggested, appears to apply to v1.5.3.

20 Feb 2015, 9:31 PM
#23
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Not a Bug] Easy pages links

Exactly. It seems like they're using v1.5.3, else the "solution" wouldn't have been needed.

20 Feb 2015, 10:05 PM
#24
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: [Not a Bug] Easy pages links

DrByte:

Exactly. It seems like they're using v1.5.3, else the "solution" wouldn't have been needed.

Thanks DrByte for confirming that this is NOT a bug with regards to v1.5.4..

21 Feb 2015, 1:06 AM
#25
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Not a Bug] Easy pages links

DivaVocals:

Thanks DrByte for confirming that this is NOT a bug with regards to v1.5.4..
Well, as far as I can tell it isn't.
Not sure why mprough reported it as a bug with 1.5.4. Usually she doesn't make that kind of mistake.

21 Feb 2015, 2:21 AM
#26
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: [Not a Bug] Easy pages links

DrByte:

Well, as far as I can tell it isn't.
Not sure why mprough reported it as a bug with 1.5.4. Usually she doesn't make that kind of mistake.
I agree which was what got me concerned that I had missed a new 1.5.4 bug.. (hence my seemingless relentless probing)

22 Feb 2015, 5:10 AM
#27
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: [Not a Bug] Easy pages links

From my experience in installing and upgrading Zen Cart sites, prior to version 1.5.3 (I did not use 1.5.2 because it was supposed to be for demo only) if you had an ez page that had no sort number, nor was the button changed to green, you could still put a link to that ez page somewhere and it would work.

Beginning with 1.5.3 (and possibly 1.5.2), if you do this, it goes to the index page and gives error message at top saying "Sorry, the page you were attempting to access cannot be found."

I discovered this problem when upgrading a customer to 1.5.3 and somehow found a solution was to do what it says in includes/modules/pages/page/header_php.php and comment out a line at or about line 30 as follows:

$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)";

That worked and I was delighted, since this customer had TONS of ez pages that were not in a sidebox, header or footer - but as links on various pages in her store.

It is nice to know that the code "fix" does not need to be applied in that file any longer and that simply clicking the TOC to green will allow the page to be displayed beginning with version 1.5.3. Now all I have to do is REMEMBER that after all these years of not having to do it! :blink:

BTW - I noticed the problem does not apply to an upgrade to 1.5.4 I am working on right now that has Ultimate SEO URL's installed. The ez pages will show up whether the TOC is clicked green or not.

Hope this helps someone reading this thread who has encountered the same problem!

22 Feb 2015, 5:33 AM
#28
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: [Not a Bug] Easy pages links

stellarweb:

BTW - I noticed the problem does not apply to an upgrade to 1.5.4 I am working on right now that has Ultimate SEO URL's installed. The ez pages will show up whether the TOC is clicked green or not.

and I will add to this that with all due respect that there must be something wrong with your upgrade then.. because the links I posted are indeed from a dev site that was upgraded from v1.5.1 to 1.5.4. If you do not activate the TOC, the EZ Pages re-direct to the home page with a message that the file requested cannot be found.. But with the TOC activated, you are properly redirected to the EZ Page.. In fact I just repeated the SAME upgrade on that SAME DB on my local server and even without re-installing the modules and custom template, I still get the exact same result..

There are quite a few modules and templates marked v1.5.4 compatible which I found re-introduce outdated Zen Cart code.. So I'd say that unless you missed a file in your upgrade activities or installed a module or template that uses outdated EZ Pages code and overwrote the upgrade changes by installing this module or template, the new EZ Pages code should work on a properly upgraded store..

22 Feb 2015, 4:23 PM
#29
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: [Not a Bug] Easy pages links

Not sure what could be wrong with the upgrade. He has very few mods installed - so the build was quite easy - install 1.5.4, pull over select tables from the current database, upgrade the database, update the template files and install the few mods he has - sideboxes, sales report, mail chimp, Ultimate SEO URLs, etc. It is probably a .htaccess problem or caching on my computer, so I guess disregard that statement! LOL

22 Feb 2015, 7:34 PM
#30
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: [Not a Bug] Easy pages links

stellarweb:

pull over select tables from the current database, upgrade the database.httaccess would NOT be the cause.. but wonder if your method of upgrading the databases is at issue.. pulling over "select tables" sounds like cherry picking tables and this is not a recommended upgrade practice..

In any case sounds like you are missing pieces of the 1.5.4 codebase which is the only reason why the new functionality wouldn't work..

22 Feb 2015, 8:09 PM
#31
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: [Not a Bug] Easy pages links

DivaVocals:

.httaccess would NOT be the cause.. but wonder if your method of upgrading the databases is at issue.. pulling over "select tables" sounds like cherry picking tables and this is not a recommended upgrade practice..

In any case sounds like you are missing pieces of the 1.5.4 codebase which is the only reason why the new functionality wouldn't work..

No piece of the 1.5.4 code is absent - it is a complete NEW rebuild - so unless a file is missing from the Zen Cart download, this would not be an issue.

As for "cherry picking" tables not being a recommended upgrade practice, there is no reason, for example, to bring over configuration tables if you are downsizing the amount of mods that are in place and want a somewhat "fresh" 1.5.4 database so you can install the latest version of mods.

I am sure everyone does things differently than others. In the 10+ years I have been working with Zen Cart, I do what makes the most sense to me, which works very well for me and my clients and their sites.

In any case, this apparently is NOT a bug - but as mprough initially stated, something that was intentionally changed. And it started at least with version 1.5.3. Now we all know to click the TOC button, so all is good in my world.

23 Feb 2015, 1:21 AM
#32
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: [Not a Bug] Easy pages links

stellarweb:

No piece of the 1.5.4 code is absent - it is a complete NEW rebuild - so unless a file is missing from the Zen Cart download, this would not be an issue.

As for "cherry picking" tables not being a recommended upgrade practice, there is no reason, for example, to bring over configuration tables if you are downsizing the amount of mods that are in place and want a somewhat "fresh" 1.5.4 database so you can install the latest version of mods.

I am sure everyone does things differently than others. In the 10+ years I have been working with Zen Cart, I do what makes the most sense to me, which works very well for me and my clients and their sites.

In any case, this apparently is NOT a bug - but as mprough initially stated, something that was intentionally changed. And it started at least with version 1.5.3. Now we all know to click the TOC button, so all is good in my world.

Right.. you do whatever method of upgrading works for you.. That kinda wasn't the point I was making at all..

Here's the point I WAS making.. You stated that your converted v1.5.4 stores are not behaving as expected with the new EZ Pages code.. You also stated that you upgrade using a practice that is not a recommended practice by "cherry picking" tables to convert..

Ssince you are upgrading in a manner that is contrary to recommended practices, I was merely suggesting that in this method, it's POSSIBLE that your converted store is NOT working as it should because of the conversion method you are using..

By contrast, my converted v1.5.1 store IS working as it should, and I followed the recommended practices for upgrading (which means I don't cherry pick data from the database when doing an upgrade)... Suggesting that if you want to know why your converted store isn't behaving as it should, it MIGHT have something to do with this upgrade method and the possibility that your cherry picking is missing something.. 'tis all..

23 Feb 2015, 4:32 AM
#33
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Re: [Not a Bug] Easy pages links

I guess I am not altogether sure why the dead horse is being beaten here, it is late and maybe I am just too tired to "get it" From what I see your 1.5.1 store is working EXACTLY the same as the 1.3.9, 1.5.0 and 1.5.1 stores I have upgraded to 1.5.4. Meaning.... you have to click the TOC button in order to get an EZ Page to show up that does not have header, footer or sidebox buttons clicked on.

As I said previously, the bottom line is that prior to version 1.5.3 (and possibly 1.5.2), the EZ Pages were visible without having to click on the TOC button in the admin - and without having any of the header, footer or sidebox buttons clicked on. This is for NEW builds as well as any upgrades.... so in all reality, an upgrade, however it is being done, is not the real issue. The issue is a change of code.

As I also said previously - now that I know to tell people they have to click the TOC button, that works for me since I don't have to modify the code to make that function work with 1.5.3 and 1.5.4 websites.

I think that should hopefully clarify the situation for others reading this thread and hope they can muddle through all the extra stuff to get the info they need.

23 Feb 2015, 4:48 AM
#34
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: [Not a Bug] Easy pages links

stellarweb:

I guess I am not altogether sure why the dead horse is being beaten here, it is late and maybe I am just too tired to "get it"
Ohhhhh brother.. sigh wasn't beating any dead horse..
you posted the following
stellarweb:

BTW - I noticed the problem does not apply to an upgrade to 1.5.4 I am working on right now that has Ultimate SEO URL's installed. The ez pages will show up whether the TOC is clicked green or not.
I was responding to that.. but now you are saying something else.. okay..:shocking: have a good one..

23 Feb 2015, 7:33 AM
#35
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Not a Bug] Easy pages links

DrByte:

I'm still not clear whether there's a case to consider that there's a bug or not.

Since this was posted in Bug Reports I'd like to get clarification: Is there a bug? If so, please explain how to reproduce using a clean unaltered install of v1.5.4, and I'll be happy to fix it.
Given that this thread was started under Bug Reports, and it appears to be confirmed that it's a false report, I'm closing this discussion, as it's clearly going in another direction now, and now has nothing to do with Bug Reports.