Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    Default Re: ezpages not showing

    I have this problem too.

    When I click on an EZ Page it isn't showing any content and when I go into debug it show

    Call to a member function RecordCount() on a non-object in tpl_page_default.php on line 32

    I've checked tpl_page_default.php and it would appear to be somewhere in this code:

    <?php if (EZPAGES_SHOW_PREV_NEXT_BUTTONS=='2' and $counter > 1) { ?>
    <div id="navEZPageNextPrev">
    <a href="<?php echo $prev_link; ?>"><?php echo $previous_button; ?></a>
    <?php echo zen_back_link() . $home_button; ?></a>
    <a href="<?php echo $next_link; ?>"><?php echo $next_item_button; ?></a>
    </div>
    <?php } elseif (EZPAGES_SHOW_PREV_NEXT_BUTTONS=='1') { ?>
    <div id="navEZPageNextPrev"><?php echo zen_back_link() . $home_button . '</a>'; ?></div>
    <?php } ?>

    <?php

    // vertical TOC listing
    // create a table of contents for chapter when more than 1 page in the TOC
    if ($pages_listing->RecordCount() > 1 and EZPAGES_SHOW_TABLE_CONTENTS == '1') {?>

    I've been in the database and checked there, uploaded an ORIGINAL zen cart 1.5.3 tpl_page_default.php, tried overwriting includes/modules/pages/page/header_php.php with an original file. Still no luck!

    Looking at the html code on the page it stops just after <div class="centerColumn" id="ezPageDefault"> and is blank.

    Can you shed any light on this please?

    Thank You

    Nick
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  2. #2
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: ezpages not showing

    Quote Originally Posted by Nick1973 View Post
    I have this problem too.

    When I click on an EZ Page it isn't showing any content and when I go into debug it show

    Call to a member function RecordCount() on a non-object in tpl_page_default.php on line 32

    I've checked tpl_page_default.php and it would appear to be somewhere in this code:

    <?php if (EZPAGES_SHOW_PREV_NEXT_BUTTONS=='2' and $counter > 1) { ?>
    <div id="navEZPageNextPrev">
    <a href="<?php echo $prev_link; ?>"><?php echo $previous_button; ?></a>
    <?php echo zen_back_link() . $home_button; ?></a>
    <a href="<?php echo $next_link; ?>"><?php echo $next_item_button; ?></a>
    </div>
    <?php } elseif (EZPAGES_SHOW_PREV_NEXT_BUTTONS=='1') { ?>
    <div id="navEZPageNextPrev"><?php echo zen_back_link() . $home_button . '</a>'; ?></div>
    <?php } ?>

    <?php

    // vertical TOC listing
    // create a table of contents for chapter when more than 1 page in the TOC
    if ($pages_listing->RecordCount() > 1 and EZPAGES_SHOW_TABLE_CONTENTS == '1') {?>

    I've been in the database and checked there, uploaded an ORIGINAL zen cart 1.5.3 tpl_page_default.php, tried overwriting includes/modules/pages/page/header_php.php with an original file. Still no luck!

    Looking at the html code on the page it stops just after <div class="centerColumn" id="ezPageDefault"> and is blank.

    Can you shed any light on this please?

    Thank You

    Nick
    This is a bug with 1.5.3. I have seen a fix posted for this on the forum. If you do a search you will find the thread. I'll try to find it also. A bandaid fix would be to upload the includes/modules/pages/page/header_php.php file from version 1.5.1


    Thanks,

    Anne
    Last edited by picaflor-azul; 1 Oct 2014 at 08:22 PM.

  3. #3
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    Default Re: ezpages not showing

    Yeah I tried that Anne, didn't work unfortunately. Thanks for the reply.
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  4. #4
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: ezpages not showing

    Quote Originally Posted by Nick1973 View Post
    Yeah I tried that Anne, didn't work unfortunately. Thanks for the reply.
    Hi Anne, I have resolved this now.

    I came back to it with a fresh head and tried uploading a 1.5.1 version of includes/modules/pages/page/header_php.php and it worked.

    I think I probably had a caching issue which was probably stopping the change showing up in my browser. I also deleted the 1.5.3 version of the above file first rather than overwriting it as I found that trying to overwrite it didn't do anything.

    However, while this fixes the issue it is obviously a bug and I would have thought needs addressing as I did notice differences in the 1.5.3 file.
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: ezpages not showing

    Quote Originally Posted by picaflor-azul View Post
    This is a bug with 1.5.3. I have seen a fix posted for this on the forum. If you do a search you will find the thread. I'll try to find it also. A bandaid fix would be to upload the includes/modules/pages/page/header_php.php file from version 1.5.1


    Thanks,

    Anne
    I think this may be the fix you were meaning ... but I'm not sure it fixes the posted issue https://github.com/zencart/zencart/pull/152/files

    I don't believe the symptoms posted in this thread are actually a ZC bug, but merely an incompatibility between versions.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: ezpages not showing

    The ez-pages template for v1.5.1 is NOT compatible with v1.5.3, because of core changes to ez-pages required to fix other errors that were troublesome in 151.

    So, if you're using a custom template built for v1.5.1 on a v1.5.3 site, you'll need to re-customize your tpl_page_default.php file ...

    Code:
    // vertical TOC listing// create a table of contents for chapter when more than 1 page in the TOC
      if ($pages_listing->RecordCount() > 1 and EZPAGES_SHOW_TABLE_CONTENTS == '1') {?>
    <div id="navEZPagesTOCWrapper">
    <h2 id="ezPagesTOCHeading"><?php echo TEXT_EZ_PAGES_TABLE_CONTEXT; ?></h2>
    <div id="navEZPagesTOC">
    <ul>
    <?php while (!$pages_listing->EOF) {
    // could be used to change classes on current link and toc (table of contents) links
          if ($pages_listing->fields['pages_id'] == $_GET['id']) { ?>
    
    
    <li><?php echo CURRENT_PAGE_INDICATOR; ?><a href="<?php echo zen_ez_pages_link($pages_listing->fields['pages_id']);?>"><?php echo $pages_listing->fields['pages_title']; ?></a></li>
    
    
    <?php } else { ?>
    
    
    <li><?php echo NOT_CURRENT_PAGE_INDICATOR; ?><a href="<?php echo  zen_ez_pages_link($pages_listing->fields['pages_id']); ?>"><?php echo $pages_listing->fields['pages_title']; ?></a></li>
    <?php
          }
          $pages_listing->MoveNext();
        } ?>
    becomes
    Code:
    // vertical TOC listing
    // create a table of contents for chapter when more than 1 page in the TOC
      if (sizeof($toc_links) > 1 and EZPAGES_SHOW_TABLE_CONTENTS == '1') {?>
    <div id="navEZPagesTOCWrapper">
    <h2 id="ezPagesTOCHeading"><?php echo TEXT_EZ_PAGES_TABLE_CONTEXT; ?></h2>
    <div id="navEZPagesTOC">
    <ul>
    <?php foreach($toc_links as $link) {
    // could be used to change classes on current link and toc (table of contents) links
          if ($link['pages_id'] == $_GET['id']) { ?>
    
    
    <li><?php echo CURRENT_PAGE_INDICATOR; ?><a href="<?php echo zen_ez_pages_link($link['pages_id']);?>"><?php echo $link['pages_title']; ?></a></li>
    
    
    <?php } else { ?>
    
    
    <li><?php echo NOT_CURRENT_PAGE_INDICATOR; ?><a href="<?php echo zen_ez_pages_link($link['pages_id']); ?>"><?php echo $link['pages_title']; ?></a></li>
    <?php
          }
        } ?>
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    Default Re: ezpages not showing

    I will keep this in mind for future reference.

    However, I'm not sure this is totally an incompatibility issue as it happened on a clean install with the correct PHP version and Mysql version.
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

 

 

Similar Threads

  1. ezpages not showing
    By Kitty in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Sep 2010, 04:29 PM
  2. EZPages Not showing text that i write?!
    By Nove in forum General Questions
    Replies: 1
    Last Post: 29 Jun 2010, 10:20 AM
  3. EZpages not showing?
    By TrulieBliss in forum General Questions
    Replies: 5
    Last Post: 28 Sep 2008, 10:46 PM
  4. ezpages content not showing up
    By tracyselena in forum General Questions
    Replies: 0
    Last Post: 19 Jun 2008, 06:34 PM
  5. ezpages not showing up in sitemap
    By humbll in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Aug 2007, 11:14 PM

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