
Originally Posted by
Nick1973
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