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.
In your php.ini file just add this
[Pcre] pcre.jit=0