2019-09-15, 11:31 AM
I upgrade mybb 1.8.21 and i got this error.
"SELECT * FROM mybb_attachtypes WHERE enabled=1"
I lock to install directory and for now there was no problem. Then I made the php version 7.3 as recommended and I got the following error;
[attachment=42195]
Warning [2] preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead - Line: 484 - File: inc/class_parser.php PHP 7.3.9 (Linux)
Warning [2] preg_match(): The /e modifier is no longer supported, use preg_replace_callback instead - Line: 500 - File: inc/class_parser.php PHP 7.3.9 (Linux)
How can I solved this problem?
Note: I don't get any problems when I make php version 5.6.
"SELECT * FROM mybb_attachtypes WHERE enabled=1"
I lock to install directory and for now there was no problem. Then I made the php version 7.3 as recommended and I got the following error;
[attachment=42195]
Warning [2] preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead - Line: 484 - File: inc/class_parser.php PHP 7.3.9 (Linux)
// Replace the rest
if($this->mycode_cache['standard_count'] > 0)
{
Line 484: $message = preg_replace($this->mycode_cache['standard']['find'], $this->mycode_cache['standard']['replacement'], $message);
}
Warning [2] preg_match(): The /e modifier is no longer supported, use preg_replace_callback instead - Line: 500 - File: inc/class_parser.php PHP 7.3.9 (Linux)
// Replace the nestable mycode's
if($this->mycode_cache['nestable_count'] > 0)
{
foreach($this->mycode_cache['nestable'] as $mycode)
{
Line 500: while(preg_match($mycode['find'], $message))
{
$message = preg_replace($mycode['find'], $mycode['replacement'], $message);
}
}
}
How can I solved this problem?
Note: I don't get any problems when I make php version 5.6.