Hi

I am now adding a blog to the couchcms demo site and followed the blog tutorials but got this error showing and bit unsure how to solve this one as all the tags look correct

ERROR! OPERATOR: Invalid char "\" (line: 140 char: 2089)

I have the blog.php file and it's coding below

Code: Select all
<?php require_once( 'cms/cms.php' ); ?>
<cms:template title='Blog' clonable='1' commentable='0' order='7'>
   <cms:editable name='blog_content' type='richtext' />
   
   <cms:editable name='blog_image'
      crop='1'
      width='610'
      height='150'
      type='image'
   />
   
</cms:template>

<cms:if k_is_page >

<!DOCTYPE html>
<html lang="en">

  <head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

   <title>Blog</title>

    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="css/styles.css" type="text/css" />

    <!-- Custom styles for this template -->
    <link rel="stylesheet" href="css/heroic-features.php?v=<cms:show k_page_modification_date />" type="text/css" />

   <link href="css/bootstrap-4-hover-navbar.css" rel="stylesheet">

  </head>

  <body>

   <cms:embed 'menu.html' />

    <!-- Page Content -->
    <div class="container">

      <div class="row">

        <!-- Post Content Column -->
        <div class="col-lg-8">

          <!-- Title -->
          <h1 class="mt-4"><cms:show k_page_title /></h1>

          <hr>

         <cms:if k_page_foldertitle >
               <cms:set my_category=k_page_foldertitle />
            <cms:else />
               <cms:set my_category='Uncategorised' />
            </cms:if>

          <!-- Date/Time -->
          <p>Posted on <cms:date k_page_date format='jS M, y'/></p>

          <hr>

          <!-- Preview Image -->
          <img class="img-fluid rounded" src="<cms:show blog_image />" alt="">

          <hr>

          <!-- Post Content -->
          <p class="lead">
          <cms:show blog_content />
          </p>

          <hr>

        </div>

        <!-- Sidebar Widgets Column -->
        <div class="col-md-4">

          <!-- Side Widget -->
          <div class="card my-4">
            <h5 class="card-header">Side Widget</h5>
            <div class="card-body">
              You can put anything you want inside of these side widgets. They are easy to use, and feature the new Bootstrap 4 card containers!
            </div>
          </div>

        </div>

      <a href="<cms:link masterpage='blog.php' />" class="button float" >&lt;&lt; Back to Blog</a>

      </div>
      <!-- /.row -->

      <cms:else />
   <cms:embed 'blog_list.html' />
   </cms:if>

    </div>
    <!-- /.container -->

    <!-- Footer -->
    <footer class="py-5 bg-dark">
      <div class="container">
        <p class="m-0 text-center text-white">Copyright &copy; Your Website 2018</p>
        <br>
        <cms:embed 'socialmedia.html' />
      </div>
      <!-- /.container -->
    </footer>

        <script src="js/bootstrap-4-hover-navbar.js"></script>

  </body>

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


Below is the blog_list.html file coding that is in the couchcms snippets folder

Code: Select all
<!DOCTYPE html>
<html lang="en">

  <head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

   <title>Blog Articles</title>

    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="css/styles.css" type="text/css" />

    <!-- Custom styles for this template -->
    <link rel="stylesheet" href="css/heroic-features.php?v=<cms:show k_page_modification_date />" type="text/css" />

   <link href="css/bootstrap-4-hover-navbar.css" rel="stylesheet">

  </head>

  <body>

   <cms:embed 'menu.html' />

    <!-- Page Content -->
    <div class="container">

      <div class="row">

        <!-- Blog Entries Column -->
        <div class="col-md-8">

          <h1 class="my-4">Blog</h1>
          <!-- Blog Post -->
          <div class="card mb-4">
         
          <cms:pages masterpage='blog.php'
                  folder=k_folder_name
                  start_on=k_archive_date
                  stop_before=k_next_archive_date
                  paginate='1'
                  limit='3' >
         
            <img class="card-img-top" src="<cms:show blog_image />" alt="">
            <div class="card-body">         
              <h2 class="card-title"><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></h2>
              <p class="card-text"><cms:excerptHTML count='75' ignore='img'><cms:show blog_content /></cms:excerptHTML></p>
              <a href="<cms:show k_page_link />" class="btn btn-primary">Read More &rarr;</a>
            </div>
            <div class="card-footer text-muted">
              <cms:date k_page_date format='jS M, y'/>
            </div>
          </div>
         
         <cms:if k_paginated_bottom >
          <!-- Pagination -->
          <ul class="pagination justify-content-center mb-4">
          <li class="page-item">
          <cms:if k_paginate_link_next >
              <a class="page-link" href="<cms:show k_paginate_link_next \>">Newer &rarr;</a>
          </cms:if>
            </li>
            <li class="page-item disabled">
            <cms:if k_paginate_link_prev >
              <a class="page-link" href="<cms:show k_paginate_link_prev \>">&larr; Older</a>
            </cms:if>
            </li>
          </ul>
         </cms:if>
       
        </cms:pages >
       
        </div>

        <!-- Sidebar Widgets Column -->
        <div class="col-md-4">

          <!-- Side Widget -->
          <div class="card my-4">
            <h5 class="card-header">Side Widget</h5>
            <div class="card-body">
              You can put anything you want inside of these side widgets. They are easy to use, and feature the new Bootstrap 4 card containers!
            </div>
          </div>

        </div>

      </div>
      <!-- /.row -->

    </div>
    <!-- /.container -->

    <!-- Footer -->
    <footer class="py-5 bg-dark">
      <div class="container">
        <p class="m-0 text-center text-white">Copyright &copy; Your Website 2018</p>
        <br>
        <cms:embed 'socialmedia.html' />
      </div>
      <!-- /.container -->
    </footer>

        <script src="js/bootstrap-4-hover-navbar.js"></script>

  </body>

</html>


Thank you in advance

UPDATE: I have solved it, I noticed a / was the wrong way, I had it as \ on these lines below

Code: Select all
 <a class="page-link" href="<cms:show k_paginate_link_next />">Newer &rarr;</a>
<a class="page-link" href="<cms:show k_paginate_link_prev />">&larr; Older</a>