Forum

Administrator Accou...
 
Notifications
Retirer tout

Administrator Account Not able to create an Activity in Project

15 Posts
2 Utilisateurs
0 Reactions
5,552 Vu
(@iconic)
Posts: 280
Active Member
Début du sujet
 
[#6695]

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.


 
Posté : 11 Mai AM 03:055
(@babynus)
Posts: 14952
Membre Admin
 

Try and replace line 2060 in tool/projeqtor.php from

    if(stristr($to,$curUser->email)){

to

    if($curUser->email and stristr($to,$curUser->email)){

 
Posté : 11 Mai PM 18:055
(@iconic)
Posts: 280
Active Member
Début du sujet
 

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


 
Posté : 12 Mai AM 09:055
(@babynus)
Posts: 14952
Membre Admin
 

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.


 
Posté : 12 Mai AM 11:055
(@iconic)
Posts: 280
Active Member
Début du sujet
 

Done as asked. The log is attached.


 
Posté : 14 Mai AM 06:055
(@babynus)
Posts: 14952
Membre Admin
 

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


 
Posté : 18 Mai PM 20:055
(@iconic)
Posts: 280
Active Member
Début du sujet
 

I did exactly as you told me. Here is an image of what I did.


 
Posté : 19 Mai AM 04:055
(@babynus)
Posts: 14952
Membre Admin
 

And you changed

 $logLevel='3';

in parameters.php ?


 
Posté : 22 Mai PM 18:055
(@iconic)
Posts: 280
Active Member
Début du sujet
 

Yes parameters is at 3.


 
Posté : 25 Mai AM 02:055
(@babynus)
Posts: 14952
Membre Admin
 

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).


 
Posté : 25 Mai AM 10:055
(@iconic)
Posts: 280
Active Member
Début du sujet
 

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.


 
Posté : 26 Mai AM 04:055
(@babynus)
Posts: 14952
Membre Admin
 

Can you just try and add an email to the admin account...


 
Posté : 26 Mai PM 12:055
(@iconic)
Posts: 280
Active Member
Début du sujet
 

Wow, that fixed the problem. Took so long for something so small.
Glad it was resolved.

Thank you for your ongoing support.


 
Posté : 26 Mai PM 12:055
(@babynus)
Posts: 14952
Membre Admin
 

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){

 
Posté : 26 Mai PM 13:055
(@iconic)
Posts: 280
Active Member
Début du sujet
 

I will try that as well, the email thing did the job and fixed it anyway.


 
Posté : 26 Mai PM 14:055
Share:
Retour en haut