Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Error after V7.0 up...
 
Notifications
Clear all

Error after V7.0 upgrade

2 Posts
2 Users
0 Reactions
2,611 Views
 LEGO
(@p-lego)
Posts: 1
New Member
Topic starter
 
[#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.


 
Posted : 20 Apr 2018 10H07
(@babynus)
Posts: 14952
Member 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) {

 
Posted : 20 Apr 2018 11H06
Share:

Scroll to Top