Fixed Adding new bbcode leads to character error

Cupara

Well-known member
Affected version
2.0.0
Not sure if this is a bug or just something I'm missing since error messages are not really explanatory when popping up.

Add BB code   Goblin Times   Admin control panel.webp

I have no idea where the characters refer. I have disabled all my add-ons and tried but still the same issue.
 
What's the add-on ID for this add-on? Is it longer than 25 characters? It seems the entity has a max length of 25 characters there, even though we support add-on IDs up to 50.
 
Pretty sure that was it. To change it locally edit src/XF/Entity/BbCode.php and change:
PHP:
'addon_id' => ['type' => self::BINARY, 'maxLength' => 25, 'default' => '']
to:
PHP:
'addon_id' => ['type' => self::BINARY, 'maxLength' => 50, 'default' => '']
 
Back
Top Bottom