Project

General

Profile

Anomalie #1617

Err500 due to Telemetry popup

Added by Florent G. 4 months ago. Updated 4 months ago.

Status:
Résolu
Priority:
Normal
Category:
Core
Target version:
Start date:
01/14/2022
Due date:
% Done:

100%

Estimated time:
Version utilisée:
Vote:

Description

Galette 0.9.6.1
PHP 8.1
Navigateur: Firefox 96.0

Erreur 500 dès la home page, après le login. Probablement lorsque l'on a pas le bon cookie en place.

2022/01/14 16:53:05 [error] 555#555: *501260 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ErrorException: Undefined array key "renew_telemetry" in /var/www/galette/includes/dependencies.php:157
Stack trace:
#0 /var/www/galette/includes/dependencies.php(157): {closure}()
#1 [internal function]: {closure}()
#2 /var/www/galette/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array()
#3 /var/www/galette/vendor/php-di/php-di/src/Definition/Resolver/FactoryResolver.php(80): Invoker\Invoker->call()
#4 /var/www/galette/vendor/php-di/php-di/src/Definition/Resolver/ResolverDispatcher.php(71): DI\Definition\Resolver\FactoryResolver->resolve()
#5 /var/www/galette/vendor/php-di/php-di/src/Container.php(390): DI\Definition\Resolver\ResolverDispatcher->resolve()
#6 /var/www/galette/vendor/php-di/php-di/src/Container.php(139): DI\Container->resolveDefinition()
#7 /var/www/galette/lib/Galette/Middleware/SmartyCsrf.php(68): DI\Container->get()
#8 /var/www/galette/includes/main.inc.php(95): Galette\Middleware\SmartyCsrf->__construct()

Contournement: commenter dans includes/dependencies.php le if suivant:

       if ($now > $sent && !$_COOKIE['renew_telemetry']) {
            $smarty->assign('renew_telemetry', true);
        }

#1

Updated by Johan Cwiklinski 4 months ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100
#2

Updated by Johan Cwiklinski 4 months ago

  • Category set to Core
  • Assignee set to Johan Cwiklinski
  • Target version set to 1.0.0

Also available in: Atom PDF