MyBB Community Forums

Full Version: The following warnings occurred: [2] preg_match()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Warning [2] preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 - Line: 8439 - File: inc/functions.php PHP 7.4.3 (Linux)

File
Line
Function[PHP]
 
errorHandler->error
/inc/functions.php
8439
preg_match
/inc/db_mysqli.php
1000
validate_utf8_string
/inc/class_session.php
55
DB_MySQLi->escape_string
/global.php
49
session->init
/forumdisplay.php
24
require_once


--
migrate mysql from local windows machine to webhost provider
how to fix it?
It appears to be a PHP bug, not MyBB, happens while using REGEX.
https://bugs.php.net/bug.php?id=78630

You need to hardcode a PHP setting and try if its resolved.

Add this line to your global.php, at beginning, after comment block and check if this happens further ...
ini_set("pcre.jit", "0");
need to contact the web system provider to fix that! Thank you!