Jump to content

[solved] Prestashop 1.3 rss.php error script? a bug?


Recommended Posts

When I open myshop/modules/feeder/rss.php I got this error below

This page contains the following errors:

error on line 16 at column 164: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.



This is my rss.php

<?php
include(dirname(__FILE__).'/../../config/config.inc.php');
require_once(dirname(__FILE__).'/../../init.php');

// Get data
$number = (intval(Tools::getValue('n')) ? intval(Tools::getValue('n')) : 10);
$orderByValues = array(0 => 'name', 1 => 'price', 2 => 'date_add', 3 => 'date_upd', 4 => 'position');
$orderWayValues = array(0 => 'ASC', 1 => 'DESC');
$orderBy = Tools::strtolower(Tools::getValue('orderby', $orderByValues[intval(Configuration::get('PS_PRODUCTS_ORDER_BY'))]));
$orderWay = Tools::strtoupper(Tools::getValue('orderway', $orderWayValues[intval(Configuration::get('PS_PRODUCTS_ORDER_WAY'))]));
if (!in_array($orderBy, $orderByValues))
   $orderBy = $orderByValues[0];
if (!in_array($orderWay, $orderWayValues))
   $orderWay = $orderWayValues[0];
$id_category = (intval(Tools::getValue('id_category')) ? intval(Tools::getValue('id_category')) : 1);
$products = Product::getProducts(intval($cookie->id_lang), 0, ($number > 10 ? 10 : $number), $orderBy, $orderWay, $id_category, true);
$currency = new Currency(intval($cookie->id_currency));
$affiliate = (Tools::getValue('ac') ? '?ac='.intval(Tools::getValue('ac')) : '');



I replace the folder but still no joy. Is it a bug?

Link to comment
Share on other sites

  • 2 months later...

It's a problem. I had this problem, and after searching and testing I changed all the description text of my products in basics texts. I found that when I looked at the text in html, i had a lot of bad text because I copy the text from other DB and when you do that, often you have a lot of bad caracters(from word...or others)... Well il modified all the texts with blocnotes or other and now it's ok.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...
×
×
  • Create New...