rss error :|

Report bugs and errors in this forum.

rss error :|

Postby THE IRAQILION » Wed Apr 07, 2010 11:42 am

hello all
i got this error with rss.php that is located in the cnr folder
i dont know hot to resolve the problem you can check the photo and see the error message
Attachments
4-7-2010 3-07-35 PM.png
(10.08 KiB) Downloaded 47 times
THE IRAQILION
 
Posts: 29
Joined: Fri Mar 12, 2010 7:07 pm

Postby THE IRAQILION » Wed Apr 14, 2010 5:44 pm

When Can I Get My Answer???????????????????????????????
THE IRAQILION
 
Posts: 29
Joined: Fri Mar 12, 2010 7:07 pm

Postby Torstein » Thu Apr 15, 2010 4:19 pm

Could we get a link / the source of the page please.
Torstein
 
Posts: 292
Joined: Thu Aug 03, 2006 11:19 pm

Postby THE IRAQILION » Thu Apr 15, 2010 5:29 pm

if you need the rss file code this is it
Code: Select all
<?php
include_once 'head.php';

add_filter('news-allow-commentform', 'comment_form');

function comment_form(){return false;}

header('Content-type: text/xml');
echo '<?xml version="1.0" encoding="'.$echo['charset'].'" ?>';
?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>

<?
if (!$id){
?>

<title><?=$config_home_title; ?></title>
<link><?=$config_http_home_url; ?></link>
<description><?=$config_home_title; ?></description>

<?
}
?>

<language>ru</language>
<generator><?=$config_version_name.' '.$config_version_id; ?></generator>

<?
$template = 'rss';
$number = 12;
include $cutepath.'/show_news.php';
?>

</channel>
</rss>
THE IRAQILION
 
Posts: 29
Joined: Fri Mar 12, 2010 7:07 pm

Postby Ma5ter » Wed Apr 21, 2010 7:44 am

THE IRAQILION wrote:When Can I Get My Answer???????????????????????????????


Um, when you ask nicely. We all have lives to run ourselves, just in case you didn't know ;)

It looks as though your missing a line at the start of your rss.php file or XML parsing file, which at the moment I cant remember the name of.
This line tells the browser the version of XML and what type of encoding the file is in, without it, the browser dose not what to do with the file and returns the error that you see in the image.
Ma5ter
 
Posts: 4
Joined: Wed Apr 21, 2010 6:49 am

Postby DarkSlim » Thu Apr 22, 2010 8:00 am

Something similar once happened to me, I ran some tests
and found that in one particular plugin (latest comments I think)
there were some blank new lines in the beginning/end of the document
which somehow made it happen, when deleted it worked fine. :)
User avatar
DarkSlim
 
Posts: 296
Joined: Thu Aug 06, 2009 4:18 pm
Location: IL


Return to Bugs and errors



Who is online

Users browsing this forum: No registered users and 0 guests

cron