Okay
  Public Ticket #2069828
category filtering not work
Closed

Comments

  • Zsolt started the conversation

    If I select something to filter by category its not work. Javascript Ajax get 500 internal server error.

    In server log:

    2019/07/04 17:20:41 [error] 1305#1305: *40532 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught RuntimeException: Trying to unset the index id of the LazyArray PrestaShopPrestaShopAdapterPresenterProductProductListingLazyArray already defined by a method is not allowed in /srv/www/e-ps17.cnt.co.rs/src/Adapter/Presenter/AbstractLazyArray.php:370
    Stack trace:
    #0 /srv/www/e-ps17.cnt.co.rs/override/classes/controller/ProductListingFrontController.php(20): PrestaShopPrestaShopAdapterPresenterAbstractLazyArray->offsetUnset('id')
    #1 /srv/www/e-ps17.cnt.co.rs/classes/controller/ProductListingFrontController.php(506): ProductListingFrontController->prepareProductArrayForAjaxReturn(Array)
    #2 /srv/www/e-ps17.cnt.co.rs/controllers/front/listing/CategoryController.php(159): ProductListingFrontControllerCore->getAjaxProductSearchVariables()
    #3 /srv/www/e-ps17.cnt.co.rs/classes/controller/ProductListingFrontController.php(541): CategoryControllerCore->getAjaxProductSearchVariables()
    #4 /srv/www/e-ps17.cnt.co.rs/controllers/front/listing/CategoryController.php(137):" while reading response header from upstream, client: 10.100.255.170, server: e-ps17.cnt.co.rs, request: "GET /en/77-women-parfumes?q=Categories-Citrusni+Aromati%C4%8Dni&from-xhr HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/e-ps17.cnt.co.rs:", host: "e-ps17.cnt.co.rs", referrer: "https://e-ps17.cnt.co.rs/en/77-women-parfumes"


  •  1,588
    Criss replied

    Hi Zsolt

    In FTP you delete the file according to the path
    /root/override/classes/controller/ProductListingFrontController.php


    Best Regards,
    Criss - FieldThemes