[openaria-Bugs][#8710] Warning: array_key_exists() à cause de l'entrée extras manquante dans dyn/database.inc.php

0 views
Skip to first unread message

openar...@adullact.net

unread,
Mar 23, 2017, 11:08:55 AM3/23/17
to nor...@adullact.net
openaria-Bugs [#8710] was changed at 2017-03-23 15:08 by Florent MICHON
You can respond by visiting:
https://adullact.net/tracker/?func=detail&atid=2108&aid=8710&group_id=805

>Status: Closed
Priority: 1
Submitted By: francois raynaud (fraynaud)
>Assigned to: Florent MICHON (fmichon)
Summary: Warning: array_key_exists() à cause de l'entrée extras manquante dans dyn/database.inc.php
>Version cible: prochaine_version
Version concernée: 1.0.0


Initial Comment:
Le parametre extras de database.inc.php n est pas valorisé et produit une erreur :

Warning: array_key_exists() expects parameter 2 to be array, string given in /var/www/html/openaria/version/openaria-1.0.0/core/om_application.class.php on line 6280

Il faut donc le valorisé en ajoutat la ligne : "extras" => array(null,),
Ce qui donne comme parametrage par defaut de ce fichier :
$conn[1] = array(
"openExemple", // Titre
"pgsql", // Type de base
"pgsql", // Type de base
"postgres", // Login
"postgres", // Mot de passe
"tcp", // Protocole de connexion
"localhost", // Nom d'hote
"5432", // Port du serveur
"", // Socket
"openaria", // Nom de la base
"AAAA-MM-JJ", // Format de la date
"openaria", // Nom du schéma
"", // Préfixe
null, // Paramétrage pour l'annuaire LDAP
null, // Paramétrage pour le serveur de mail
null, // Paramétrage pour le stockage des fichiers
"extras" => array(null,),
);


----------------------------------------------------------------------

>Comment By: Florent MICHON (fmichon)
Date: 23/03/2017 15:08

Message:
Correction effectuée.
=> https://adullact.net/scm/viewvc.php/openaria?view=revision&revision=2147

----------------------------------------------------------------------

Comment By: Florent MICHON (fmichon)
Date: 03/03/2017 10:38

Message:
Bonjour,

Pour une meilleure lisibilité, je renomme ce ticket de "installation version 1.0.0" en "Warning: array_key_exists() à cause de l'entrée extras manquante dans dyn/database.inc.php".

Florent.

----------------------------------------------------------------------

Comment By: Florent MICHON (fmichon)
Date: 03/03/2017 10:36

Message:
Bonjour,

Ce problème vient du framework. La méthode ne vérifie pas l'existence de l'entrée de tableau "extras" de manière transparente. Un ticket existe à ce sujet : https://adullact.net/tracker/?func=detail&group_id=265&aid=8672&atid=1998

La solution de contournement est effectivement la déclaration de l'entrée extras dans le script dyn/database.inc.php.

Florent.

----------------------------------------------------------------------

You can respond by visiting:
https://adullact.net/tracker/?func=detail&atid=2108&aid=8710&group_id=805

openar...@adullact.net

unread,
Mar 23, 2017, 2:19:58 PM3/23/17
to nor...@adullact.net
openaria-Bugs [#8710] was changed at 2017-03-23 18:19 by Florent MICHON
You can respond by visiting:
https://adullact.net/tracker/?func=detail&atid=2108&aid=8710&group_id=805

Status: Closed
Priority: 1
Submitted By: francois raynaud (fraynaud)
Assigned to: Florent MICHON (fmichon)
Summary: Warning: array_key_exists() à cause de l'entrée extras manquante dans dyn/database.inc.php
>Version cible: 1.2.0
Reply all
Reply to author
Forward
0 new messages