jed clampit Posted March 21, 2012 Share Posted March 21, 2012 Hi All new to prestashop and the forum so apologies if posted in wrong place. my problem is that when i try to validate my 'RSS New Products Feed' i get the following errors. This feed does not validate. line 6, column 2: Undefined channel element: mail [help] <mail>[email protected]</mail> ^ line 14, column 1: Missing channel element: description [help] </channel>^In addition, interoperability with the widest range of feed readerscould be improved by implementing the following recommendation. line 14, column 1: Missing atom:link with rel="self" [help] </channel> i have done a search of the forum and google but not turned anything up. can someone explain what is wrong and how i fix it ? running 1.4.6.2 Link to comment Share on other sites More sharing options...
Friend Posted July 11, 2012 Share Posted July 11, 2012 If you haven't solved this, here is what i modified in rss.php to validate it: <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title><![CDATA[<?php echo Configuration::get('PS_SHOP_NAME') ?>]]></title> <link><?php echo _PS_BASE_URL_.__PS_BASE_URI__; ?></link> <description>YOUR SITE DESCRIPTION</description> <generator>PrestaShop</generator> <language><?php echo Language::getIsoById((int)($cookie->id_lang)); ?></language> <image> <title><![CDATA[<?php echo Configuration::get('PS_SHOP_NAME') ?>]]></title> <url><?php echo _PS_BASE_URL_.__PS_BASE_URI__.'img/logo.jpg'; ?></url> <link><?php echo _PS_BASE_URL_.__PS_BASE_URI__; ?></link> </image> <atom:link href="LINK TO YOUR FEED" rel="self" type="application/rss+xml" /> If you get guid error also Add this: echo "\t\t\t<guid><![CDATA[".htmlspecialchars($link->getproductLink($product['id_product'], $product['link_rewrite'], Category::getLinkRewrite((int)($product['id_category_default']), $cookie->id_lang))).$affiliate."]]></guid>\n"; After this: echo "\t\t\t<link><![CDATA[".htmlspecialchars($link->getproductLink($product['id_product'], $product['link_rewrite'], Category::getLinkRewrite((int)($product['id_category_default']), $cookie->id_lang))).$affiliate."]]></link>\n"; So i deleted the mail line, added site description and atom link that let me validate it . You have to modify YOUR SITE DESCRIPTION and LINK TO YOUR FEED (http://yourwebsite/m.../feeder/rss.php) with your own. I hope this helps. Note i'm not a programmer or a skilled presta "coding guy", i just runned more or less into the same problem, and i just posted my solution. Link to comment Share on other sites More sharing options...
Recommended Posts