I am using my administrator account to create an acivity and each time I try I receive the following error message.
ERROR : stristr(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
in projeqtor.php
at line 2060
It then says there is a detailed log. I have attached that log for you.
Try and replace line 2060 in tool/projeqtor.php from
if(stristr($to,$curUser->email)){
to
if($curUser->email and stristr($to,$curUser->email)){
It did not fix the problem. It produced this error
ERROR : stristr(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
in projeqtor.php
at line 2060
Hi,
To help analyse, please add new line before previous one (before 2060)
debugLog($curUser->email);
Then change log level in parameters.php
logLovel=3;
Test and poste error lof here.
Hi,
Debug not displayed.
I guess you did not change the correct file.
The log file still shows issue on line 2060.
If you had correctly added line before line 2060, error should now be at line 2061
And you changed
$logLevel='3';
in parameters.php ?
Yes parameters is at 3.
In fact logLevel is correct, as there are debug traces in the log file.
But executed code is not the one you changed.
In your printscreen of code, debug line in now in line 2060.
This pushes line with error in line 2061.
But error is still reported on line 2060.
So your change is not taken into account.
Please check that code is correctly updated.
Also try and restart PHP (come caching of code may occur).
I have checked and everything is correct. I restarted the PHP and the problem still occurs.
Do I have to assign the administrator account to the project?
Here is today's log after the PHP restarted and I tried to make an activity using the administrator account.
Can you just try and add an email to the admin account...
Wow, that fixed the problem. Took so long for something so small.
Glad it was resolved.
Thank you for your ongoing support.
Other idea : try and replace line 2060 in projeqtor.php from
if($curUser->email and stristr($to,$curUser->email)){
to
if($curUser->email and strpos($to,$curUser->email)!==false){
I will try that as well, the email thing did the job and fixed it anyway.
