Keep On Hacking

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

October 08, 2019

In my last post, I mentioned that I had to set up MAMP and downgrade Node. After setting up MAMP, I installed WordPress and clone my project to get started with work. However, I ended up with the following error.

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

GitHub Gist

As usual StackOverflow came to my rescue.


Written by Daniel who lives and works in the beautiful city of Salem training dogs. You should follow me on Twitter

© 2020, Built with ❤️ & Gatsby