Error when loading editor or saving editor settings with PHP 8.x

Created on 19 October 2023, about 1 year ago

Attempting to load the editor or save the editor settings with newer versions of PHP results in a fatal error:

TypeError: unserialize(): Argument #1 ($data) must be of type string, array given in unserialize() (line 47 of editor/includes/editor.filters.inc)

It looks like this is due to a change in the way notices are handled. Editor settings can either be serialized (strings) or unserialized (arrays) with unserialize() currently handling both cases, ignoring the arrays and unserializing the strings. Now unserialize() throws an error when supplied with an array.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada devin carlson Sudbury, ON

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024