Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hey guys,

I've started a new project using couch, it's coming along quite nicely, a lot more smoothly since my first one (thank you kk). However, i have ran into a bit of a road bump here. I believe it is a simple, stupid mistake I've made in my code, but I'm not seeing it.

What I have is a product listing page for a greenhouse site I am working on. It has multiple blocks listing entries from folders for the different types of plants the greenhouse sells. Each block, aside from location on the page, is identical in code.

Everything was going great in the roughing out. I only had one block to test everything, things were showing up just fine and no errors. When I copy/pasted the code and edited to check the different folders, I ran into the following error :

ERROR! Closing tag "pages" has no matching opening tag (line: 108 char: 5509)

I've checked each and every <cms:pages .... > and </cms:pages> tag, they open and close in order and there aren't any out of place.

Here is my code
Code: Select all
<?php require_once( 'couch/cms.php' );
require_once( K_COUCH_DIR.'includes/ckeditor/ckeditor.php' );
require_once( K_COUCH_DIR.'includes/timthumb.php' );
require_once( K_COUCH_DIR.'field.php' );
require_once( K_COUCH_DIR.'folder.php' );
?>
<cms:template title='Products' clonable='1' dynamic_folders='1' />
<cms:set pagename='Products' />
<cms:editable name='main_content' type='nicedit' />
<cms:editable name='prd_img' type='image' label='Picture of Product' desc='Unedited Picture of Product here' />
<cms:editable name='lrg_thumb' type='thumbnail' width='200' height='200' assoc_field='prd_img' show_preview='1' />
<cms:editable name='sml_thumb' type='thumbnail' width='65' height='65' assoc_field='prd_img' show_preview='1' />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sandra's Greenhouse</title>
<link rel="stylesheet" type="text/css" href="dropdown.css" />
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>

<body>
<?php include"top.html" ?>
<!-- Body -->
<div class="body">
    <!-- Section Title --><div style="margin-left: auto; margin-right: auto; margin-top: 40px; margin-bottom: 40px; width: 900px; text-align: right; padding-right: 40px;">
    <font class="shadowtitle" style="font-size: 40px; color: white">Our Products</font>
    </div>
    <!-- End Section Title -->
   
    <!-- Single Page -->
    <cms:if k_is_page>
    <div class="boxstyle" style="width: 900px; margin-left: auto; margin-right: auto; margin-top: 40px; margin-bottom: 40px;">
        <p style="display: block;">
            <div class="imgbox" style="float:left; display: block; margin: 10px; width: 200px; height: 200px; background-color: #ccc"><img src="<cms:show lrg_thumb />" style="imgborder" width=200 height=200 /></div>
         
            <h3><cms:show k_page_title /></h3>
            <p><cms:show main_content /></p>
            <div style="clear: left"></div>
        </p>
    </div>
   
<!-- End single page -->

<!-- Product Listing -->
    <cms:else />
    <div style="margin-left: auto; margin-right: auto; margin-top: 40px; display: table; width: 930px;">
        <!-- Flowers -->
        <div class="boxstyle" style="width: 300px; margin-right: 10px; float: left;">
            <div style="position: absolute; margin-left: -10px; margin-top: -40px;"><img src="images/trucktrailer.png" width="150" /></div>
            <div class="navtitle" style="padding-right: 10px; font-size: 18px;">Flowers&nbsp;&nbsp;</div>
            <cms:pages masterpage='product.php' folder='flowers' show_future_entries='1' order='ASC'>
            <div class="naventry">
                <div class="imgbox" style="width: 68px;"><img class="imgborder" src="<cms:show sml_thumb />" width=40 />
                </div>
                <div class="naventry_date" style="font-size: 16px;"><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></div>
            </div>
            </cms:pages>
        </div>
       <!-- End Flowers -->
       
       <!-- Fruits -->
        <div class="boxstyle" style="width: 300px; margin-right: 10px; float: left;">
        <div style="position: absolute; margin-left: -10px; margin-top: -40px;"><img src="images/trucktrailer.png" width="150" /></div>
            <div class="navtitle" style="padding-right: 10px; font-size: 18px;">Fruits&nbsp;&nbsp;</div>
            <cms:pages masterpage='product.php' folder='fruits' show_future_entries='1' order='ASC'>
            <div class="naventry">
                <div class="imgbox" style="width: 68px;"><img class="imgborder" src="<cms:show sml_thumb />" width=40 />
                </div>
                <div class="naventry_date" style="font-size: 16px;"><a href="<cms:show k_page_link>"><cms:show k_page_title /></a></div>
            </div>
            </cms:pages>
        </div>
        <!-- End Fruits -->
       
        <!-- Vegetables -->
        <div class="boxstyle" style="width: 300px; margin-right: 10px; float: left;">
        <div style="position: absolute; margin-left: -10px; margin-top: -40px;"><img src="images/trucktrailer.png" width="150" /></div>
            <div class="navtitle" style="padding-right: 10px; font-size: 18px;">Vegetables&nbsp;&nbsp;</div>
            <cms:pages masterpage='product.php' folder='vegetables' show_future_entries='1' order='ASC'>
            <div class="naventry">
                <div class="imgbox" style="width: 68px;"><img class="imgborder" src="<cms:show sml_thumb />" width=40 />
                </div>
                <div class="naventry_date" style="font-size: 16px;"><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></div>
            </div>
            </cms:pages>
        </div>
        <!-- End Vegetables -->
    </div><br />
<br />

    <div style="margin-left: auto; margin-right: auto; padding-top: 40px; display: table; margin-bottom: 40px; width: 620px;">
        <!-- Peppers -->
        <div class="boxstyle" style="width: 300px; margin-right: 10px; float: left;">
        <div style="position: absolute; margin-left: -10px; margin-top: -40px;"><img src="images/trucktrailer.png" width="150" /></div>
            <div class="navtitle" style="padding-right: 10px; font-size: 18px;">Peppers&nbsp;&nbsp;</div>
            <cms:pages masterpage='product.php' folder='peppers' show_future_entries='1' order='ASC'>
            <div class="naventry">
                <div class="imgbox" style="width: 68px;"><img class="imgborder" src="<cms:show sml_thumb />" width=40 />
                </div>
                <div class="naventry_date" style="font-size: 16px;"><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></div>
            </div>
            </cms:pages>
        </div>
        <!-- End Peppers -->
       
        <!-- Herbs -->
        <div class="boxstyle" style="width: 300px; margin-right: 10px; float: left;">
        <div style="position: absolute; margin-left: -10px; margin-top: -40px;"><img src="images/trucktrailer.png" width="150" /></div>
            <div class="navtitle" style="padding-right: 10px; font-size: 18px;">Herbs&nbsp;&nbsp;</div>
            <cms:pages masterpage='product.php' folder='herbs' show_future_entries='1' order='ASC'>
            <div class="naventry">
                <div class="imgbox" style="width: 68px;"><img class="imgborder" src="<cms:show sml_thumb />" width=40 />
                </div>
                <div class="naventry_date" style="font-size: 16px;"><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></div>
            </div>
            </cms:pages>
        </div>
        <!-- End Herbs -->
    </div>
    </cms:if>
<!-- End Product Listing -->   

</div>
<!-- End body -->
<?php include"subscribe.html"; ?>
<?php include"bottom.html"; ?>
</body>
</html>
<?php COUCH::invoke(); ?>


I don't know where I'm going wrong here, any help would be very much appreciated! I'm pretty sure it's something simple, and just requires a fresh set of eyes.
Figured it out, I saw the unclosed <cms:show k_page_link /> in fruits section. Close thread!
2 posts Page 1 of 1
cron