Problems, need help? Have a tip or advice? Post it here.
13 posts Page 1 of 2
I've followed the tutorial on your page and I'm getting this error:

Code: Select all
ERROR! ATTRIB_NAME: Invalid char "<" (line: 0 char: 43)


Any idea?
That is a generic couch syntax error. There is an improper use of a "<" character on line 0 character 43. If you can't find where the problem is, I'm sure I could help you if you post some of the code.
cheesypoof wrote: That is a generic couch syntax error. There is an improper use of a "<" character on line 0 character 43. If you can't find where the problem is, I'm sure I could help you if you post some of the code.

Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:content_type 'text/xml' /><cms:concat '<' '?xml version="1.0" encoding="' k_site_charset '"?' '>' />
<rss version="2.0">
    <channel>
        <title>Blog</title>
        <link><cms:show k_site_link /></link>
        <description>Articles and Discussions posted from</description>
        <language>en-us</language>
        <pubDate><cms:date format='D, d M Y H:i:s' gmt='1'/> EST</pubDate>
       <generator>Couch CMS</generator>
   <item>
   <cms:pages masterpage='blog/blog.php' limit="10">
            <title><cms:show k_page_title /></title>
            <link><cms:show k_page_link /></link>
            <description>
            <cms:html_encode>
                <cms:excerptHTML><cms:show blog_content /></cms:excerptHTML>
            </cms:html_encode>
        </description>
            <pubDate><cms:date k_page_date format='D, d M Y H:i:s' gmt='1'/> EST</pubDate>
        </item>
      </cms:pages>
   </channel>
</rss>
<?php COUCH::invoke(); ?>
Strange.. I copied/pasted your code into a template on my test machine and it is working without any errors.
Besides the fact that the opening 'item' tag should be placed after the opening 'pages' tag, there doesn't seem to be anything wrong with the rss page. I was able to get it running. Is there any problem on your blog page?
Saved it as without bom on both the blog.php and blog_list.php page. No change in status.
I have it set up the exact way the tutorial tells you except my blog is in a subfolder.

Which is why I have
Code: Select all
<cms:pages masterpage='blog/blog.php' limit="10">
@morkie

I logged-in using the creds you gave me earlier and this is your rss.php file
Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:content_type 'text/xml' /><cms:concat <' '?xml version="1.0" encoding="' k_site_charset '"?' '>' />
<rss version="2.0">
    <channel>
        <title>Blog</title>
        <link><cms:show k_site_link /></link>
        <description>Articles and Discussions posted from Clayton Nichols.</description>
        <language>en-us</language>
        <pubDate><cms:date format='D, d M Y H:i:s' gmt='1'/> EST</pubDate>
       <generator>Couch CMS</generator>
   
   <cms:pages masterpage='blog/blog.php' limit="10">
   <item>
            <title><cms:show k_page_title /></title>
            <link><cms:show k_page_link /></link>
            <description>
            <cms:html_encode>
                <cms:excerptHTML><cms:show blog_content /></cms:excerptHTML>
            </cms:html_encode>
        </description>
            <pubDate><cms:date k_page_date format='D, d M Y H:i:s' gmt='1'/> EST</pubDate>
        </item>
      </cms:pages>
   </channel>
</rss>
<?php COUCH::invoke(); ?>

The following line
<cms:concat <' '?xml version="1.0" encoding="' k_site_charset '"?' '>' />

has a quote missing.
Please make it
<cms:concat '<' '?xml version="1.0" encoding="' k_site_charset '"?' '>' />

and it should work.

Thanks
@KK

That worked, except now it leads me to a "page not found" page.
You are using PrettyURLs and, it seems, rss.php is not included in the .htaccess file being used.
Please regenerate the .htaccess file using gen_dump.php and the error should go away.
13 posts Page 1 of 2
cron