Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array to string conversion on filters via Ajax #3397

Open
maxlussier opened this issue Sep 25, 2024 · 1 comment
Open

Array to string conversion on filters via Ajax #3397

maxlussier opened this issue Sep 25, 2024 · 1 comment
Assignees

Comments

@maxlussier
Copy link

Preconditions

Magento Version : 2.4.7-p2

ElasticSuite Version : 2.11.8.3

Environment : Production

Third party modules :

  • Smile Elasticsuite 2.11.8.3
  • Smile Elasticsuite CMS Search 2.11.2
  • Smile Elasticsuite Quick Order 2.11.1
  • Algolia Search 3.14.1
  • Amasty GDPR 2.10.2
  • Amasty Custom Form 1.19.1
  • Amasty Order Attributes 3.12.3
  • Magefan Blog 2.11.6
  • Comwrap Elasticsuite Blog 2.1.0
  • SAML Single Sign On 1.12.1

Steps to reproduce

  1. Go to a Product Display page

Expected result

  1. You should see the product page.

Actual result

I get a 503 error page and this message appears in the log:

Exception: Warning: Array to string conversion in /app/5rodvzz7sn6dq/vendor/magento/framework/Filter/StripTags.php on line 48 in /app/5rodvzz7sn6dq/vendor/magento/framework/App/ErrorHandler.php:62Stack trace:#0 /app/5rodvzz7sn6dq/vendor/magento/framework/Filter/StripTags.php(48): Magento\Framework\App\ErrorHandler->handler()#1 /app/5rodvzz7sn6dq/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Model/Layer/Filter/Attribute.php(111): Magento\Framework\Filter\StripTags->filter()#2 /app/5rodvzz7sn6dq/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Controller/Navigation/Filter/Ajax.php(149): Smile\ElasticsuiteCatalog\Model\Layer\Filter\Attribute->apply()#3 /app/5rodvzz7sn6dq/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Controller/Navigation/Filter/Ajax.php(121): Smile\ElasticsuiteCatalog\Controller\Navigation\Filter\Ajax->applyFilters()#4 /app/5rodvzz7sn6dq/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Controller/Navigation/Filter/Ajax.php(79): Smile\ElasticsuiteCatalog\Controller\Navigation\Filter\Ajax->initLayer()#5 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(58): Smile\ElasticsuiteCatalog\Controller\Navigation\Filter\Ajax->execute()#6 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(138): Smile\ElasticsuiteCatalog\Controller\Navigation\Filter\Ajax\Interceptor->___callParent()#7 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(153): Smile\ElasticsuiteCatalog\Controller\Navigation\Filter\Ajax\Interceptor->Magento\Framework\Interception{closure}()#8 /app/5rodvzz7sn6dq/generated/code/Smile/ElasticsuiteCatalog/Controller/Navigation/Filter/Ajax/Interceptor.php(23): Smile\ElasticsuiteCatalog\Controller\Navigation\Filter\Ajax\Interceptor->___callPlugins()#9 /app/5rodvzz7sn6dq/vendor/magento/framework/App/Action/Action.php(111): Smile\ElasticsuiteCatalog\Controller\Navigation\Filter\Ajax\Interceptor->execute()#10 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch()#11 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(138): Smile\ElasticsuiteCatalog\Controller\Navigation\Filter\Ajax\Interceptor->___callParent()#12 /app/5rodvzz7sn6dq/vendor/magento/module-company/Plugin/Framework/App/Action/AbstractActionPlugin.php(65): Smile\ElasticsuiteCatalog\Controller\Navigation\Filter\Ajax\Interceptor->Magento\Framework\Interception{closure}()#13 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Company\Plugin\Framework\App\Action\AbstractActionPlugin->aroundDispatch()#14 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(153): Smile\ElasticsuiteCatalog\Controller\Navigation\Filter\Ajax\Interceptor->Magento\Framework\Interception{closure}()#15 /app/5rodvzz7sn6dq/generated/code/Smile/ElasticsuiteCatalog/Controller/Navigation/Filter/Ajax/Interceptor.php(32): Smile\ElasticsuiteCatalog\Controller\Navigation\Filter\Ajax\Interceptor->___callPlugins()#16 /app/5rodvzz7sn6dq/vendor/magento/framework/App/FrontController.php(245): Smile\ElasticsuiteCatalog\Controller\Navigation\Filter\Ajax\Interceptor->dispatch()#17 /app/5rodvzz7sn6dq/vendor/magento/framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse()#18 /app/5rodvzz7sn6dq/vendor/magento/framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest()#19 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch()#20 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent()#21 /app/5rodvzz7sn6dq/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(99): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}()#22 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch()#23 /app/5rodvzz7sn6dq/vendor/fastly/magento2/Model/FrontControllerPlugin.php(135): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}()#24 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(135): Fastly\Cdn\Model\FrontControllerPlugin->aroundDispatch()#25 /app/5rodvzz7sn6dq/vendor/amasty/aminvisiblecaptcha/Plugin/Framework/App/FrontControllerInterface/ValidateCaptcha.php(124): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}()#26 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(135): Amasty\InvisibleCaptcha\Plugin\Framework\App\FrontControllerInterface\ValidateCaptcha->aroundDispatch()#27 /app/5rodvzz7sn6dq/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(71): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}()#28 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch()#29 /app/5rodvzz7sn6dq/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}()#30 /app/5rodvzz7sn6dq/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins()#31 /app/5rodvzz7sn6dq/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch()#32 /app/5rodvzz7sn6dq/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch()#33 /app/5rodvzz7sn6dq/pub/index.php(30): Magento\Framework\App\Bootstrap->run()#34 {main}

@vahonc
Copy link
Collaborator

vahonc commented Sep 30, 2024

Hello @maxlussier,

It looks like it's a quite specific issue of your environment because the Elasticsuite doesn't do any actions on the Product page and normally all should be fine. Are you sure that you don't have any additional customizations or it's not an issue linked with compatibility between your 3rd-party modules?

BR,
Vadym

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants