• 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

    • I'm team Rossmann all the way. I have the exact same NVME, altough not in an array like him.
    • It had gone weeks ago. Although thinking about it I'm on the beta.
    • They thought value of their goods would forever only drop like it used to and didn't account for sudden increase in price because of all the Ai hype. Tough luck Samsung, don't try to weasel this one out. Also American customer protection laws are a**. In Europe, you need to be compensated for a functioning product of same or better characteristics (not same price point as when it was originally bought!) if it can't be repaired and when you receive a replacement product your warranty starts from scratch because you received a different item than you previously had and old warranty thus cannot apply to it anymore. If your actual item was successfully repaired, warranty gets extended for the period the item was in service. If item is repaired to a significant extent, warranty also starts over from scratch because major part of it was replaced. Americans need to fight to get this kind of consumer protections because they are constantly getting screwed over.
    • Microsoft releases new Windows 11 Media Creation Tool with the latest updates by Taras Buria Patch Tuesday updates arrive every month, bringing users new features and security updates. To make sure customers have access to the most recent images, Microsoft also releases updates to the Media Creation Tool app, its official utility for Windows 11 installation. Today, the company pushed new ISOs to Media Creation Tool, allowing you to create images with the June 2026 Patch Tuesday updates. With the latest update, the Media Creation Tool now downloads KB5094126. It is Windows 11 version 25H2, build 26200.8655, which is also available via Windows Update. Note that the app itself remains on the previous version, which you can check in Properties > Details. The only change is that it now downloads a more recent Windows 11 build, so the only way to check is to download an ISO. The June 2026 Patch Tuesday update is a special release for Windows 11, as it brings a new performance profile to make the operating system more responsive and snappier when rendering various user interface surfaces, including the Start menu, quick settings, and more. It does so by spiking processor speeds for a brief moment, resulting in higher loads for a second or two. The so-called “Low latency profile” is rolling out gradually, but you can force-enable it with the ViVeTool app. Other changes include webcam improvements, Task Manager updates, shared audio support, and more. You can download the Media Creation Tool app from the official Microsoft website using this link. Besides MCT, Microsoft lets you download Windows 11 ISO as a file directly from the official Windows 11 website. However, you will need a third-party app to write it to your USB drive. Check out this guide if you want to know how to do that.
  • 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
      509
    2. 2
      PsYcHoKiLLa
      184
    3. 3
      +Edouard
      158
    4. 4
      Steven P.
      83
    5. 5
      ATLien_0
      75
  • Tell a friend

    Love Neowin? Tell a friend!