Bonjour à tous,
SPIP 4.* : si on force l’exécution des tâches CRON en fin de hit, alors une constante crée un PHP Warning durant le cron :
Constant _DIRECT_CRON_FORCE already defined in /home/jeanmace/www/_arcam/ecrire/inc/utils.php on line 1068
Extrait du code utils.php :
function action_cron() {
include_spip('inc/headers');
http_response_code(204); // No Content
header('Connection: close');
define('_DIRECT_CRON_FORCE', true);
cron();
}