Skip to content

Warning during search in catalog by multiple custom option values. Warning should not be generated in log. #23557

@arendarenko

Description

@arendarenko

Warning: strip_tags() expects parameter 1 to be string, array given in /.../magento2/vendor/magento/framework/Filter/StripTags.php on line 48 happens when customer using catalog search with custom option values which is not exist (for example: they existed previously, but later was deleted).

Preconditions (*)

  1. Magento 2.2.8 with sample data

Steps to reproduce (*)

  1. Go to frontend -> Men -> Tops -> Hoodies & Sweatshirts
  2. Choose black color
  3. Change URL parameter material, add ",11111" to it value

Expected result (*)

  1. Will be found products that related to "black" color filter

Actual result (*)

  1. Founded products that related to "black" color filter
  2. Received warning in log file: Warning: strip_tags() expects parameter 1 to be string, array given in /.../magento2/vendor/magento/framework/Filter/StripTags.php on line 48

Metadata

Metadata

Assignees

Labels

Component: Framework/FilterFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions