-
Notifications
You must be signed in to change notification settings - Fork 115
Session error #168
Comments
Please change table engine to MYISAM |
Why he should do this? |
Do you have some customized login code? |
Its about INNODB binding the |
Thats right. But its an error in 2moons somewhere that tryinig to save an session without an userId |
The we should log the actions. |
Hello i have a custom login page PS: tested with MYISAM instead of MEMORY, i didnt changed the problem still exist Regards |
Maybe you can add a |
Hello jan i was able to reproduce the error, i have some ajax files that is working when you are logged in but that trigger that error when you are not logged in, so i maybe things its some one or a bot visiting those page and refreshing non stop as i was able to add my own session id and error in the logs, Anyway, is there a way to check if a user is really logged in ? That is my default ajax code at the begin of the file define('MODE', 'BANNER'); $session = Session::load(); if(empty($USER)) |
Somethink like
|
The concept of the session code is bad. |
Really weird my game doesnt generate that error on VESTACP as i just tried it again but i really want to use cpanel/whm [24-Apr-2016 17:42:34 Europe/Berlin] PHP Fatal error: Uncaught exception 'Exception' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'userID' cannot be null |
But i looks better for me. With this, I can fix it in 2moons. |
Hello jan, i just want to thanks you :) |
Hi, your are welcome. Anyway, i don't have any idea. Did you have any errors with CPanel? (Maybe Force override the error log level/path). Maybe CPanel has less strict MySQL options. Anyway, you don't need to make a money donation. If you push your fixes to GitHub, it would the enough. |
#150 fix for phalanx overview activity + recycle being shown
Hello nothing really changed since days exept for my vps hosting compagny and i suddently experience huge error logs file with the same error, sessionID might change, if i install using vestacp i have no problems once installed on a cpanelwhm server i get this error alot alot alot what can i do
[06-Mar-2016 03:49:28 Europe/Brussels] PHP Fatal error: Uncaught exception 'Exception' with message 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'userID' cannot be null
Query-Code:REPLACE INTO uni1_session SET
sessionID = 1ab21af39d2ebcb7e81fedcf18028e58,
userID = ,
lastonline = 1457232568,
userIP = 80.200.59.250;' in /home/xterium/public_html/includes/classes/Database.class.php:109
Stack trace:
#0 /home/xterium/public_html/includes/classes/Database.class.php(152): Database->_query('REPLACE INTO %%...', Array, 'replace')
#1 /home/xterium/public_html/includes/classes/Session.class.php(229): Database->replace('REPLACE INTO %%...', Array)
#2 [internal function]: Session->save()
#3 {main}
thrown in /home/xterium/public_html/includes/classes/Database.class.php on line 109
The text was updated successfully, but these errors were encountered: