Constant _DIRECT_CRON_FORCE already defined

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();
}

Salut, tu peux poser ça dans un ticket ici spip/spip: Dépôt officiel du core SPIP Les plugins-dist faisant partie de la distribution SPIP sont présents dans https://git.spip.net/spip/[nom du plugin dist] - spip - SPIP on GIT ?

Merci il me manquait le lien :slight_smile:
=> #5772 - Constant _DIRECT_CRON_FORCE already defined - spip - SPIP on GIT