Incorrect DATE value %

Installation & Configuration du logiciel
Répondre
ASIKOO
Gsup LEVEL 0
Messages : 1
Enregistré le : dim. 13 sept. 2020 09:45

Bonjour,

Je souhaite vous faire part d'une anomalie en utilisant GestSup.
Je tiens à préciser que j'ai cette erreur depuis de nombreux mois, n'utilisant pas encore GestSup, je me suis dis qu'avec une prochaine mise à jour cela serait corrigé. J'ai donc effectué la mise à niveau vers la version 3.2.0.

Mon problème ? Je ne peux voir aucun ticket (Par ex: rubrique : Tous les tickets avec la présence de chiffre indiquant que x tickets sont en attente de PEC). En activant le mode debug, je peux voir les informations suivantes :

Query SQL :

Code : Tout sélectionner

SELECT DISTINCT tincidents.id, tincidents.type, tincidents.technician, tincidents.t_group, tincidents.title, tincidents.user, tincidents.u_group, tincidents.u_service, tincidents.u_agency, tincidents.sender_service, tincidents.techread_date, tincidents.date_create, tincidents.date_hope, tincidents.date_res, tincidents.state, tincidents.priority, tincidents.criticality, tincidents.category, tincidents.subcat, tincidents.techread, tincidents.place, tincidents.asset_id
FROM tincidents
LEFT JOIN tstates ON tincidents.state=tstates.id
WHERE
tincidents.disable='0' AND
tincidents.sender_service LIKE '%' AND
tincidents.u_group LIKE '%' AND
tincidents.t_group LIKE '%' AND
tincidents.techread LIKE '%' AND
tincidents.category LIKE '%' AND
tincidents.subcat LIKE '%' AND
tincidents.asset_id LIKE '%' AND
tincidents.id LIKE '%' AND
tincidents.user LIKE '%' AND
tincidents.date_hope LIKE '%' AND
tincidents.priority LIKE '%' AND
tincidents.criticality LIKE '%' AND
tincidents.type LIKE '%' AND
tincidents.title LIKE '%%%' AND
tincidents.state LIKE '1' AND
tincidents.user LIKE '%' AND
tincidents.technician LIKE '%' AND
tincidents.date_create LIKE '%%' AND
tincidents.date_res LIKE '%%'
ORDER BY tstates.number,tincidents.priority,tincidents.criticality,tincidents.date_create DESC
LIMIT 0,14

Erreur :
VAR: POST_keywords= GET_keywords='' | POST_state=1 GET_state=1 state=AND tincidents.state LIKE '1' | POST_date_create=% GET_date_create=% | cnt_service= | GET_view= | POST_date_start= | POST_date_end= | cnt_agency=
Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1525 Incorrect DATE value: '%' in /home/www/dns-com/asikoo/www/gestsup/dashboard.php:508 Stack trace: #0 /home/www/dns-com/asikoo/www/gestsup/dashboard.php(508): PDO->query('\r\n\t\tSELECT SQL_...') #1 /home/www/dns-com/asikoo/www/gestsup/main.php(409): include('/home/www/dns-c...') #2 /home/www/dns-com/asikoo/www/gestsup/index.php(291): require('/home/www/dns-c...') #3 {main} thrown in /home/www/dns-com/asikoo/www/gestsup/dashboard.php on line 508

Configuration du serveur (que j'administre moi même) :
  • GestSup 3.2.0
  • Debian 9.9
  • Apache 2.4.25
  • PHP 7.3.5
  • MySQL Server 8.0.16

Si vous avez besoin de plus d'infos, je reste disponible :)

Cordialement,
ASIKOO
Modifié en dernier par ASIKOO le dim. 13 sept. 2020 10:48, modifié 1 fois.
Avatar du membre
Flox
Administrateur du site
Messages : 8973
Enregistré le : jeu. 21 juin 2012 19:00

Bonjour,

Pouvez-vous passer sur Maria dB puis installer la dernière version stable 3.2.1 et refaire un test ?

Cf https://gestsup.fr/index.php?page=suppo ... =server#32

A noter : Une mise à jour de MySQL en version 8.0.21 corrige également votre soucis

Cdt
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.4 | https://doc.gestsup.fr/
Répondre