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.

Exception after adm...
 
Notifications
Clear all

Exception after admin login

5 Posts
2 Users
0 Reactions
4,811 Views
(@rojas11)
Posts: 4
Active Member
Topic starter
 
[#2326]

I have one exception after the admin login.

thi is mi error log:

2015-05-21 11:02:42 ===== TRACE ===== NEW CONNECTED USER 'admin'
2015-05-21 11:02:42 ===== TRACE ===== 'user' is not an instance of User class. May be a hacking attempt from IP 10.0.0.159
2015-05-21 11:02:42 ===== TRACE ===== IP CLient=10.0.0.159
2015-05-21 11:02:42 ===== TRACE ===== $_REQUEST[id]=screenWidth
2015-05-21 11:02:42 ===== TRACE ===== $_REQUEST[value]=1440
2015-05-21 11:02:42 ** ERROR ** EXCEPTION **
2015-05-21 11:02:42
** ERROR ** on file '/opt/projeqtor/tool/projeqtor.php' at line (128)
2015-05-21 11:02:42
** ERROR ** cause = Invalid access attempt
2015-05-21 11:02:42
** ERROR ** => #0 /opt/projeqtor/tool/saveDataToSession.php (30) -> require_once()
2015-05-21 11:02:42 ===== TRACE ===== 'user' is not an instance of User class. May be a hacking attempt from IP 10.0.0.159
2015-05-21 11:02:42 ===== TRACE ===== IP CLient=10.0.0.159
2015-05-21 11:02:42 ===== TRACE ===== $_REQUEST[id]=screenHeight
2015-05-21 11:02:42 ===== TRACE ===== $_REQUEST[value]=900
2015-05-21 11:02:42
** ERROR ** EXCEPTION **
2015-05-21 11:02:42 ** ERROR ** on file '/opt/projeqtor/tool/projeqtor.php' at line (128)
2015-05-21 11:02:42 ** ERROR ** cause = Invalid access attempt
2015-05-21 11:02:42 ** ERROR ** => #0 /opt/projeqtor/tool/saveDataToSession.php (30) -> require_once()
2015-05-21 11:02:42 ===== TRACE ===== 'user' is not an instance of User class. May be a hacking attempt from IP 10.0.0.159
2015-05-21 11:02:42 ===== TRACE ===== IP CLient=10.0.0.159
2015-05-21 11:02:42 ** ERROR ** EXCEPTION **
2015-05-21 11:02:42
** ERROR ** on file '/opt/projeqtor/tool/projeqtor.php' at line (128)
2015-05-21 11:02:42
** ERROR ** cause = Invalid access attempt
2015-05-21 11:02:42
** ERROR ***** => #0 /opt/projeqtor/view/main.php (36) -> require_once()


 
Posted : 21 May 2015 14H05
(@rojas11)
Posts: 4
Active Member
Topic starter
 

clean browser cache: done

stop an restart PHP server: done

delete sessions files from /var/lib/php/sessions: done

but the problem still

Please help


 
Posted : 21 May 2015 14H32
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Issue in linked to another application you are also logged in, on same server.

The message you get : 'user' is not an instance of User class.
is because the other application also uses $_SESSION['user'] variable to store some connection information, but not on same format as PrpjeQtOr.
So you must be sure to clean the session

What you did is very good and should have solved the issue (as it does on 90% of cases)
What is possible is that session is not completely cleared.
For instance, the browser can keep things. If you use Chrome, take care to kill all Chrome prcesses (closing browser is not enough)

Best way to test is to use another browser you did not use to connect ot naother application.

For information, on V5 there will be a workaround to avoid this issue.


 
Posted : 21 May 2015 17H47
(@rojas11)
Posts: 4
Active Member
Topic starter
 

I solved the problem. :woohoo:

The cause was in php.ini
session.auto_start was 'on', my solution was edit my php.ini file and change 'session.auto_start=1' to 'session.auto_start=0';

Thanks for the help.


 
Posted : 21 May 2015 20H50
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Thank you for sharing your solution.

It may be good help for other users 😉


 
Posted : 21 May 2015 20H58
Share:

Scroll to Top