Jump to content

prestashop 1.7 pagination and faceted not working


Recommended Posts

Turn on error reporting from the back  office, then hit f12 when viewing the category page. Tab to "Console" and click a faceted option, you will see the GET request returns an error, click on it and post a screenshot.

Link to comment
Share on other sites

Hi NemoPS

Thank you

bottom-a4e697349.js:39 GET https://to-plakaki.gr/14-plakakia-dapedou-granitis?q=Μάρκα-Gambini&from-xhr 500
send @ bottom-a4e697349.js:39
ajax @ bottom-a4e697349.js:39
m.<computed> @ bottom-a4e697349.js:39
(anonymous) @ bottom-a4e697349.js:185
(anonymous) @ bottom-a4e697349.js:185
i.emit @ bottom-a4e697349.js:629
(anonymous) @ bottom-a4e697349.js:559
dispatch @ bottom-a4e697349.js:39
g.handle @ bottom-a4e697349.js:39

 

 

Whoops, looks like something went wrong.

(1/1) RuntimeException

Trying to unset the index id of the LazyArray PrestaShop\PrestaShop\Adapter\Presenter\Product\ProductListingLazyArray already defined by a method is not allowed

in AbstractLazyArray.php line 379

at AbstractLazyArray->offsetUnset('id')in ProductListingFrontController.php line 30

at ProductListingFrontController->prepareProductArrayForAjaxReturn(array(object(ProductListingLazyArray), object(ProductListingLazyArray)))in ProductListingFrontController.php line 541

at ProductListingFrontControllerCore->getAjaxProductSearchVariables()in CategoryController.php line 159

at CategoryControllerCore->getAjaxProductSearchVariables()in ProductListingFrontController.php line 576

at ProductListingFrontControllerCore->doProductSearch('catalog/listing/category', array('entity' => 'category', 'id' => 14))in CategoryController.php line 137

at CategoryControllerCore->initContent()in Controller.php line 292

at ControllerCore->run()in Dispatcher.php line 515

at DispatcherCore->dispatch()in index.php line 28

Thank you

 

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

  • 3 years later...
On 4/15/2020 at 11:37 AM, nikosmaragos said:

There is a file named \override\classes\controller\ProductListingFrontController.php

i delete this file and now everything is ok

I don't know what the use of this file was

Great. Works for me (on Prestashop 1.7.7.8). Thank you very much nikosmaragos .

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...