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

I just have installed xampp with php 7.3.1 on mac with OS El capitan.

The problem that when i run a WordPress project will show:

Warning: preg_replace(): JIT compilation failed: no more memory in /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/formatting.php on line 2110 Warning: preg_match(): JIT compilation failed: no more memory in /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/functions.php on line 4947 Warning: preg_replace(): JIT compilation failed: no more memory in /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/functions.php on line 4843 Warning: preg_match(): JIT compilation failed: no more memory in /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/functions.php on line 4947 Warning: preg_match(): JIT compilation failed: no more memory in /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/functions.php on line 4947

Topic mac php Wordpress

Category Web


You need downgrade your php7.3 to php7.1 version. I have the same problem when trying to change php version to the upper.


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.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.