Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
I'm receiving the following error message on my home page "index.php":

ERROR! ATTRIB_NAME: Invalid char "" (line: 1 char: 131)


Here is the code in index.php:

Code: Select all
<?php require_once( 'qwerty/cms.php' ); ?>
<cms:template title='Main Template' clonable='1'>
   <cms:editable name='content' label='Content' desc='Enter the page's content here' type='richtext' />
</cms:template>
<cms:embed 'doctype.txt' />
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
      <title><cms:show k_page_title /> - MSU Jazz Studies</title>
      <meta name="description" content="<cms:embed 'description.txt' />" />
      <meta name="keywords" content="<cms:embed 'keywords.txt' />" />
      <link rel="stylesheet" href="style.css" type="text/css" />
   </head>
   <body>
      <div id="container">
         <div id="header">
            <cms:embed 'header.txt' />
         </div>
         <div id="content">
            <div id="navigation">
               <cms:menu masterpage='index.php' depth='1' />
               <div id="social">
                  <cms:embed 'social.txt' />
               </div>
            </div>
            <h1><cms:show k_page_title /></h1>
            <cms:show content />
         </div>
         <div id="footer">
            <cms:embed 'footer.txt' />
         </div>
      </div>
   </body>
</html>
<?php COUCH::invoke(); ?>
Hi and welcome @StatsEthan,

The problematic character should be in your editable region definition (in red):
<cms:editable name='content' label='Content' desc='Enter the page's content here' type='richtext' />

You can escape the single quote within the desc parameter or use double quotes:
Code: Select all
<cms:editable name='content' label='Content' desc='Enter the page\'s content here' type='richtext' />
OR
<cms:editable name='content' label='Content' desc="Enter the page's content here" type='richtext' />

Let us know if that helps.
cheesypoof wrote: Hi and welcome @StatsEthan,

The problematic character should be in your editable region definition (in red):
<cms:editable name='content' label='Content' desc='Enter the page's content here' type='richtext' />

You can escape the single quote within the desc parameter or use double quotes:
Code: Select all
<cms:editable name='content' label='Content' desc='Enter the page\'s content here' type='richtext' />
OR
<cms:editable name='content' label='Content' desc="Enter the page's content here" type='richtext' />

Let us know if that helps.


I'm facepalming right now, I can't believe I did that. :oops:

Thank you!
3 posts Page 1 of 1