julianpuje Posted September 7, 2005 Share Posted September 7, 2005 I've searched high and low in the contribution support and can't find this. I'm getting a whitespace error on my RSS feed page HERE The error shows : The XML page cannot be displayed Cannot view XML input using CSS style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Whitespace is not allowed at this location. Error processing resource 'http://www.leisurezone.co.uk/rss.php'. Line 61, Pos... ?<title>8ft Body Sculpture Trampoline, enclosure & cover set</title> -------------------------------------... I don't really understand where it's getting it from as it shows the first two products OK. Anybody got any ideas???? TIA Julian A little knowledge is dangerous, I SHOULD KNOW. If Life Begins At 40, What ends???? Link to comment Share on other sites More sharing options...
Logcbnfvr Posted September 7, 2005 Share Posted September 7, 2005 I've searched high and low in the contribution support and can't find this.I'm getting a whitespace error on my RSS feed page HERE The error shows : The XML page cannot be displayed Cannot view XML input using CSS style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Whitespace is not allowed at this location. Error processing resource 'http://www.leisurezone.co.uk/rss.php'. Line 61, Pos... ?<title>8ft Body Sculpture Trampoline, enclosure & cover set</title> -------------------------------------... I don't really understand where it's getting it from as it shows the first two products OK. Anybody got any ideas???? TIA Julian <{POST_SNAPBACK}> Hi Julian, I have no help for you, just a shoulder to lean on as I am getting the same error! Log Cabin Fever Gifts Link to comment Share on other sites More sharing options...
Logcbnfvr Posted September 7, 2005 Share Posted September 7, 2005 Hi Julian,I have no help for you, just a shoulder to lean on as I am getting the same error! <{POST_SNAPBACK}> Actually, I may have found a clue on another thread. Syas the error is caused by odd characters like "&" which I have in my title. When I removed it I actually got a few products to show.... Log Cabin Fever Gifts Link to comment Share on other sites More sharing options...
Guest Posted September 7, 2005 Share Posted September 7, 2005 if you want to use the & char use it like this & should not give errors. Link to comment Share on other sites More sharing options...
julianpuje Posted September 7, 2005 Author Share Posted September 7, 2005 Thanks for the replies. Any more ideas on this appreciated. Thanks Julian A little knowledge is dangerous, I SHOULD KNOW. If Life Begins At 40, What ends???? Link to comment Share on other sites More sharing options...
user99999999 Posted September 8, 2005 Share Posted September 8, 2005 You can add a CDATA tag to handle it <![CDATA[ &&&&&&&&&&&&&&&&&&&&& ]]> Link to comment Share on other sites More sharing options...
julianpuje Posted September 8, 2005 Author Share Posted September 8, 2005 Thanks for the reply. Where do i add that to try it out. Cheers You can add a CDATA tag to handle it <![CDATA[ &&&&&&&&&&&&&&&&&&&&& ]]> <{POST_SNAPBACK}> A little knowledge is dangerous, I SHOULD KNOW. If Life Begins At 40, What ends???? Link to comment Share on other sites More sharing options...
Proetorian Posted September 8, 2005 Share Posted September 8, 2005 I've searched high and low in the contribution support and can't find this.I'm getting a whitespace error on my RSS feed page HERE The error shows : The XML page cannot be displayed Cannot view XML input using CSS style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Whitespace is not allowed at this location. Error processing resource 'http://www.leisurezone.co.uk/rss.php'. Line 61, Pos... ?<title>8ft Body Sculpture Trampoline, enclosure & cover set</title> -------------------------------------... I don't really understand where it's getting it from as it shows the first two products OK. Anybody got any ideas???? TIA Julian <{POST_SNAPBACK}> I changed this code in the rss.php file: //$link = HTTP_SERVER . DIR_WS_CATALOG; // Uncomment this line out if you are using SEO links (Apache Rewrite URL) //$link .= "product_info.php/products_id/" . $id . "&language=" . $lang_code; // Comment out this line if you are NOT using SEO links //$link .= "product_info.php?products_id=" . $id . "&language=" . $lang_code; // RSS Links for Ultimate SEO (Gareth Houston 10 May 2005) $link = tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $id); to this code (since I am not using any SEO links): //$link = HTTP_SERVER . DIR_WS_CATALOG; // Uncomment this line out if you are using SEO links (Apache Rewrite URL) //$link .= "product_info.php/products_id/" . $id . "&language=" . $lang_code; // Comment out this line if you are NOT using SEO links $link .= "product_info.php?products_id=" . $id . "&language=" . $lang_code; // RSS Links for Ultimate SEO (Gareth Houston 10 May 2005) // $link = tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $id); I am still trying to figure out how to overcome having only nine or ten items showing on the rss page. Link to comment Share on other sites More sharing options...
julianpuje Posted September 8, 2005 Author Share Posted September 8, 2005 I'm using SEO links so i need that line. Cheers. I've managed to clear the white space fault by putting the offending product out of stock?? as i have no idea what to do with the CDATA tag. I now have more products showing which appear to be coming from my new products page? the error now is: The XML page cannot be displayed Cannot view XML input using CSS style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- End element was missing the character '>'. Error processing resource 'http://www.leisurezone.co.uk/rss.php'. Line 191, Pos... </rs --^ I have checked out the product doing this and cannot find any error in the code that is shown above. Any ideas? The RSS page is HERE Thank again Julian A little knowledge is dangerous, I SHOULD KNOW. If Life Begins At 40, What ends???? Link to comment Share on other sites More sharing options...
user99999999 Posted September 8, 2005 Share Posted September 8, 2005 You must have a typo the last line should be </rss> To fix the & problem try this. Chnage ISO-8859-1 to utf-8 line 128 header ("Content-Type: application/xml; charset=utf-8"); echo '<?xml version="1.0" encoding="utf-8"?>' . "\n"; Line 188 $name = htmlentities($name, ENT_QUOTES, 'utf-8'); $desc = htmlentities(strip_tags($desc), ENT_QUOTES, 'utf-8'); Remove this section // Replace HTML entities &something; by real characters // This should be working but is not on my server // $trans_tbl = get_html_translation_table (HTML_ENTITIES); // $trans_tbl = array_flip ($trans_tbl); // $name = strtr ($name, $trans_tbl); // $desc = strtr ($desc, $trans_tbl); // dumb method , but it works $name = str_replace ('&','&',$name); $desc = str_replace ('&','&',$desc); $name = str_replace ('é','?',$name); $desc = str_replace ('é','?',$desc); $name = str_replace ('à','?',$name); $desc = str_replace ('à','?',$desc); $name = str_replace ('è','?',$name); $desc = str_replace ('è','?',$desc); $name = str_replace ('â','?',$name); $desc = str_replace ('â','?',$desc); $name = str_replace ('ç','?',$name); $desc = str_replace ('ç','?',$desc); $name = str_replace ('ê','?',$name); $desc = str_replace ('ê','?',$desc); $name = str_replace ('î','?',$name); $desc = str_replace ('î','?',$desc); $name = str_replace ('ô','?',$name); $desc = str_replace ('ô','?',$desc); $name = str_replace (' ',' ',$name); $desc = str_replace (' ',' ',$desc); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.