• ERRORS when switching to PHP 7.4 – Warning: preg_match(): Allocation of JIT memo

    hello, I get this warning after enabling PHP 7.4, do you know if I should revert to 7.2 ?
    Thank you so much for your help.

    Warning: preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in /home/xxxxxx/xxxxxx.com/wp-includes/wp-db.php on line 1754

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi

    Please check this link.

    If your site is live then I suggest asking your hosting provider once.

    Kind Regards

    I get a similar error (Your PHP installation appears to be missing the MySQL extension which is required by WordPress.) when I tried to switch several WP sites to PHP 7.3. I was told by someone that I should wait until my website hosting provider to update all their databases before moving on to PHP 7.3. Apparently it is too complicated correct all the older codes and databases manually.

    To your question, should you revert back? The answer is yes for now. You may contact your hosting provider and ask when are they going to update everything to be compatible with higher versions of PHP. I am on PHP 7.1.14. I would revert back to whichever the highest version that is working for your site.

    Thread Starter catcadnoe

    (@catcadnoe)

    Thank you, but what is the problem with this warning as long as website is loading well ?
    A warning is not an error ?
    thank you.

    @catcadnoe Having this warning may result in Google, Bing and other search engines downgrading your website ranking. Warning is a kind of an error.

    This also means load time of your website to increased unnecessarily. Evey request to your server (HTTPS, PHP, MySQL, CSS, images, etc) take tiny bit of extra time. Now if you also have warnings on your install, the loading time of your website may significantly increased. This also increase your server load for no good reason.

    I would suggest going back to the most stable error free version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘ERRORS when switching to PHP 7.4 – Warning: preg_match(): Allocation of JIT memo’ is closed to new replies.