Support » Plugin: WooCommerce » PHP 7.4 ERRORS – Warning: preg_match(): Allocation of JIT memory failed

  • Resolved catcadnoe

    (@catcadnoe)


    PHP 7.4 ERRORS – Warning: preg_match(): Allocation of JIT memory failed

    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 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rynald0s.a11n

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @catcadnoe!

    There was a big filed here:

    https://bugs.php.net/bug.php?id=78630

    One way you can try and get around this would be to add pcre.jit=0 to your php.ini file. Your host should be able to help with this.

    Please let us know how it goes.

    Cheers!

    Plugin Support Rynald0s.a11n

    (@rynald0s)

    Automattic Happiness Engineer

    Howdy.

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.

    Cheers!

    Thread Starter catcadnoe

    (@catcadnoe)

    Thank you, Dreamhost didn’t have another solution but revert to PHP 7.3.
    So I guess that WordPress / Woocommerce are not really ready for 7.4 ?

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