MyBB Community Forums

Full Version: Error Handler Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello'
I am using WINDOWS 10 (mentioned because in the error is writen Linux)
I moved to another host site and started from 0. (DreamHost +purchased plan)
I uploaded MyBB latest version.
This is the error what i get in my admin contron panel: Picture: https://prnt.sc/w5ftu6

Warning [2] preg_replace(): 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: 5434 - File: inc/functions.php PHP 7.4.11 (Linux)
File
Line
Function[PHP]

errorHandler->error
/inc/functions.php
5434
preg_replace
/inc/functions.php
5207
htmlspecialchars_uni
/admin/index.php
43
get_current_location
Warning [2] Cannot modify header information - headers already sent by (output started at /home/dh_hzp5px/grparrow.com/inc/class_error.php:229) - Line: 64 - File: admin/index.php PHP 7.4.11 (Linux)
File
Line
Function[PHP]

errorHandler->error
/admin/index.php
64
header



--

+ new error appear in the forum
https://prnt.sc/w5gg1m

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: 566 - File: inc/class_session.php PHP 7.4.11 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/class_session.php 566 preg_match
/inc/class_session.php 516 session->get_special_locations
/inc/class_session.php 404 session->create_session
/inc/class_session.php 113 session->load_guest
/global.php 49 session->init
/index.php 18 require_once
Can you place this little line in global.php and check if the warning goes away?

ini_set("pcre.jit", "0");
(2020-12-18, 03:05 PM)effone Wrote: [ -> ]Can you place this little line in global.php and check if the warning goes away?

ini_set("pcre.jit", "0");
https://prnt.sc/w5gzit  - i placed it in line 49 ,i did it correct?
Should work, but can be placed as early as possible.
You can place it at line no. 10, just after comment chunk.
Did the warning go?
My website is: grparrow.com

(2020-12-18, 03:23 PM)effone Wrote: [ -> ]You can place it at line no. 10, just after comment chunk.
Did the warning go?
The warning dissapeared after i followed that step. The forum for visitors looks alright
But new error appear:


http://www.grparrow.com/

New error is visible just in admin panel:
error 1 picture: https://prnt.sc/w5jce4
error 2 picture: https://prnt.sc/w5jdix
Hi ,my problem was solved ,i am using DreamHost.
In main files in file manager- .php - phpcr - your current problematic php version - click ''edit file'' ,post that simple code in the file :
pcre.jit=0
.Click save and you are done.