Forum

V6.2.3 Unable to se...
 
Notifications
Retirer tout

V6.2.3 Unable to see elements details

8 Posts
2 Utilisateurs
0 Reactions
7,776 Vu
(@kimuji)
Posts: 4
Active Member
Début du sujet
 
[#4323]

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';


 
Posté : 3 Mai PM 19:055
(@babynus)
Posts: 14952
Membre Admin
 

1) clean browser cache and retry
2) post errors logged in browser console


 
Posté : 3 Mai PM 19:055
(@kimuji)
Posts: 4
Active Member
Début du sujet
 

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)

 
Posté : 3 Mai PM 19:055
(@babynus)
Posts: 14952
Membre Admin
 

What is your PHP version ?


 
Posté : 3 Mai PM 19:055
(@kimuji)
Posts: 4
Active Member
Début du sujet
 

PHP 5.3.3


 
Posté : 3 Mai PM 19:055
(@babynus)
Posts: 14952
Membre Admin
 

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');

 
Posté : 3 Mai PM 19:055
(@babynus)
Posts: 14952
Membre Admin
 

Patch V6.2.4 deployed 😉


 
Posté : 3 Mai PM 20:055
(@kimuji)
Posts: 4
Active Member
Début du sujet
 

Working fine !
Thanks 🙂


 
Posté : 4 Mai AM 11:055
Share:
Retour en haut