[Galette-devel] Crash de Galette à cause de la télémétrie

[ Thread Index | Date Index | More lists.galette.eu/devel Archives ]


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/


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/