-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Warning: trim() expects parameter 1 to be string, array given | magento/module-catalog-search #33586
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
Comments
Hi @Morgy93. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento give me 2.4-develop instance |
Hi @Morgy93. Thank you for your request. I'm working on Magento instance for you. |
Hi @Morgy93, here is your Magento Instance: https://9c1b89fe5de56e32154d4d69af8f12e0-2-4-develop.instances.magento-community.engineering |
Verified the issue on Magento 2.4-develop branch and the issue is reproducible:
|
The faulty code was introduced here: 14b90ed |
Same Issue. Subscribe to the thread. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Verified the issue on Magento 2.4-develop branch and the issue is reproducible: Magento exception log main.CRITICAL: Warning: trim() expects parameter 1 to be string, array given in /Applications/MAMP/htdocs/magento2/app/code/Magento/CatalogSearch/Model/Advanced.php on line 201 {"report_id":"7795ed006397a2df48b21de48d13cabdc6575853bde5b3e221aca5d2dca0eebe","exception":"[object] (Exception(code: 0): Warning: trim() expects parameter 1 to be string, array given in /Applications/MAMP/htdocs/magento2/app/code/Magento/CatalogSearch/Model/Advanced.php on line 201 at /Applications/MAMP/htdocs/magento2/lib/internal/Magento/Framework/App/ErrorHandler.php:61)"} [] |
Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Once all required labels are present, please add |
Hi @engcom-November. Thank you for working on this issue.
|
✅ Jira issue https://jira.corp.magento.com/browse/AC-2051 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-November. Thank you for verifying the issue. |
@magento I am working on this |
…t and index pages #34995
Preconditions (*)
Steps to reproduce (*)
Pass an array to any advanced search string input
For example:
/catalogsearch/advanced/result/?name[]=error
Expected result (*)
It should not throw an unhandled error.
Actual result (*)
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: