Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

can anyone see what causes this error


julianpuje

Recommended Posts

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

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

 

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

Hi Julian,

I have no help for you, just a shoulder to lean on as I am getting the same error!

 

 

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

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

 

 

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...