HI, I had been update a Joomla site but I can't access it anymore, please will you help me? I did the next procedure:

1) I updated PHP 7.1.28 TO php 7.3.27
2) I updated Joomla from the Joomla Control Panel
3) I couln't access the Joomla site because it sent me the next error messages:

Warning: preg_split(): 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 /var/www/html/mi_sitio/libraries/loader.php on line 691

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /var/www/html/mi_sitio/libraries/joomla/session/handler/joomla.php on line 46

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /var/www/html/elect_potencia/libraries/joomla/session/handler/joomla.php on line 49

Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /var/www/html/mi_sitio/libraries/joomla/session/handler/joomla.php on line 138

Warning: session_set_save_handler(): Cannot change save handler when headers already sent in /var/www/html/mi_sitio/libraries/joomla/session/storage.php on line 101

Warning: session_name(): Cannot change session name when headers already sent in /var/www/html/mi_sitio/libraries/joomla/session/handler/native.php on line 128

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /var/www/html/mi_sitio/libraries/joomla/session/session.php on line 928

Warning: session_cache_limiter(): Cannot change cache limiter when headers already sent in /var/www/html/mi_sitio/libraries/joomla/session/handler/native.php on line 235
Error displaying the error page: Application Instantiation Error: Failed to start the session because headers have already been sent by "/var/www/html/mi_sitio/libraries/loader.php" at line 691.

Please. I don't know whats is happen, will you help me?

Thanks a lot.
Regards.

xochitl Warning: preg_split(): 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 /var/www/html/mi_sitio/libraries/loader.php on line 691

This is the problem that needs to be resolved. The rest are just caused by this error being output, preventing any HTML headers be sent by those other functions. Poking around the internet a bit, I don't immediately see what needs to be done to provide that missing permission, but it looks like you can avoid the error by disabling pcre.jit, which could be done via php.ini, or you could probably stick this into your main script before you do the require_once:

ini_set('pcre.jit', 0);

No guarantees, though.

Thank you NogDog. please will you tell me how modify the php.ini file?

Regards

xochitl please will you tell me how modify the php.ini file?

Whether you can do that or not depends on how your hosting is set up. You can create a simple PHP file with just the following, access it from that host, and it should output all sorts of configuration info including the location of the php.ini file it used:

<?php
phpinfo();

If you do not have access to that file, then you can probably set it in a .htaccess file in the document root directory of your site. It's all a bit convoluted, as with great flexibility comes great complexity, or something like that. https://www.php.net/manual/en/configuration.php

    Write a Reply...