In some cases the settings array is not cast as a BackgroundImageSettings object. This leads to a fatal error when trying to call get() on the array in line 390 of src/Entity/BackgroundImage.php.

For me this occurs when visiting /update.php.
Included patch prevents the fatal error.

Comments

basvredeling created an issue. See original summary.

markhalliwell’s picture

Assigned: Unassigned » markhalliwell
Status: Needs review » Needs work

I think a better way may be to just check if the property is a valid instance and just [re]create it if not.

markhalliwell’s picture

Assigned: markhalliwell » Unassigned
Status: Needs work » Fixed
StatusFileSize
new1.36 KB

  • markcarver committed 5305812 on 8.x-1.x
    Issue #3103708 by markcarver, basvredeling: BackgroundImage::getSettings...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.