nikosmaragos Posted April 8, 2020 Share Posted April 8, 2020 how can i fix in prestashop 1.7 the pagination and the faceted because there are not working there https://to-plakaki.gr/14-plakakia-dapedou-granitis thank you Link to comment Share on other sites More sharing options...
NemoPS Posted April 9, 2020 Share Posted April 9, 2020 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 More sharing options...
nikosmaragos Posted April 9, 2020 Author Share Posted April 9, 2020 (edited) 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 April 9, 2020 by nikosmaragos (see edit history) Link to comment Share on other sites More sharing options...
nikosmaragos Posted April 15, 2020 Author Share Posted April 15, 2020 (edited) 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 Edited April 15, 2020 by nikosmaragos (see edit history) Link to comment Share on other sites More sharing options...
ADM777 Posted June 22, 2023 Share Posted June 22, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now