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.

Real work allocatio...
 
Notifications
Clear all

Real work allocation problem in 3.2

4 Posts
2 Users
0 Reactions
3,254 Views
Evgueni Kolossov
(@ekolossov)
Posts: 566
Contributor
Topic starter
 
[#1021]

2013-03-14 16:54:28 ** ERROR ** ERROR **
2013-03-14 16:54:28
** ERROR ** on file '/var/www/localhost/htdocs/projectorria/model/ImputationLine.php' at line (285)
2013-03-14 16:54:28
** ERROR ***** cause = Array to string conversion


 
Posted : 14 Mar 2013 19H57
(@babynus)
Posts: 14952
Member Admin
 

Hi,

Issue fixed.
Stange it generates an error for you.
For me it does not and generates an "Array" text for the array instead of generating an error.
What is your PHP version ?

Fix is easy, just comment line 285 in /model/ImputationLine.php (a call to scriptLog) :

private static function getParent($elt, $result, $direct=true){
//scriptLog("      => ImputationLine->getParent($elt->refType#$elt->refId, $result, $direct)");	

 
Posted : 14 Mar 2013 22H06
(@babynus)
Posts: 14952
Member Admin
 

Found the reason.
It is a PHP 5.4 backyard incompatibility

Converting an array to a string will now generate an E_NOTICE level error, but the result of the cast will still be the string "Array".

You are using PHP 5.4, aren't you ?


 
Posted : 14 Mar 2013 22H11
Evgueni Kolossov
(@ekolossov)
Posts: 566
Contributor
Topic starter
 

Yes, we are using 5.4


 
Posted : 15 Mar 2013 12H20
Share:

Scroll to Top