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
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:
Share Improve this question edited Jan 22, 2019 at 14:31 Pratik Patel 1,1111 gold badge11 silver badges23 bronze badges asked Jan 22, 2019 at 14:11 A.AlshaikhliA.Alshaikhli 1611 gold badge1 silver badge3 bronze badges 3Warning: 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
- do you get more verbose errors in your error log. seeing the stack trace on that would be helpful – mrben522 Commented Jan 22, 2019 at 14:17
- I'm getting the same errors on my local installation. I have to refresh every new page load to temporarily hide the errors. – Paul Shryock Commented Jan 23, 2019 at 15:55
- @PaulShryock I did downgrade to old php 7.1 and fixed. Thanks – A.Alshaikhli Commented Jan 23, 2019 at 19:57
2 Answers
Reset to default 10I 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:
- http://php/manual/en/pcre.configuration.php#ini.pcre.jit
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.
You need downgrade your php7.3 to php7.1 version. I have the same problem when trying to change php version to the upper.