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.

Administrator Accou...
 
Notifications
Clear all

Administrator Account Not able to create an Activity in Project

15 Posts
2 Users
0 Reactions
5,568 Views
(@iconic)
Posts: 280
Active Member
Topic starter
 
[#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.


 
Posted : 11 May 2020 3H35
babynus
(@babynus)
Posts: 14966
Main Contributor 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)){

 
Posted : 11 May 2020 18H01
(@iconic)
Posts: 280
Active Member
Topic starter
 

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


 
Posted : 12 May 2020 9H11
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 12 May 2020 11H09
(@iconic)
Posts: 280
Active Member
Topic starter
 

Done as asked. The log is attached.


 
Posted : 14 May 2020 6H45
babynus
(@babynus)
Posts: 14966
Main Contributor 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


 
Posted : 18 May 2020 20H09
(@iconic)
Posts: 280
Active Member
Topic starter
 

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


 
Posted : 19 May 2020 4H46
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

And you changed

 $logLevel='3';

in parameters.php ?


 
Posted : 22 May 2020 18H50
(@iconic)
Posts: 280
Active Member
Topic starter
 

Yes parameters is at 3.


 
Posted : 25 May 2020 2H47
babynus
(@babynus)
Posts: 14966
Main Contributor 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).


 
Posted : 25 May 2020 10H43
(@iconic)
Posts: 280
Active Member
Topic starter
 

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.


 
Posted : 26 May 2020 4H08
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 26 May 2020 12H52
(@iconic)
Posts: 280
Active Member
Topic starter
 

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

Thank you for your ongoing support.


 
Posted : 26 May 2020 12H57
babynus
(@babynus)
Posts: 14966
Main Contributor 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){

 
Posted : 26 May 2020 13H00
(@iconic)
Posts: 280
Active Member
Topic starter
 

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


 
Posted : 26 May 2020 14H05
Share:

Scroll to Top