Error message saying # is an "unknown modifier". after upgrading to latest version (and the one before that).
The line causing the problem is line 659 in class_parser.php:
$message = preg_replace('#'.$badword['badword'].'#is', $badword['replacement'], $message);
Why would I be getting that error message with the latest version of MyBB. I'm running PHP 7.1.
The problem occurs with 1.8.18 and 1.8.19.
This is a standard line of code from MyBB so presumably there is something in my PHP environment that conflicts with this. Any ideas?
The line causing the problem is line 659 in class_parser.php:
$message = preg_replace('#'.$badword['badword'].'#is', $badword['replacement'], $message);
Why would I be getting that error message with the latest version of MyBB. I'm running PHP 7.1.
The problem occurs with 1.8.18 and 1.8.19.
This is a standard line of code from MyBB so presumably there is something in my PHP environment that conflicts with this. Any ideas?