Project

General

Profile

Anomalie #3704

La page d'accueil http://libreassociation.info/ affiche une erreur PHP

Added by Christian P. Momon over 4 years ago. Updated over 4 years ago.

Status:
Fermé
Priority:
Normale
Category:
-
Target version:
Start date:
05/14/2019
Due date:
% Done:

0%

Estimated time:
Difficulté:
2 Facile

Description

Au soir du 14 mai 2019, le bot vivivi remonte une alerte :

20:14 < vivivi[3]> [00] bastion:Check Web libreassociation.info is CRITICAL: HTTP CRITICAL: Status line output matched "200" - string '<title>Libre Association' not found on 'http://libreassociation.info:80/' - 462 bytes in 0.437 second response time

Factuellement :

Extrait du fichier où ça plante :

function inc_agendajson_to_array($u) 
{
        […] 
        $datetime = DateTime::createFromFormat('Y-m-d\TH:i:s+', $properties["start_time"]);
        $objet["date"] = libreasso_getJour(date('j',  $datetime->getTimestamp()))." ".libreasso_getMois(date('m',  $datetime->getTimestamp()));

Questions :
  • pourquoi le site est-il accessible en http:// ?
  • forçons-nous le https:// ?
  • tant pis pour le bug ?

History

#1

Updated by Vincent Calame over 4 years ago

- le site était accessible en http du fait du cache, le cache vidé, l'erreur était partout

le problème vient de la récupération de l'agenda du libre qui a changé sa manière d'enregistrer une date, j'ai modifié mes_fonctions.php pour que le nouveau format soit pris en compte et j'ai mis une condition : en cas d'erreur de l'agenda, les évènements au hasard ne sont pas affichés, cela ne casse pas l'affichage de l'ensemble de la page.

#2

Updated by Christian P. Momon over 4 years ago

  • Status changed from Nouveau to Résolu
  • Assignee set to Vincent Calame

J'ai testé, plus d'erreur. Le bot vivivi confirme :D Je passe le ticket à résolu.

#3

Updated by Quentin Gibeaux over 4 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF