cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 Allocation of JIT memory failed, PCRE JIT

Magento 2 Allocation of JIT memory failed, PCRE JIT

We use Magento 2.4.2 p2 We see in our log the following.


PHP 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/public_html/vendor/magento/framework/Filesystem/DirectoryList.php on line 181

To me this looks like something on hosting. So I asked I my hoster to solve it. After days all they come up with is to sell me an upgrade... (really, we don't need that)

I also checked directorylist.php and do not get how to fix this.

 

So if anyone has any clues on solving this that would be great.

1 REPLY 1

Re: Magento 2 Allocation of JIT memory failed, PCRE JIT

In your php.ini file just add this 

[Pcre]
pcre.jit=0