Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Hi

I was setting up CouchCMS and everything was going fine, i even had my first page complete and was able to edit it etc. But when I started the next page, nothing was working. The page wouldn't show up in the admin panel, and when I tried to go to the new .php page, I got an error saying the site couldn't handle the request (HTTP ERROR 500). I then tried to see if the first page was still working, but I got the same error too. Does anyone know what I did wrong? I followed the same steps on the second page as I did the first but both just won't work now.

Any help would be appreciated. Thanks!
Hi :)

Could you please attach the problem template for us to take a look at?

Thanks.
This is the code for the page that originally worked

Code: Select all
<?php require_once( 'mo-login/cms.php' ); ?
<cms:template title='Ashbourne' />
<!doctype html>

<html>
<head>
<meta charset="utf-8">
<title>Ashbourne - Meath Online</title>

<link rel="stylesheet" href="css/style_site.css">
<script type="text/javascript" src="form.js"></script>
<link rel="shortcut icon" href="images/meath.ico" type="image/x-icon">
<link rel="icon" href="images/meath.ico" type="image/x-icon">
 
</head>

<body>
   <header>
       <a class="home" href="index.html"><img class="banner" src="headers/ashbourne.png" alt="trim castle" /></a>
       <div id="menu">
             <nav class="navbar">
                        <ul id="nav">
                     <li class="active-link"><a href="ashbourne.html">Ashbourne</a></li>
                            <li><a href="duleek.html">Duleek</a></li>
                            <li><a href="dunboyne.html">Dunboyne</a></li>
                            <li><a href="dunshaughlin.html">Dunshaughlin</a></li>
                            <li><a href="kells.html">Kells</a></li>
                            <li><a href="navan.html">Navan</a></li>
                            <li><a href="oldcastle.html">Oldcastle</a></li>
                            <li><a href="ratoath.html">Ratoath</a></li>
                            <li><a href="trim.html">Trim</a></li>
                        </ul>
                    </nav><!-- /main navigation -->
                 </div><!-- /menu -->   
      </header>
     
   <div class="container">
      <h2>Ashbourne</h2>
       
        <div class="news">
           <h3><a class="extra" href="news-ashbourne.html">Latest News</a></h3>
              <cms:editable name='latest_news' type='richtext'>
                <h4>Title</h4>
                <h5>Date</h5>
                   <p>Content</p>
                   
                    </cms:editable>
        </div><!-- /news -->
       
        <div class="what_to_do">
           <h3><a class="extra" href="what-to-do-ashbourne.html">What to Do</a></h3>
              <cms:editable name='what_to_do' type='richtext'>
                <h4>Title</h4>
                <h5>Date</h5>
                   <p>Content</p>
                   
                    </cms:editable>
        </div><!-- /what to do -->
       
        <div class="sports">
           <h3><a  class="extra"href="sports-ashbourne.html">Sports</a></h3>
              <cms:editable name='sports' type='richtext'>
                <h4>Title</h4>
                <h5>Date</h5>
                   <p>Content</p>
                   
                    </cms:editable>
        </div><!-- /sports -->
       
        <div class="restaurants">
           <h3><a class="extra" href="restaurants-ashbourne.html">Restaurants</a></h3>
              <cms:editable name='restaurants' type='richtext'>
                <h4>Title</h4>
                <h5>Date</h5>
                   <p>Content</p>
                   
                    </cms:editable>
        </div><!-- /restaurants -->
       
        <div class="shopping">
           <h3><a class="extra" href="shopping-ashbourne.html">Shopping</a></h3>
              <cms:editable name='shopping' type='richtext'>
                <h4>Title</h4>
                <h5>Date</h5>
                   <p>Content</p>
                   
                    </cms:editable>
        </div><!-- /restaurants -->
       
        <div class="upcoming_events">
           <h3><a class="extra" href="upcoming-events-ashbourne.html">Upcoming Events</a></h3>
              <cms:editable name='events' type='richtext'>
             
                   
                    </cms:editable>
        </div>
       
        <div class="historical">
           <h3><a class="extra" href="historical-ashbourne.html">Historical</a></h3>
              <cms:editable name='historical' type='richtext'>
                <h4>Title</h4>
                <h5>Date</h5>
                   <p>Content</p>
                   
                    </cms:editable>
        </div>
   </div><!-- /container -->
   
<footer>
      <div class="footer">
    <h3 class="links">USEFUL LINKS</h3>
       <div id="menu_footer">
           
             <nav class="navbar">
                        <ul id="nav1">
                        <li><a href="index.html">Home</a></li>
                         <li><a href="contact.html">Contact</a></li>
                       </ul>
             </nav>
        </div>
           <h3 class="social">SOCIAL MEDIA</h3>
          <a href="https://www.facebook.com/kellsonline.meath"><img src="images/FB-f-Logo__blue_29.png" alt="facebook logo" /></a>
             <br>
                <p>&copy; Meath Online 2016</p>
                   
                    <!--CONTACT FORM-->
      <div id="form">
      
        <h3 class="form">GET IN TOUCH</h3>

      <form name="contactForm" action="result.html" method="post" onSubmit="return checkInfo()" >


         <label><strong>Name:</strong></label>
             <br>
            <input type="text" name="name" id="name" placeholder="Enter first and last name" value=""/>
           
         <br>
         <br>

         <label><strong>Email:</strong></label>
           <br>
            <input type="text" name="usremail" id="email" placeholder="name@example.com" />
         <br>
         <br>
<!-- comment box -->
         
            <textarea name="comments" id="comments" rows="5" cols="30" value=""></textarea>
               
         <div id="buttons">
<!-- buttons -->
            <input type="submit"  name="submit" id="submit" value="Send"  placeholder="Your message here" style="margin-left:15px;" />
         </div>
      </form>
      </div>
    <!-- /form /div-->
         </div>
   </footer>
</body>
</html>
<?php COUCH::invoke(); ?>
Going by what you posted, the first line of code seems to be problematic -
It is now -
Code: Select all
<?php require_once( 'mo-login/cms.php' ); ?

It should actually be -
Code: Select all
<?php require_once( 'mo-login/cms.php' ); ?>

As you can see, there is a closing '>' missing in your code.

Hope it helps.
Ah I didn't even realise that! I fixed it and everything is working again.

Thanks so much for your help :)
You are welcome :)
6 posts Page 1 of 1