Jump to content

Problem with open second page in product list


Recommended Posts

Hi,

 

I got a problem with opening second page in product list. I can open first page of category, but if I want to open second page with button in bottom of page it open me just blank page. But if open second page directly (with link) everything works.

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

Did you manage to solve this problem? I'm dealing with the same one and have no idea what to do. If direct link works it mayby some problem with ajax there?

 

Hi all, I've same problem on my client's site with 1.4.3 version.

I've found this bug on classes/Category.php

....

		if ($random === true)
	{
		$sql .= ' ORDER BY RAND()';
		$sql .= ' LIMIT 0, '.(int)($randomNumberProducts);
	}
	else
	{
		$sql .= ' ORDER BY '.(isset($orderByPrefix) ? $orderByPrefix.'.' : '').'`'.pSQL($orderBy).'` '.pSQL($orderWay).'
		LIMIT '.(((int)($p) - 1) * (int)($n)).','.(int)($n);

}

....

 

at line 529

 

LIMIT '.(((int)($p) - 1) * (int)($n)).','.(int)($n);

 

should be:

 

LIMIT '.(((int)($p) - 1) * (int)($n)).','.(int)($p) * (int)($n);

 

but this not solve the problem.

 

Any idea?

 

Sfinze.

Link to comment
Share on other sites

Hi,

 

Not from mi side. But I assume that this could be a common error, wondering why only us don't know what to do? I have a preety fresh install of presta, therefore it cannot be caused by some customizations. I guess we have to wait...

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...

i've had the same problem too. i've tried to uninstall the layered navigation but it didn't work...

 

it turns out that mod_deflate is not installed in apache...

 

i'm using prestashop on a VPS.. i also used litespeed... the problem rise because, litespeed's gzip cannot work without mod_deflate in apache...

 

hope this helps

Link to comment
Share on other sites

×
×
  • Create New...