Zen Cart Logo
Forums / Bug Reports / [Fixed 1.6.0] ez pages toc links not displaying any more

[Fixed 1.6.0] ez pages toc links not displaying any more

Locked

Views: 7,073

Results 1 to 20 of 30
This thread is locked. New replies are disabled.
27 Sep 2012, 1:20 AM
#1
artworkz avatar

artworkz

New Zenner

Join Date:
Nov 2010
Location:
Fife, Scotland
Posts:
22
Plugin Contributions:
0

[Fixed 1.6.0] ez pages toc links not displaying any more

My shop has been working fine for ages....now my ez pages toc's are only showing the parent link. I have moved server recently, but all settings are ok, the ezpage setup seems ok, so what might cause this behaviour? The parent pages are set to appear in the LH box, with children only showing as links in the parent page itself. Only the parent link shows..... Any help appreciated. The source code in the browser verifies that the system is not sending the links in the delivered page.

see http://www.oschaslings.com

The items 'sling essentials', 'sling benefits' and 'how to carry' have a number of other pages in their chapters....now I can only access these child pages if I enable the back and next navigation....which I normally have set to off....

27 Sep 2012, 6:42 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

What happens if you make a new page for a chapter? What happens if you make a whole new chapter with main and child pages?

27 Sep 2012, 9:57 AM
#3
artworkz avatar

artworkz

New Zenner

Join Date:
Nov 2010
Location:
Fife, Scotland
Posts:
22
Plugin Contributions:
0

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

Hi....the same....ie parent page shows up in the toc, but no child

27 Sep 2012, 3:00 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

Hmmm

I just loaded up ZC.1.5.1 - and am having the SAME PROBLEM...

Now I do know a bit about EZpages, so I doubt whether I anything doing anything incorrectly. (Over the years, I must have set up HUNDREDS of chapters...)

This is on a FRESH install 1.5.1... no changes to core.

I get the FIRST (parent) link... eg: CH 1 sort order 1, but CH1 sort order 2, CH1 sort order 3, CH1 sort order 4 ... nothing shows in the TOC menu.

Stumped...

27 Sep 2012, 3:21 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

I just checked my v1.5.1 test site, and see the same issue. The page with the lowest active sort order in the chapter's TOC displays, none of the rest do.
It is independent of any other settings or factors.

27 Sep 2012, 3:54 PM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

Can we escalate this as a bug... ? I really need this feature.

27 Sep 2012, 3:58 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

27 Sep 2012, 4:02 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

Looking at /includes/templates/template_default/templates/tpl_page_default.php, nothing seems to have changed. The code only builds a TOC when there is more than one item in $pages_listing, but then it only shows the first item, as if there were only one (reaches EOF).
/includes/modules/pages/page/header_php.php, where $pages_listing is built, has not changed since 2006.

It certainly seems to be a bug... the question is, what could have changed to make it malfunction now when it used to work fine? Some default behavior of PHP?? Doesn't seem likely...

27 Sep 2012, 4:22 PM
#9
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

I have put it in bug reports...

27 Sep 2012, 4:24 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

A var_dump() of $pages_listing right after it is created shows only records for one page, when it ought to show multiple pages worth. Unfortunately, I don't have test sites for v1.3.9h or v1.5.0 any more to compare.

27 Sep 2012, 11:09 PM
#11
artworkz avatar

artworkz

New Zenner

Join Date:
Nov 2010
Location:
Fife, Scotland
Posts:
22
Plugin Contributions:
0

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

I have an earlier version of my site on another server...same setup exactly zen cart wise, which was working fine. I just visited this old one, which has sat quiet for about three months, and it is not working now. That hosting company (Justhosts) informed me a couple of months ago that they were upgrading their servers. Worked before the upgrade. Exactly the same toc problem now.

27 Sep 2012, 11:52 PM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

I have a very recent version of XAMPP for my v1.5.1 test site:

Server Host: localhost (127.0.0.1) Database Host: localhost (127.0.0.1)
Server OS: Windows NT GJH-LAP 6.1 build 7601 (Windows 7 Home Premium Edition Service Pack 1) i586
Database: MySQL 5.5.16
Server Date: 09/28/2012 01:46:26
Database Date: 09/27/2012 19:46:26
Server Up Time: Unsupported
HTTP Server: Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1
PHP Version: 5.3.8 (Zend: 2.3.0) PHP Memory Limit: 128M PHP Safe Mode: Off
PHP File Uploads: On Max Size: 128M POST Max Size: 8M
Database Data Size: 372 kB
Database Index Size: 510 kB

29 Sep 2012, 12:48 AM
#13
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,837
Plugin Contributions:
3

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

Hi,

Here's a very quick fix.

in includes/modules/pages/page/header_php.php

find the lines

$pages_ordering = $db->execute($pages_order_query);

$pages_listing = $db->execute($pages_order_query);

while (!$pages_ordering->EOF) {
  $vert_links[] = $pages_ordering->fields['pages_id'];
  $pages_ordering->MoveNext();
}

and change to

$pages_ordering = $db->execute($pages_order_query);

while (!$pages_ordering->EOF) {
  $vert_links[] = $pages_ordering->fields['pages_id'];
  $pages_ordering->MoveNext();
}

$pages_listing = $db->execute($pages_order_query);

It's a weird bug related to some object cloning/mysql resource weirdness !!
Still investigating further.

29 Sep 2012, 10:49 AM
#14
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,837
Plugin Contributions:
3

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

For those having problems with v139h, can I ask if you have data_diggers queryCache installed.

29 Sep 2012, 1:37 PM
#15
artworkz avatar

artworkz

New Zenner

Join Date:
Nov 2010
Location:
Fife, Scotland
Posts:
22
Plugin Contributions:
0

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

Hi Wilt...no query cache installed for me..have asked justhost to let me know what upgrades they did on the server...should hear soon

29 Sep 2012, 1:52 PM
#16
artworkz avatar

artworkz

New Zenner

Join Date:
Nov 2010
Location:
Fife, Scotland
Posts:
22
Plugin Contributions:
0

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

I did add recommended caching to my .htaccess file a couple of weeks ago on my current site....but my legacy site on justhost has none....the behaviour on both is the same

29 Sep 2012, 6:13 PM
#17
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,837
Plugin Contributions:
3

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

artworkz:

I did add recommended caching to my .htaccess file a couple of weeks ago on my current site....but my legacy site on justhost has none....the behaviour on both is the same

Not sure what you mean by 'recommended caching'

Do you have any other sql caching enabled.
e.g.
define('SQL_CACHE_METHOD', 'file');
or
define('SQL_CACHE_METHOD', 'database');

in your configure.php

29 Sep 2012, 7:04 PM
#18
artworkz avatar

artworkz

New Zenner

Join Date:
Nov 2010
Location:
Fife, Scotland
Posts:
22
Plugin Contributions:
0

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

both config defines are as follows
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/var/www/vhosts/us_big number.dynamiccloudserver.info/httpdocs/cache');

29 Sep 2012, 7:10 PM
#19
artworkz avatar

artworkz

New Zenner

Join Date:
Nov 2010
Location:
Fife, Scotland
Posts:
22
Plugin Contributions:
0

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

Just tried your fix Wilt, and it works a treat....thank you very much!!!

30 Sep 2012, 4:02 PM
#20
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,837
Plugin Contributions:
3

Re: [Fixed 1.6.0] ez pages toc links not displaying any more

artworkz:

Just tried your fix Wilt, and it works a treat....thank you very much!!!

K, thanks for the confirmation

Although it still leaves me a bit stumped as to the cause.

On my local machine, I get the error in v1.5.1, but not v139h or v150.

Can I just double confirm some stuff.

Firstly this is definitley a 139h site.
Secondly, you do not have datadiggers query cache installed
thirdly, do you have any other plugins installed that might alter the core queryFactory code.

sorry if I have asked those questions before, but just trying to eliminate some stuff, and find some commonality between those experiencing the problem.

And finally, on the fix that I posted. I'm glad it works for people, but at the moment I have no idea why it works :blink:
and that makes me sad :(