Jump to content

Prestatashop 1.7.7.5 : many php warnings from ps_facetedsearch module


jemm971

Recommended Posts

Hello,

in my php_error.log I have many php warnings due to the ps_faceted search module (see below).

Do you have same warnings ? Is there a correction that I can apply?

My versions are Prestashop 1.7.7.5 and PHP 7.3.21

Thanks for your help.

 

PHP_error.log extract :

[06-Jul-2021 13:26:49 America/Guadeloupe] PHP Warning:  strip_tags() expects parameter 1 to be string, array given in D:\wamp64\www\monsite\classes\db\Db.php on line 794
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP Stack trace:
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP   1. {main}() D:\wamp64\www\monsite\index.php:0
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP   2. Dispatcher->dispatch() D:\wamp64\www\monsite\index.php:28
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP   3. CategoryController->run() D:\wamp64\www\monsite\classes\Dispatcher.php:518
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP   4. CategoryController->initContent() D:\wamp64\www\monsite\classes\controller\Controller.php:306
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP   5. CategoryController->doProductSearch() D:\wamp64\www\monsite\controllers\front\listing\CategoryController.php:137
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP   6. CategoryController->getProductSearchVariables() D:\wamp64\www\monsite\classes\controller\ProductListingFrontController.php:580
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP   7. PrestaShop\Module\FacetedSearch\Product\SearchProvider->runQuery() D:\wamp64\www\monsite\classes\controller\ProductListingFrontController.php:307
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP   8. PrestaShop\Module\FacetedSearch\Filters\Block->getFilterBlock() D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Product\SearchProvider.php:179
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP   9. PrestaShop\Module\FacetedSearch\Filters\Block->getConditionsBlock() D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Filters\Block.php:122
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP  10. PrestaShop\Module\FacetedSearch\Adapter\MySQL->valueCount() D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Filters\Block.php:376
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP  11. PrestaShop\Module\FacetedSearch\Adapter\MySQL->execute() D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Adapter\MySQL.php:735
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP  12. PrestaShop\Module\FacetedSearch\Adapter\MySQL->getQuery() D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Adapter\MySQL.php:86
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP  13. PrestaShop\Module\FacetedSearch\Adapter\MySQL->getQuery() D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Adapter\MySQL.php:102
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP  14. PrestaShop\Module\FacetedSearch\Adapter\MySQL->computeWhereConditions() D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Adapter\MySQL.php:108
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP  15. PrestaShop\Module\FacetedSearch\Adapter\MySQL->execute() D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Adapter\MySQL.php:543
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP  16. PrestaShop\Module\FacetedSearch\Adapter\MySQL->getQuery() D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Adapter\MySQL.php:86
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP  17. PrestaShop\Module\FacetedSearch\Adapter\MySQL->computeWhereConditions() D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Adapter\MySQL.php:108
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP  18. array_map() D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Adapter\MySQL.php:513
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP  19. PrestaShop\Module\FacetedSearch\Adapter\MySQL->PrestaShop\Module\FacetedSearch\Adapter\{closure:D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Adapter\MySQL.php:513-515}() D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Adapter\MySQL.php:513
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP  20. pSQL() D:\wamp64\www\monsite\modules\ps_facetedsearch\src\Adapter\MySQL.php:514
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP  21. DbPDO->escape() D:\wamp64\www\monsite\config\alias.php:47
[06-Jul-2021 13:26:49 America/Guadeloupe] PHP  22. strip_tags() D:\wamp64\www\monsite\classes\db\Db.php:794
 

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