最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin2浏览0评论

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:

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

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 3
  • 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
Add a comment  | 

2 Answers 2

Reset to default 10

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:

  • 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.

发布评论

评论列表(0)

  1. 暂无评论