Allocation of JIT memory failed

Error Log for moments.kf12.com is showing multiple PHP errors.

“Allocation of JIT memory failed, PCRE JIT will be disabled”

PHP tries to get executable memory for the PCRE JIT and is blocked by Dreamhost’s configuration. PHP then displays this message, falls back to non-JIT PCRE, and continues processing with the JIT disabled. That’s why this message only appears sometimes and pages otherwise appear normal.

The fix is to add the following line to php.ini

pcre.jit=0

For Dreamhost shared hosting accounts add that line to the file

~/.php/7.4/phprc

Note: A php.ini file is a simple text file that allows you to adjust your PHP settings. As of PHP 5.3, DreamHost uses a “phprc” file instead. This acts the same way – only the name is different.

Taken from:

https://stackoverflow.com/questions/59231779/allocation-of-jit-memory-failed-pcre-jit-will-be-disabled-warning-in-php-7