Projet

Général

Profil

Actions

Anomalie #32181

fermé

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é par Cynthia APURA il y a environ 2 mois. Mis à jour il y a 29 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é vers Backlog Courrier - Anomalie #32433: 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 PHPR&D - TerminéJoseph AKEL19/11/2024Actions

Mis à jour par Cynthia APURA il y a environ 2 mois

  • Statut changé de A qualifier à R&D - A étudier
  • Assigné à Cynthia APURA supprimé
  • Priorité changé de 2-Sérieux à 1-Majeur

Mis à jour par Cynthia APURA il y a environ 2 mois

Mis à jour par Cynthia APURA il y a environ 2 mois

  • Sujet changé de REVIEW - Recherche avancée : Recherche par critère d'annotation erreur "Unexpected token '<' " " is not valid JSON" à REVIEW - Recherche avancée : Recherche par critère d'annotation erreur "Unexpected token '<' " " ... is not valid JSON"

Mis à jour par Cynthia APURA il y a environ 2 mois

  • Description mis à jour (diff)

Mis à jour par Emmanuel DILLARD il y a environ 2 mois

  • Sujet changé de REVIEW - Recherche avancée : Recherche par critère d'annotation erreur "Unexpected token '<' " " ... is not valid JSON" à 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
  • Description mis à jour (diff)
  • Statut changé de R&D - A étudier à R&D - A planifier

Mis à jour par Joseph AKEL il y a environ un mois

  • Assigné à mis à Joseph AKEL

Mis à jour par Cynthia APURA il y a environ un mois

  • Statut changé de R&D - A planifier à R&D - En cours
  • Version cible mis à 2301.4.7

Mis à jour par Joseph AKEL il y a environ un mois

  • Copié vers Anomalie #32433: 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é

Mis à jour par Joseph AKEL il y a environ un mois

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

Mis à jour par Joseph AKEL il y a 29 jours

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

Formats disponibles : Atom PDF