silverstripe-framework: Centered image alignment crashes on save

In a HTMLEditorField, selecting Centered, on its own. for an image’s alignment causes the following fatal PHP error on save:

PHP Fatal error:  Call to a member function appendChild() on null in /Volumes/Users/foo/Sites/bar/framework/View/Parsers/ShortcodeParser.php on line 187

All other alignments seem to save ok.

Observed in the latest dev-master.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 33 (25 by maintainers)

Commits related to this issue

Most upvoted comments

Hi everyone, I’m the author of mentioned Shortcode library. I’d like to address some of the concerns raised here and in #5535. I’ll link the comments and answer them here:

I’d throw my weight behind @thunderer’s package. It can’t be worse than writing our own and there’s nothing stopping us forking it if things go bad with it in the long term (no offence). If that happens we’re just in the same place we are now, maintaining a shortcode parser.

Maybe if @thunderer was happy to recruit some more contributors it could alleviate our worries?