Jump to content

Report bug


tabutnas

Recommended Posts

Hello,

i change this lane

$products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10), 'date_add', 'DESC');

for

$products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10), 'date_upd', 'DESC');

and now i have this following error;

 

Parse error: syntax error, unexpected T_IF in /home/laxarxav/public_html/la-parada/modules/homefeatured/homefeatured.php on line 1

 

But my problem now is have the same error if i change to the original code

$products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10), 'date_add', 'DESC');

I do this common solutions;

  1. clean all cache form: prestashop/cache
  2. disallow cache form backoffice and Forcing compiler installed
  3. Copy-paste saved module after edit

Details;

PrestaShop™ 1.5.3.1

Module Homefeatured

 

Thanks in advance !!

 

 

Link to comment
Share on other sites

Hi,

 

This is not a bug. Your editor probably registers BOM bytes at the begining of the file. Please use an UTF8 editor that can manage UTF8 without BOM.

 

Please do nto duplicate posts on the forum.

 

http://www.prestashop.com/forums/topic/295284-bug-module-homefeatured/

 

Regards

Edited by Gregory Roussac (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...