Problems, need help? Have a tip or advice? Post it here.
13 posts Page 1 of 2
Hi,
I'm a new user of Couch. And I working on a mac with MAMP.
I followed correctly the tutorial but I cannot managed to make appear my pages in the couch interface.
I've tried several different pages on different browsser (Chrome, firefox and safari).
Does anyone have an idea where is the problem?

thanks
Hi,

Are you sure you visited your templates in your browser while being logged in as the super-admin? This step is necessary for the templates to be picked up by Couch.

If you are sure about it, can you post in the template code that you are using?
Yes I'm correctly logged with my super-admin account

here is the code:
Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:template title='About Us' />
<!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>
   <title><cms:get_custom_field 'site_name' masterpage='globals.php' /> | About Us</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   
   <!-- Stylesheets -->
   <link rel="stylesheet" href="<cms:show k_site_link />css/reset.css" />
   <link rel="stylesheet" href="<cms:show k_site_link />css/styles.css" />
   
   <!-- Scripts -->
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
   <!--[if IE 6]>
   <script src="js/DD_belatedPNG_0.0.8a-min.js"></script>
   <script>
     /* EXAMPLE */
     DD_belatedPNG.fix('.button');
    
     /* string argument can be any CSS selector */
     /* .png_bg example is unnecessary */
     /* change it to what suits you! */
   </script>
   <![endif]-->
   
</head>

<body>

   <div id="wrapper" class="container_12 clearfix">

      <cms:embed 'header.html' />
      
      <div class="hr grid_12 clearfix">&nbsp;</div>
         
      <!-- Caption Line -->
      <h2 class="grid_12 caption"><cms:get_custom_field 'about_caption' masterpage='globals.php' /></h2>
      
      <div class="hr grid_12 clearfix">&nbsp;</div>

      <!-- Column 1 / Content -->
      <cms:editable name='main_content' type='richtext'>
      <div class="grid_8">
         <h4 class="page_title">Our mission</h4>
         <div class="hr dotted clearfix">&nbsp;</div>
         <p><i>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</i></p>
         <h4 class="page_title">So who are we?</h4>
         <div class="hr dotted clearfix">&nbsp;</div>
         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
         <h4 class="page_title">Staff</h4>
         <div class="hr dotted clearfix">&nbsp;</div>
         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
         <h4 class="page_title">Clients</h4>
         <div class="hr dotted clearfix">&nbsp;</div>
         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor. Phasellus cursus augue ac purus. Curabitur faucibus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
         
      </div>
      </cms:editable>
      
      <!-- Column 2 / Sidebar -->
      <cms:editable name='sidebar_content' type='richtext'>
      <div class="grid_4">
      
         <h4>Our History</h4>
         <div class="hr dotted clearfix">&nbsp;</div>
         <dl class="history">
            <dt>1994</dt>
            <dd>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor.</dd>
         
            <dt>1996</dt>
            <dd>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor.</dd>
         
            <dt>2000</dt>
            <dd>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor.</dd>
         
            <dt>2003</dt>
            <dd>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor.</dd>
         
            <dt>2009</dt>
            <dd>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vel diam id mauris accumsan egestas. Sed sed lorem. Integer id mi vel sapien fermentum vehicula. Pellentesque vitae lacus a sem posuere fringilla. Vestibulum dolor.</dd>
         </dl>
      </div>
      </cms:editable>

      <div class="hr grid_12 clearfix">&nbsp;</div>
      
      <!-- Footer -->
      <p class="grid_12 footer clearfix">
         <span class="float"><b>&copy; Copyright</b> <a href="">QwibbleDesigns</a> - remove upon purchase.</span>
         <a class="float right" href="#">top</a>
      </p>
      
   </div><!--end wrapper-->

</body>
</html>
<?php COUCH::invoke(); ?>
Hi,

I tried out the template and everything is working fine for me.

This is really strange and I'd like to investigate it further.
Had you not been on local host, I would have done this by logging in myself.
Since that will not be possible, I can only shoot in the dark.
Can you let me know that when you access the template, what is the output you get?

thanks
The output?
On the Couch interface nothing happens, I just have the message "no templates are beeing managed by this CMS"
I've also tried with another database and the issue still persist

thanks
I meant the output you get when you execute the template in browser e.g. if the template was 'about.php', the output on running 'http://www.yoursite.com/about.php' (being logged in as super-admin).
Does it show you the HTML ok? Any errors?
interresting, I have "page not found"
Therein lies the problem.
The template needs to be executed once by the super-admin for Couch to pick it up.

As to why the page is not being found by your web server in MAMP stack, we'll need to troubleshoot it.
Couch has nothing to do with the problem as it has not even been invoked yet.

Once again, since you are on your localhost, unfortunately it is only you who can troubleshoot your web server.
OK, let us try this once again-

Go to your admin panel (http://www.yoursite.com/couch/)
If already logged in, logout.
Login as the super-admin (the account you created while installing couch).
The admin panel should say 'No templates managed'. That is ok.
Open another tab (or another instance) of the same browser.
Now access your template (e.g. http://www.yoursite.com/about.php).

Please let me know what you get.

Thanks.
Great it works now. (I made nothing more special than before)

thanks very much and have a nice week end
13 posts Page 1 of 2