- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 07.01.21, 08:59
- Opened by: Ivan FELICITE
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
Ticket #20388 - AMP Issue with faceted search
Hi,
I encounter a new issue since last update of faceted search module (3.7.0) when trying to reach a category page on AMP, I get a 500 error.
After checking the server’s logs, I can see it :
AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function PrestaShop\\Module\\FacetedSearch\\Filters\\Converter::construct(), 2 passed in /var/www/vhosts/eshop.eotia.fr/httpdocs/prestashop/modules/pkamp/controllers/front/category.php on line 153 and exactly 3 expected in /var/www/vhosts/eshop.eotia.fr/httpdocs/prestashop/modules/ps_facetedsearch/src/Filters/Converter.php:74\nStack trace:\n#0 /var/www/vhosts/eshop.eotia.fr/httpdocs/prestashop/modules/pkamp/controllers/front/category.php(153): PrestaShop\\Module\\FacetedSearch\\Filters\\Converter→construct(Object(Context), Object(DbPDO))\n#1 /var/www/vhosts/eshop.eotia.fr/httpdocs/prestashop/classes/controller/Controller.php(292): PkampCategoryModuleFrontController→initContent()\n#2 /var/www/vhosts/eshop.eotia.fr/httpdocs/prestashop/classes/Dispatcher.php(515): ControllerCore→run()\n#3 /var/www/vhosts/eshop.eotia.fr/httpdocs/prestashop/index.php(28): DispatcherCore→dispatch()\n#4 {main}\n thrown in /var/www/vhosts/eshop.eot…‘, referer: https://eshop.eotia.fr/mobile
I’ve disabled the faceted search module, waiting to find a solution.
Hope you could help me.
Best regards.
Comments
Hi, Ivan.
The issue has been fixed. Please test to confirm the change
Updated file /httpdocs/prestashop/modules/pkamp/controllers/front/category.php
Hi!
Thank you so much for your rapid help and answer!
Best regards!
you are welcome
I have the same error can you tell me what needs to be changed in that file.
Best regards!
See the solution in this ticket https://support.promokit.eu/index.php?do=details&task_id=20242&string=%5Bsolved&project=3&status%5B0%5D=closed&status%5B1%5D=open