Hi all,
A little bug in http server log :
[Mon Jan 10 17:42:47.155253 2022] [:error] [pid 7508:tid 1964] [client 127.0.0.1:59469] PHP Fatal error: Can't use function return value in write context in C:\Program Files (x86)\EasyPHP-Webserver-14.1b2\www\projeqtor\tool\saveObjectMultiple.php on line 76, referer: http://127.0.0.1:888/projeqtor/view/main.php?directAccess=true&objectClass=Project&objectId=000063
I open the file projeqtortoolsaveObjectMultiple.php at line 76 :
}elseif (!empty(RequestHandler::getValue('multipleUpdateValueList')) and isForeignKey($fieldSearch, $obj)){
The "empty" statement seem obsolete
I correct it as :
}elseif (RequestHandler::getValue('multipleUpdateValueList') and isForeignKey($fieldSearch, $obj)){
it's right ?
best regards
No, your PHP version does not allow
empty(function())
So fix is
$lst=RequestHandler::getValue('multipleUpdateValueList');
if(strpos($field, 'Element_'))$fieldSearch=substr($field,strpos($field, 't_')+2);
if(trim(RequestHandler::getValue('newMultipleUpdateValue'))!=''){
$newValue=RequestHandler::getValue('newMultipleUpdateValue');
}elseif (trim(RequestHandler::getValue('newMultipleUpdateValueNum'))!=''){
$newValue=RequestHandler::getValue('newMultipleUpdateValueNum');
}elseif (trim(RequestHandler::getValue('multipleUpdateTextArea'))!=''){
$newValue=RequestHandler::getValue('multipleUpdateTextArea');
}elseif (!empty($lst) and isForeignKey($fieldSearch, $obj)){
foreach ($lst as $idL=>$valList){
$newValue=$valList;
}
Fix will be published on V9.4.2
What is your version of PHP ?
Hi,
Thank for your reply 🙂
My version of PHP is 5.4.30 (in easyphp webserver 14.1. beta 1)
This version PHP is too old ?
Maybe i must change easyPHP to another product ?
best regards
Yes,
Check prerequisites : https://www.projeqtor.org/en/product-en/technical-en/64-setup-en/412-product-prerequisites-en
Projector V9.0 and over requires at least PHP 5.6.
