Problems, need help? Have a tip or advice? Post it here.
10 posts Page 1 of 1
Since upgrading all of my pages give me ERROR: Tag "input" 'name' contains invalid characters. (Only lowercase[a-z], numerals[0-9] hyphen and underscore permitted in the editor.


Can anyone please point me in the right direction everything was functional until I moved to the new version of Couch.

Re:

Hi!

Can you please post the code for your <input> and its corresponding editable region?

Regards,
GenXCoders
Image
where innovation meets technology

Here is the code
Code: Select all
<?php require_once( 'conch/cms.php' ); ?>
<cms:template title='Event Details'  clonable='1'>
   <cms:editable name='event_name' type='text'/>

   <cms:editable name='event_nmage' type='image'/>

   <cms:editable name='event_thumb' label='Thumbnail' desc='Upload Thumb image here' width='200' height='200' crop='1' type='image'/>

   <cms:editable name='event_details' type='richtext' />

   <cms:editable name='event_date' type='text' />
</cms:template>
<cms:if k_is_page>
<!doctype html>
<html class="no-js" lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>YogaLoft - Event Details</title>
    <meta name="description" content="Yogaloft, a shared yoga space in the heart of Temple Bar, Dublin. The space offers a classes in Vinyasa, Hatha, Pregnancy, Beginners, and Rocket for all levels.">
    <link rel="canonical" href="https://yogaloft.ie/event_details" />
    <link rel="stylesheet" href="/stylesheets/app.css" />
    <link href="//fonts.googleapis.com/css?family=Raleway:600,400,200" rel="stylesheet" type="text/css">
    <link href="//fonts.googleapis.com/css?family=Shadows+Into+Light" rel="stylesheet" type="text/css">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <script src="/bower_components/modernizr/modernizr.js"></script>
  </head>
  <body>
     <div class="contain-to-grid">
    <nav class="top-bar" data-topbar role="navigation">
  <ul class="title-area">
    <li class="name">
      <h1><a href="<cms:link masterpage='index.php' />"><img class="show-for-medium-up" src="../img/Yoga_Loft_Logo_Small.png"><strong class="show-for-small-only" style="color:#fff; padding: 0px 0px 0px 20px;">Yogaloft</strong></a></h1>
    </li>
     <!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
    <li class="toggle-topbar menu-icon"><a href="#"><span></span></a></li>
  </ul>

  <section class="top-bar-section">
    <!-- Right Nav Section -->
    <div class="right margin-nav">
         <cms:menu masterpage='classes.php' />
    </div>
  </section>
</nav>
     </div>



      <div class="half-hero" style="background-image: url(<cms:show Event_Image />);">
        <div class="row">
           <div class="large-12 columns secondary-text">
            <h4><cms:show event_name /></h4>
           </div>
        </div>
      </div>

      <div class="row blog">
        <div class="large-12 large-centered columns">
            <div class="row centered-text blog data-equalizer">
            <div class="large-12 large-centered columns">
                    <div class="row centered-text classes data-equalizer">
                        <div class="medium-12 large-12 columns data-equalizer-watch smallCircle">
                            <cms:show event_details />
                        </div>
               </div>
            </div>
         </div>
        </div>
      </div>

     <hr>
     <?php include_once('conch/snippets/foot.php') ?>


    <script src="/bower_components/jquery/dist/jquery.min.js"></script>
    <script src="/bower_components/foundation/js/foundation.min.js"></script>
    <script src="/bower_components/foundation/foundation.clearing.js"></script>
    <script src="/bower_components/foundation/foundation.equalizer.js"></script>
    <script src="/js/app.js"></script>
   <script>
       $(document).foundation();
   </script>
   <?php include_once('./analyticstracking.php') ?>
  </body>
</html>
<cms:else />
   <cms:embed 'events.php' />
</cms:if>
<?php COUCH::invoke(); ?>

Check your PM (Right hand Top Corner) in the menu with your username on it.
Image
where innovation meets technology

I am not getting any such error.

Nevertheless, I wanted to know why are you using *.php with boilerlates as a snipperts???
Image
where innovation meets technology

At the time I couldn't get the code inside to run correctly with out adding the .php

@DuzAwe, assuming you are getting the error on the site frontend (as opposed to the admin-panel), we'll have to find all <cms:input> tags in your code and one (or some) of them will likely have a capital letter in its 'name' parameter.

In the code that you posted, I couldn't spot any <cms:input> tags so probably you'll find them in the files being embedded (e.g. events.php). Could you please check?

If, however, you are getting the error within the admin-panel, then it is the <cms:editable> tags that need to be examined now for the same Capitalization issue.
In your posted code, no editable region appears to have the problem *but* I suspect that originally some of them must have had capital letters - to be specific I think it would be the region being referenced here -
<cms:show Event_Image />

I can't spot any matching editable region with that name but one is pretty close -
<cms:editable name='event_nmage' type='image'/>

I think you tried changing the cases latter but managed to misspell this one.
Could you please try naming it to 'event_image' instead of the current 'event_nmage'?

Please let me know it that helped.

Certainly Ill have a go at it, but it in the back end I am getting it. See attached video.

https://drive.google.com/file/d/0B7YbQl ... sp=sharing

Ok so that seems to have worked for every page but this one?

Code: Select all
<?php require_once( 'conch/cms.php' ); ?>
<cms:template title='Teacher Details'  clonable='1'>
   <cms:editable name='teacher_image' label='image' desc='Upload main image of property here' width='200' height='200' crop='1' type='image'/>

   <cms:editable name='teacher_style' type='text'/>

   <cms:editable name='teacher_details' type='richtext' />

   <cms:editable type='relation' name='class_image' masterpage='class_details.php' />

</cms:template>
<cms:if k_is_page>
<!doctype html>
<html class="no-js" lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>YogaLoft - Teachers</title>
    <meta name="description" content="Yogaloft, a shared yoga space in the heart of Temple Bar, Dublin. The space offers a classes in Vinyasa, Hatha, Pregnancy, Beginners, and Rocket for all levels.">
    <link rel="stylesheet" href="/stylesheets/app.css" />
    <link href="//fonts.googleapis.com/css?family=Raleway:600,400,200" rel="stylesheet" type="text/css">
    <link href="//fonts.googleapis.com/css?family=Shadows+Into+Light" rel="stylesheet" type="text/css">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <script src="/bower_components/modernizr/modernizr.js"></script>
  </head>
  <body>
     <div class="contain-to-grid">
    <nav class="top-bar" data-topbar role="navigation">
  <ul class="title-area">
    <li class="name">
      <h1><a href="<cms:link masterpage='index.php' />"><img class="show-for-medium-up" src="../img/Yoga_Loft_Logo_Small.png"><strong class="show-for-small-only" style="color:#fff; padding: 0px 0px 0px 20px;">Yogaloft</strong></a></h1>
    </li>
     <!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
    <li class="toggle-topbar menu-icon"><a href="#"><span></span></a></li>
  </ul>

  <section class="top-bar-section">
    <!-- Right Nav Section -->
    <div class="right margin-nav">
      <cms:menu masterpage='classes.php' />
    </div>
  </section>
</nav>
     </div>



      <div class="half-hero">
        <div class="row">
           <div class="large-12 columns secondary-text">
            <h4>Our Teachers</h4>
           </div>
        </div>
      </div>

        <div class="row">
         <div class="large-3 columns back">
            <a href="<cms:link masterpage='teachers.php'/>"><i class="fa fa-caret-square-o-left"></i>Back to teachers</a>
         </div>
      </div>

      <div class="row blog">
        <div class="large-12 large-centered columns">
            <div class="row blog data-equalizer">
                <div class="medium-12 large-12 columns centered-text data-equalizer-watch">
                    <img src="<cms:show teacher_image />">

                    <h3><cms:show k_page_title /></h3>

                    <p><cms:show teacher_style /></p>

                </div>

            </div>
            <div class="large-12 large-centered columns">
                    <div class="row classes data-equalizer">
                        <div class="medium-12 large-12 columns data-equalizer-watch">
                            <cms:show teacher_details />
                        </div>


               </div>
         </div>
        </div>
      </div>

      <div class="row centered-text classes data-equalizer squareimg">
       <hr>

      <h4>Classes</h4>

      <cms:related_pages 'class_image' >
      <a href="<cms:show k_page_link />">
        <div class="medium-3 large-3 columns data-equalizer-watch">

              <img src="<cms:show class_image />">

          <h4><cms:show k_page_title /></h4>

          <p><cms:show class_style/></p>

          </a>
   </div>
   </cms:related_pages>

     </div>



     <hr>
     <?php include_once('conch/snippets/foot.php') ?>


    <script src="/bower_components/jquery/dist/jquery.min.js"></script>
    <script src="/bower_components/foundation/js/foundation.min.js"></script>
    <script src="/bower_components/foundation/foundation.clearing.js"></script>
    <script src="/bower_components/foundation/foundation.equalizer.js"></script>
    <script src="/js/app.js"></script>
   <script>
       $(document).foundation();
   </script>
   <?php include_once('./analyticstracking.php') ?>
  </body>
</html>
<cms:else />
   <cms:embed 'teachers.php' />
</cms:if>
<?php COUCH::invoke(); ?>

This is still not working.
10 posts Page 1 of 1
cron