• 0

Cutenews RSS Feed


Question

OK, I am using the Cutenews RSS feed script found at

http://cutephp.com/forum/index.php?showtopic=49

but I am getting errors because of something cutenews does automatically. How can I stop it form doing it?

To see the error go to http://timrogers.host-dot.com/blog/cutenews/rss.php

Link to comment
https://www.neowin.net/forum/topic/307058-cutenews-rss-feed/
Share on other sites

15 answers to this question

Recommended Posts

  • 0
OK, I am using the Cutenews RSS feed script found at

http://cutephp.com/forum/index.php?showtopic=49

but I am getting errors because of something cutenews does automatically. How can I stop it form doing it?

To see the error go to http://timrogers.host-dot.com/blog/cutenews/rss.php

585753736[/snapback]

Because the start tag is <title> but ends in </channel>

Looks pretty straight foward to me. Either you are missing </title> somewhere or you are missing <channel>

You could probably just have posted the source to the file that was erroring and then someone could have pointed out exactly where for you.

  • 0

I added a channel tag at the start, now I'm getting a different error:

The XML page cannot be displayed 
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. 


--------------------------------------------------------------------------------

A semi colon character was expected. Error processing resource 'http://timrogers.host-dot.com/blog/cutenews/rss.php'. Line...

&lt;link&gt;http://timrogers.host-dot.com/cutenews/show_news.php?subaction=showfull&amp;id=1111916746&amp;archive=&lt;/link&amp;...

and this is the code in the active news section:

&lt;channel&gt;
&lt;item&gt;
&lt;title&gt;{title}&lt;/title&gt;
&lt;link&gt;http://timrogers.host-dot.com/cutenews/show_news.php?subaction=showfull&amp;id={news-id}&amp;archive={archive-id}&lt;/link&gt;
&lt;description&gt;&lt;![CDATA[{short-story}]]&gt;&lt;/description&gt;
&lt;/item&gt;

Now what?

  • 0
I added a channel tag at the start, now I'm getting a different error:

The XML page cannot be displayed 
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. 
--------------------------------------------------------------------------------

A semi colon character was expected. Error processing resource 'http://timrogers.host-dot.com/blog/cutenews/rss.php'. Line...

&lt;link&gt;http://timrogers.host-dot.com/cutenews/show_news.php?subaction=showfull&amp;id=1111916746&amp;archive=&lt;/link&amp;...

585754892[/snapback]

Your <link& is the problem. Change that to:

&lt;link&gt;http://timrogers.host-dot.com/cutenews/show_news.php?subaction=showfull&amp;id=1111916746&amp;archive=&lt;/link&gt;

  • 0

Root, I've done what you said, so now the code is:

&lt;channel&gt;
&lt;item&gt;
&lt;title&gt;{title}&lt;/title&gt;
&lt;link&gt;http://timrogers.host-dot.com/cutenews/show_news.php?subaction=showfull&amp;id;=1111916746&amp;archive=&lt;/link&gt;
&lt;description&gt;&lt;![CDATA[{short-story}]]&gt;&lt;/description&gt;
&lt;/item&gt;

But still I am getting the error:

The XML page cannot be displayed 
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. 


--------------------------------------------------------------------------------

A semi colon character was expected. Error processing resource 'http://www.timrogers.host-dot.com/blog/cutenews/rss.php'. Line 12, Position 81 

&lt;link&gt;http://timrogers.host-dot.com/cutenews/show_news.php?subaction=showfull&amp;id=1111916746&amp;archive=&lt;/link&gt;
--------------------------------------------------------------------------------^

Now what?

  • 0

And now were back to:

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

--------------------------------------------------------------------------------

End tag 'channel' does not match the start tag 'title'. Error processing resource 'http://www.timrogers.host-dot.com/blog/c...

<!-- News Powered by CuteNews: http://cutephp.com/ --></channel></rss>

----------------------------------...

  • 0
And now were back to:

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

--------------------------------------------------------------------------------

End tag 'channel' does not match the start tag 'title'. Error processing resource 'http://www.timrogers.host-dot.com/blog/c...

<!-- News Powered by CuteNews: http://cutephp.com/ --></channel></rss>

----------------------------------...

585759527[/snapback]

If you want just attach the php file here and someone will take a look at it. At least I will.

  • 0

Here is the code on the RSS template:

&lt;channel&gt;
&lt;item&gt;
&lt;title&gt;{title}&lt;/title&gt;
&lt;link&gt;http://timrogers.host-dot.com/cutenews/show_news.php?subaction=showfull&amp;id;=1111916746&amp;archive=&lt;/link&gt;
&lt;description&gt;&lt;![CDATA[{short-story}]]&gt;&lt;/description&gt;
&lt;/item&gt;

And the code in rss.php:

&lt;?PHP
header("Content-type: text/xml");
echo"&lt;?xml version=\"1.0\" encoding=\"windows-1252\" ?&gt;
&lt;rss version=\"0.91\" &gt;
 &lt;channel&gt;
   &lt;title&gt;TimRogersBlog&lt;/title&gt;
   &lt;link&gt;http://www.tim-rogers.co.uk&lt;/link&gt;
   &lt;language&gt;en-us&lt;/language&gt;
   &lt;description&gt;Blog&lt;/description&gt;
   &lt;generator&gt;CuteNews&lt;/generator&gt;
";

$template="rss";
include("show_news.php");

echo"&lt;/channel&gt;&lt;/rss&gt;";
?&gt;

  • 0

And I corrected it, and guess what now! Another problem, here is the error:

XML Parsing Error: undefined entity

Location: http://timrogers.host-dot.com/blog/cutenews/rss.php

Line Number 12, Column 78:<link>http://timrogers.host-dot.com/cutenews/show_news.php?subaction=showfull&ampid;=1111916746&amparchive=</link>

-----------------------------------------------------------------------------^

Edited by TimRogers
  • 0

&lt;?xml version="1.0" encoding="windows-1252" ?&gt;
&lt;rss version="0.91" &gt;
 &lt;channel&gt;
 ? &lt;title&gt;TimRogers&lt;/title&gt;
 ? &lt;link&gt;http://www.tim-rogers.co.uk&lt;/link&gt;
 ? &lt;language&gt;en-us&lt;/language&gt;
 ? &lt;description&gt;Blog&lt;/description&gt;
 ? &lt;generator&gt;CuteNews&lt;/generator&gt;
&lt;channel&gt;
&lt;item&gt;
&lt;title&gt;We Are Back!&lt;/title&gt;
&lt;link&gt;http://timrogers.host-dot.com/cutenews/show_news.php?subaction=showfull&amp;ampid;=1111916746&amp;amparchive=&lt;/link&gt;
&lt;description&gt;&lt;![CDATA[OK, sorry everyone, the blog is back after problems installing the RSS feed for MSN alerts, way to subcribe coming very soon! ?&lt;img style="border: none;" alt="smile" src="https://timrogers.host-dot.com/blog/cutenews/data/emoticons/smile.gif" /&gt;]]&gt;&lt;/description&gt;
&lt;/item&gt;&lt;!-- News Powered by CuteNews: http://cutephp.com/ --&gt;&lt;/channel&gt;&lt;/rss&gt;

See the <channel> tags? One wasn't closed. The one right above the <item> tag is your culprit. I would assume you can just remove it and everything will work fine. That or add </channel> above it.

Edit:...also you aren't using a WYSIWYG editor to edit this file right? I understand you'd be looking in an "edit source" type option, but some WYSIWYG editors will get confused when trying to keep everything correct and actually mess it up.

  • 0

OK, removed channel tags...

RSS.php code is:

&lt;?PHP
header("Content-type: text/xml");
echo"&lt;?xml version=\"1.0\" encoding=\"windows-1252\" ?&gt;
&lt;rss version=\"0.91\" &gt;
 &lt;channel&gt;
   &lt;title&gt;TimRogers&lt;/title&gt;
   &lt;link&gt;http://www.tim-rogers.co.uk&lt;/link&gt;
   &lt;language&gt;en-us&lt;/language&gt;
   &lt;description&gt;Blog&lt;/description&gt;
   &lt;generator&gt;CuteNews&lt;/generator&gt;
";

$template="rss";
include("show_news.php");

echo"&lt;/channel&gt;&lt;/rss&gt;";
?&gt;

and the code for the cutenews RSS template is:

&lt;item&gt;
&lt;title&gt;{title}&lt;/title&gt;
&lt;link&gt;http://timrogers.host-dot.com/cutenews/show_news.php?subaction=showfull&amp;id=1111916746&amp;archive=&lt;/link&gt;
&lt;description&gt;&lt;![CDATA[{short-story}]]&gt;&lt;/description&gt;
&lt;/item&gt;

And now, here is the error on rss.php:

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

--------------------------------------------------------------------------------

Reference to undefined entity 'id'. Error processing resource 'http://www.timrogers.host-dot.com/blog/cutenews/rss.php'. Line 11, Position 79

<link>http://timrogers.host-dot.com/cutenews/show_news.php?subaction=showfull&id;=1111916746&archive=</link>

------------------------------------------------------------------------------^

  • 0

I didn't catch it before, but you have a <description> tag closed, but not opened. Look below to what's in bold. There is no <description> tag to close.

<?xml version="1.0" encoding="windows-1252" ?>

<rss version="0.91" >

<channel>

<title>TimRogers</title>

<link>http://www.tim-rogers.co.uk</link>

<language>en-us</language>

<description>Blog</description>

<generator>CuteNews</generator>

<item>

<title>We Are Back!</title>

<link>http://timrogers.host-dot.com/cutenews/show_news.php?subaction=showfull&ampid=1111916746&amparchive=</link>

<description><![CDATA[OK, sorry everyone, the blog is back after problems installing the RSS feed for MSN alerts, way to subcribe coming very soon! <img style="border: none;" alt="smile" src="http://timrogers.host-dot.com/blog/cutenews/data/emoticons/smile.gif" />]]></description>

</item><!-- News Powered by CuteNews: http://cutephp.com/ --></channel></rss>

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Because Chrome is doing it. And no one said anyone had to update immediately. That's silly. They could update every day for all I care as long as it's fast, and the next time the browser restarts, you're good. And the basic point is not to tee it up for bigger updates. As it is right now, all the windows I had open reopen anyway except inprivate.
    • Why? Does anybody actually want this? The constant need to close all browser sessions and wait for a new version to install, just so that there’s a integrated coupon manager feels like a waste of everyone’s time
    • I remember when Louis used to just do interesting Mac/iPhone repairs, now he's boring and just launches "crusades" every week
    • A shame it don't allow people to bypass the MS account, I will stick to using Rufus.
    • Microsoft about to radically change how often your Edge browser updates by Paul Hill Microsoft has just announced that starting with Edge 152, it will be moving to a two-week release cycle for faster, smaller updates. This faster release cadence will begin on August 27. This change comes just several months after Microsoft switched Visual Studio Code to weekly updates. The company said that the Extended Stable releases will remain on an eight-week cycle and that no admin changes are needed to experience the faster release cycle on the Stable channel. The new two-week release cycle will enable the faster delivery of security updates and platform improvements, all while reducing the size and complexity of individual updates. Microsoft claims that organizations will benefit from this change as it offers predictable validation cycles. For organizations that prefer a “more deliberate pace”, the Extended Stable channel remains an option. This change will affect Edge Stable releases on Windows, macOS, Linux, and mobile. The Extended Stable channel will continue to be updated every eight weeks, or every fourth Stable release, for example: versions 152, 156, 160, and 164. The Extended Stable could be a good option for organizations that don’t want the latest updates twice a month and don’t want as much hassle constantly updating browsers. In the case of Visual Studio Code, many of the updates being pushed by Microsoft are AI-related. As we all know, Microsoft Edge has a lot of AI features, so we could see Microsoft pushing more AI, thanks to the faster cycles. On the flip side, quicker releases could mean faster security updates, which is beneficial in a world where AI systems are hunting for software exploits. What do you think? Let us know in the comments. For more updates on Edge, be sure to follow Neowin's coverage. In May alone, we reported on Edge offering in-browser pop-ups to assist users with website compatibility issues, that Edge was losing Copilot Mode, and that Microsoft had fixed a plain-text password bug in Edge. Source: Microsoft 365 Admin Center
  • Recent Achievements

    • Week One Done
      davidbazooked earned a badge
      Week One Done
    • One Month Later
      Jamswaz earned a badge
      One Month Later
    • Week One Done
      Jamswaz earned a badge
      Week One Done
    • Rookie
      Marzoid went up a rank
      Rookie
    • Community Regular
      coch went up a rank
      Community Regular
  • Popular Contributors

    1. 1
      +primortal
      514
    2. 2
      PsYcHoKiLLa
      185
    3. 3
      +Edouard
      159
    4. 4
      Steven P.
      83
    5. 5
      ATLien_0
      75
  • Tell a friend

    Love Neowin? Tell a friend!