After upgrading from V6.0.7 to V6.2.3
We are now unable to view the details of any kind of elements
All we get is this popup error :
"Une erreur technique est survenue probablement liée à une mauvaise connexion réseau.
Veuillez réessayer votre dernière opération.
Si le problème persiste, merci de contacter votre adminsitrateur.
Contactez votre administrateur
(l'erreur détaillée est consignée dans le fichier de log)"
Log file doesn't log anything, even with $logLevel='4';
1) clean browser cache and retry
2) post errors logged in browser console
Checked Chrome and got:
http://10.5.254.205/projeqtor.6.2.3/view/objectDetail.php?destinationWidth=899&destinationHeight=467&isIE= 500 (Internal Server Error)
i checked apache error_log and got :
[Wed May 03 17:13:14 2017] [error] [client 10.5.96.74] PHP Parse error: syntax error, unexpected '[' in /var/www/html/projeqtor.6.2.3/view/objectDetail.php on line 1573
// ADD BY Marc TABARY - 2017-02-22 - RESOURCE VISIBILITY (list teamOrga)
// Special case for idResource, idLocker, idAuthor, idResponsive
// Don't see or access to the resource if is not visible for the user connected (respect of HabilitationOther - teamOrga)
$arrayIdSpecial = ['idResource','idLocker', 'idAuthor', 'idResponsive']; // <=== LINE 1573
if (in_array($col,$arrayIdSpecial)) {
$idList = getUserVisibleResourcesList(true, "List");
if (!array_key_exists($val, $idList)) {
$displayComboButtonCol=false;
$displayDirectAccessButton=false;
}
}
// END ADD BY Marc TABARY - 2017-02-22 - RESOURCE VISIBILITY (list teamOrga)
What is your PHP version ?
PHP 5.3.3
It seems that syntax used is valid only for PHP 5.4 and over.
Replace line 1573 in view/objectDatail.php from
$arrayIdSpecial = ['idResource','idLocker', 'idAuthor', 'idResponsive'];
to
$arrayIdSpecial = array('idResource','idLocker', 'idAuthor', 'idResponsive');
Patch V6.2.4 deployed 😉
Working fine !
Thanks 🙂