Skip to content

Watermark is breaking product page when size is not set #26389

Closed
@paliarush

Description

@paliarush

Preconditions

  1. Simple product is available on the storefront

Steps to reproduce

  1. Navigate to theme configuration in Content -> Design -> Configuration -> <some theme> -> Product Image Watermarks
  2. Upload a new watermark. Specify opacity and DO NOT specify Image size

image

  1. Save configuration, clear caches
  2. Navigate to product page (within the same theme that was used for watermarks)

Expected result

  1. Product page is displayed with no errors

Actual result

  1. Fatal error: TypeError: explode() expects parameter 2 to be string, null given
  2. Cause of the error seems to be due to the change Relocate Watermark insert on image after resize. #25514 #25528:
    image

Metadata

Metadata

Assignees

Labels

Area: FrontendComponent: ImageIssue: 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.4.xThe issue has been reproduced on latest 2.4-develop branchgood first issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions