• 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

    • Google Chrome 149.0.7827.115 (offline installer) by Razvan Serea The web browser is arguably the most important piece of software on your computer. You spend much of your time online inside a browser: when you search, chat, email, shop, bank, read the news, and watch videos online, you often do all this using a browser. Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier. Use one box for everything--type in the address bar and get suggestions for both search and Web pages. Thumbnails of your top sites let you access your favorite pages instantly with lightning speed from any new tab. Desktop shortcuts allow you to launch your favorite Web apps straight from your desktop. Chrome has many useful features built in, including automatic full-page translation and access to thousands of apps, extensions, and themes from the Chrome Web Store. Google Chrome is one of the best solutions for Internet browsing giving you high level of security, speed and great features. Important to know! The offline installer links do not include the automatic update feature. Download web installer: Google Chrome Web 32-bit | Google Chrome 64-bit | Freeware Download: Google Chrome Offline Installer 64-bit | Direct Link | 131.0 MB Download: Google Chrome Offline Installer 32-bit | Direct Link | 119.0 MB Download page: Google Chrome Portable Download: Chrome ARM64 | Direct Link View: Chrome Website | Release Notes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Oh, it's happening on more than one dialog? This is the dialog that I'm unable to interact with.
    • WSCC - Windows System Control Center 10.0.3.8 by Razvan Serea Windows System Control Center is a free, portable program that allows you to install, update, execute and organize the utilities from various system utility suites. WSCC can install and update the supported utilities automatically. Alternatively, WSCC can use the http protocol to download and run the programs. WSCC is portable, installation is not required. Extract the content of the downloaded zip archive to any directory on your computer. Free for personal use. The setup packages and updates are downloaded directly from their author's website! This edition of WSCC supports the following utility suites: Windows Sysinternals Suite (including support for "Sysinternals Live" service) NirSoft Utilities Mitec and more... WSCC - Windows System Control Center 10.0.3.8 changelog: [NEW] update progress is now visible on the Windows taskbar [FIXED] fixed an issue with the Update dialog [FIXED] minor fixes Download: WSCC (64-bit) | 5.4 MB (Free for personal use) Download: WSCC (32-bit) | 6.3 MB View: WSCC Homepage | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • The level of stupidity at Google and Microsoft is beyond belief. All they are doing by killing this is forcing people to jump over to Firefox and ditch them all together, therefore giving Firefox the market boost it needs to finally crush them all in the end.
    • HWMonitor 1.64 by Razvan Serea HWMonitor is a hardware monitoring program that reads PC systems main health sensors : voltages, temperatures, fans speed. The program handles the most common sensor chips, like ITE® IT87 series, most Winbond® ICs, and others. In addition, it can read modern CPUs on-die core thermal sensors, as well has hard drives temperature via S.M.A.R.T, and video card GPU temperature. Special hardware monitors such as abit® uGuru and Gigabyte® ODIN™ power supplies serie are supported too. HWMonitor 1.64 changelog: Intel Arc G3 & G3 Extreme (Panther Lake). Intel Core Ultra 5 250KF Plus (Arrow Lake Refresh). AMD Ryzen 7 7700X3D (Raphael). AMD Ryzen AI Max+ 495, 492, 488 (Gorgon Halo). AMD Ryzen AI Max 490, 485 (Gorgon Halo). AMD Ryzen AI Max PRO 495, 490, 485, 480 (Gorgon Halo). AMD Ryzen 9 9950X3D2 (Granite Ridge). AMD Ryzen 9 PRO 9965X3D, PRO 9945 (Granite Ridge). AMD Ryzen 7 PRO 9755, PRO 9745 (Granite Ridge). AMD Ryzen 5 PRO 9645 (Granite Ridge). AMD Ryzen AI 7/PRO 450G/GE (Gorgon Point 2). AMD Ryzen AI 5/PRO 440G/GE (Gorgon Point 2). AMD Ryzen AI 5/PRO 435G/GE (Gorgon Point 3). Support of HUDIMM and HSODIMM memory modules. New themes. New real-time graphs. Download: HWMonitor 1.64 | 3.4 MB (Freeware) Download: Portable HWMonitor 1.64 | 2.7 MB View: HWMonitor Homepage | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • One Month Later
      Clizby earned a badge
      One Month Later
    • One Month Later
      Timaximus earned a badge
      One Month Later
    • Week One Done
      Timaximus earned a badge
      Week One Done
    • Rookie
      FBSPL went up a rank
      Rookie
    • First Post
      davidbazooked earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      495
    2. 2
      PsYcHoKiLLa
      171
    3. 3
      +Edouard
      163
    4. 4
      Steven P.
      86
    5. 5
      ATLien_0
      77
  • Tell a friend

    Love Neowin? Tell a friend!