Enabling the module causes 36 calls to _xbbcode_load_tags() with a NULL argument, which can be traced back to the XBBCodeFilter constructor getting NULL from calling Drupal::config('xbbcode.settings')->get('tags').

Some debug output shows that after the class has been instanced 36 times, it gets instanced another four times with the config data set.

I guess there's nothing to it; the constructor has to fall back to an empty array.

Seriously though, forty times? That's terrible.

Comments

cburschka’s picture

Status: Active » Needs review
StatusFileSize
new601 bytes

This patch checks $this->tag_settings before passing it to the loader, and passes an empty array if it's NULL.

cburschka’s picture

Status: Needs review » Fixed

  • cburschka committed 0371b8c on 8.x-2.x
    Issue #2475011 by cburschka: empty config.
    
    XBBCodeFilter instance is...

Status: Fixed » Closed (fixed)

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