WordPress Warning: preg_replace(): JIT compilation failed: no more memory

I added the following line to the php.ini and restarted Apache and it worked (Xampp on macOS):

pcre.jit=0

This disables PCRE’s just-in-time compilation.

Further information:

If you can’t find the location of php.ini and are using Xampp, go to localhost and select the PHP information link and it is displayed there.

Leave a Comment