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
}
} ?>