Skip to content

Illegal string offset 'type' #8583

@Nao

Description

@Nao

$addClosingTags[] = $element['type'];

Shouldn't $element here be a string? I got an error in my log about that one; someone likely had a bug with their block not closing. It's on heavily customized Wedge software but since it's based off SMF 2.0 and I haven't touched that area, I figured maybe you guys had fixed it, but it's exactly the same. It's probably a very unlikely bug to occur, but if SMF 2.1 is still maintained, might be nice to fix it. I'm not the one who maintained the editor (Arantor did most of it), so I'm unfamiliar with the code, but it looks like it should simply be $element, not $element['type'], as we're looking for a tag to close manually. At least that's how I'm fixing it on my side.

(Feels weird to post here after all these years not talking to the SMF team!)

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions