Forum

Error after V7.0 up...
 
Notifications
Retirer tout

Error after V7.0 upgrade

2 Posts
2 Utilisateurs
0 Reactions
2,610 Vu
 LEGO
(@p-lego)
Posts: 1
New Member
Début du sujet
 
[#5090]

We get an error message when we try to create or copy an activity.

log file content :

2018-04-20 07:51:55.454 ===== TRACE ===== NEW CONNECTED USER 'Philippe'
2018-04-20 07:52:14.511 ===== TRACE ===== Cron started at 20/04/2018 07:52:14
2018-04-20 07:54:30.455 ** ERROR ** [V7.0.4] ERROR **
2018-04-20 07:54:30.456
** ERROR ** [V7.0.4] on file 'C:inetpubwwwrootprojeqtormodelMutex.php' at line (54)
2018-04-20 07:54:30.456
** ERROR ***** [V7.0.4] cause = count(): Parameter must be an array or an object that implements Countable

Thanks for your help.


 
Posté : 20 Avr AM 10:044
(@babynus)
Posts: 14952
Membre Admin
 

This is not due to migration of ProjeQtOr, but to migration of PHP.
This issue does not produce with PHP 7.0, but will on PHP 7.2 and possibly on PHP 7.1

Fi is to replace line 54 in /model/Mutex.php, from

    		if (count($rs)==0) {

to

    		if (!is_array($rs) or count($rs)==0) {

 
Posté : 20 Avr AM 11:044
Share:
Retour en haut