- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022
10:14 AM
12-20-2022
10:14 AM
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.
Labels:
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022
10:19 PM
12-20-2022
10:19 PM
Re: Magento 2 Allocation of JIT memory failed, PCRE JIT
In your php.ini file just add this
[Pcre] pcre.jit=0