Projet

Général

Profil

Actions

Anomalie #32433

fermé

REVIEW (24) - Recherche avancée : Recherche par critère d'annotation erreur "Unexpected token '<' " " ... is not valid JSON" si les warning sont activés au niveau de PHP

Ajouté par Joseph AKEL il y a 12 jours. Mis à jour il y a 11 jours.

Statut:
R&D - Terminé
Priorité:
1-Majeur
Assigné à:
Version cible:
Début:
19/11/2024
Echéance:

Description

Bonjour,

Notre client nous remonte un message d'erreur JSON lors d'une recherche sur le critère annotation.

Un contournent a été trouvé dans le fichier /var/www/html/MaarchCourrier/src/app/search/controllers/SearchController.php, à la ligne 828

![](clipboard-202411191208-yokub.png)

Nous avons remplacé

                if ($note['user_id'] == $GLOBALS['id']) {

par

                if ($note['user_id'] ?? '' == $GLOBALS['id']) {


Pouvez-vous analyser et nous aider à corriger l'erreur de façon pérenne ?

version Maarch Courrier 2301.4.0 et MaarchCapture 2.0

En tant qu'utilisateur je fais une recherche avancée avec comme critère "annotation"
J'ai une erreur Unexpected token '<' " " ... is not valid JSON qui pop
Dans la console :

Proposition de correctif par le client dans le fichier : /var/www/html/MaarchCourrier/src/app/search/controllers/SearchController.php

Remplacé

                if ($note['user_id'] == $GLOBALS['id']) {

par

                if ($note['user_id'] ?? '' == $GLOBALS['id']) {

Non reproduit sur nos instances (pas de warning actif)

Cible : 2301 et 24


Fichiers

clipboard-202501221605-s5fyg.png (14 ko) clipboard-202501221605-s5fyg.png Cynthia APURA, 22/01/2025 16:05

Demandes liées 1 (0 ouverte1 fermée)

Copié depuis Backlog Courrier - Anomalie #32181: REVIEW - Recherche avancée : Recherche par critère d'annotation erreur "Unexpected token '<' " " ... is not valid JSON" si les warning sont activés au niveau de PHPR&D - TerminéJoseph AKEL19/11/2024Actions

Mis à jour par Joseph AKEL il y a 12 jours

  • Copié depuis Anomalie #32181: REVIEW - Recherche avancée : Recherche par critère d'annotation erreur "Unexpected token '<' " " ... is not valid JSON" si les warning sont activés au niveau de PHP ajouté

Mis à jour par Cynthia APURA il y a 12 jours

  • Sujet changé de REVIEW - Recherche avancée : Recherche par critère d'annotation erreur "Unexpected token '<' " " ... is not valid JSON" si les warning sont activés au niveau de PHP à REVIEW (24) - Recherche avancée : Recherche par critère d'annotation erreur "Unexpected token '<' " " ... is not valid JSON" si les warning sont activés au niveau de PHP
  • Statut changé de A qualifier à R&D - En cours

Mis à jour par GIT LAB il y a 12 jours

[CREATION] MR fix/32433/24.2.x (cible 24.2.x) par null

null

Mis à jour par Joseph AKEL il y a 12 jours

  • Statut changé de R&D - En cours à R&D - En test

Mis à jour par Jean-Laurent DUZANT il y a 11 jours

  • Statut changé de R&D - En test à R&D - Ready to merge

Mis à jour par Agnes GASTAMBIDE il y a 11 jours

  • Version cible changé de 24.2.2 à 24.2.3

Mis à jour par Joseph AKEL il y a 11 jours

  • Statut changé de R&D - Ready to merge à R&D - Terminé
Actions

Formats disponibles : Atom PDF