SBBCodeParser
SBBCodeParser copied to clipboard
Problem with ending delimiter?
It seems upon testing this out I get this error:
Warning: preg_match_all(): No ending delimiter ')' found in /var/www/includes/bbcode/classes/Node/Container/Document.php on line 1009
Hi, I have been having the same problem. are we doing something wrong or is there really an error?
Find out that the real problem is this : https://github.com/samclarke/SBBCodeParser/pull/6
You just need to add 1 smiley and there shouldn't be an error then
Here is a quick fix until the official developers release a fix. Goto Line 1006 and before the preg_match_all function. add an @ sign. so the complete function should look like
@preg_match_all($pattern,
$child->get_text(),
$matches,
PREG_PATTERN_ORDER | PREG_OFFSET_CAPTURE);
Thank you.