getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.27k stars 167 forks source link

[v4] Layout field throws error on trying to add text block #5765

Closed nilsmielke closed 11 months ago

nilsmielke commented 11 months ago

Description

I have a layout field defined with a limited set of blocks (heading, text, list, image). When adding an image, there is no problem. As soon, as I try to add a text, list or heading block, though, the field starts throwing errors. For a text block the message is “this.content.text is null” on every action, that follows trying to add the block. Reloading the panel page, the field looks okay again. As soon as I try to edit … error. If I reset the field completely (read: delete all layout content) and I only add image blocks, everything works as expected. Adding one of the other field types … error.

To reproduce

No idea, what triggers this. I reverted the site to a backuped 3.9.6.1 version. There the problem did not exist. I cannot reproduce it in a Starterkit running 4.0.0-beta.2, either.

Your setup

Kirby Version
4.0.0-beta.2

Console output
Bildschirmfoto 2023-10-09 um 14 33 54

Your system (please complete the following information)

afbora commented 11 months ago

You couldn't reproduce the issue in 4.0.0-beta.2 starterkit, so do you have any plugins or custom js?

nilsmielke commented 11 months ago

You are right, of course, @afbora. Should have thought of a plugin potentially being the problem. Sorry for wasting your time.

lukasbestle commented 11 months ago

I'm closing this for now. If you are able to track down what causes the issue and it turns out to be a bug in Kirby, please let us know and we'll reopen.

nilsmielke commented 11 months ago

The “Extended Writer” plugin was responsible for those errors. As I realised—after Ahmet’s nudge—the plugin has been sunset. With the upcoming release of Kirby v4 its features have found their way into core.