[Galette-devel] Crash de Galette à cause de la télémétrie |
[ Thread Index |
Date Index
| More lists.galette.eu/devel Archives
]
- To: devel@xxxxxxxxxxxxxxxx
- Subject: [Galette-devel] Crash de Galette à cause de la télémétrie
- From: Thierry <thierry@xxxxxxxxxxx>
- Date: Sat, 5 Nov 2022 16:48:04 +0100
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=palijn.info ; s=default; h=To:Date:Message-Id:Subject:Mime-Version: Content-Transfer-Encoding:Content-Type:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=RMxXaEZRyYUQUCFvkI3bkHPORENySh70hoWYF5Ifp8Y=; b=LOF6vD6uIbglQ2e04KmRKq6DWK L9THVwLrOFteIGoc31RSZjAuw3EhEnG0XjqsszUoLIIAFOH7RipzoMv3r7v7S6luICG8E+OpOIB0f g1Zs7xHv49noPSgN3ppu9M4vzIfLAP9+UtncgMEyhxop8UUMjyA6CQ2VExZ8TQlP9w8UWYllbZT2x 2AttWNhXg/uQhT989KbEBj1GcS6HQKnSAgCR2wy6AgS3hcZyKAuMvFS5AiT0TpnTRvod7smxPYQB6 HZzW3jLC9PdgzUlgAWcY3bKgVhn96IotZ5HjqQ4CCA85j9jwIne+p0zjxpdsl/0oaiF0MrJ3xdYZ5 +DtyOLTw==;
Bonjour,
aujourd’hui Galette me fait une erreur 500.
C’est la faute de la télémétrie. (Si je comprends bien le code, ça fait un an et Galette essaie de la renouveler).
Erreur :
Stack trace:
#0 /volume1/Galette/includes/dependencies.php(157): {closure}(8, 'Undefined index...', '/volume1/Galett...', 157, Array)
#1 [internal function]: {closure}(Object(DI\Container))
#2 /volume1/Galette/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Object(Closure), Array)
#3 /volume1/Galette/vendor/php-di/php-di/src/Definition/Resolver/FactoryResolver.php(80): Invoker\Invoker->call(Object(Closure), Array)
#4 /volume1/Galette/vendor/php-di/php-di/src/Definition/Resolver/ResolverDispatcher.php(71): DI\Definition\Resolver\FactoryResolver->resolve(Object(DI\Definition\FactoryDefinition), Array)
#5 /volume1/Galette/vendor/php-di/php-di/src/Container.php(390): DI\Definition\Resolver\ResolverDispatcher->resolve(Object(DI\Definition\FactoryDefinition), Array)
#6 /volume1/Galette/vendor/php-di/php-di/src/Container.php(139): DI\Container->resolveDefiniti" while reading response header from upstream, client: 2a01:e0a:1a6:3730:51c7:963f:a21e:5fbc, server: _, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-b2e7c129-704a-424e-89f4-99f57b945c61.sock:", host: "ds.local:8033", referrer: "http://ds.local:8033/login"
Contournement :
Commenter le bloc suivant dans includes/dependencies.php
if ($c->get('login')->isAdmin() && $c->get('preferences')->pref_telemetry_date) {
$now = new \DateTime();
$sent = new \DateTime($c->get('preferences')->pref_telemetry_date);
$sent->add(new \DateInterval('P1Y')); // ask to resend telemetry after one year
if ($now > $sent && !$_COOKIE['renew_telemetry']) {
$smarty->assign('renew_telemetry', true);
}
}
A vous de voir ce qu’il convient de faire ?
Cordialement,
Thierry
--
Galette development - http://galette.eu/
List documentation: https://listengine.tuxfamily.org/lists.galette.eu/devel/