phpwpinfo icon indicating copy to clipboard operation
phpwpinfo copied to clipboard

Error when Redis sessions with the session_Start

Open Rahe opened this issue 5 months ago • 0 comments

J'ai eu l'erreur :

[Tue Jul 29 09:02:49.945264 2025] [php:error] [pid 791835] [client 127.0.0.1:41964] PHP Fatal error:  Uncaught RedisException: NOAUTH Authentication required. in /var/www/html/web/phpwpinfo.php:58\nStack trace:\n#0 /var/www/html/web/phpwpinfo.php(58): session_start()\n#1 /var/www/html/web/phpwpinfo.php(39): PHP_WP_Info->__construct()\n#2 /var/www/html/web/phpwpinfo.php(1572): phpwpinfo()\n#3 {main}\n  thrown in /var/www/html/web/phpwpinfo.php on line 58

Je suppose qu'entourer le session_start par un try/catch permettrait d'éviter cette erreur ?

Rahe avatar Jul 29 '25 07:07 Rahe