Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Login #90

Open
arkasshun opened this issue Mar 8, 2018 · 7 comments
Open

Unable to Login #90

arkasshun opened this issue Mar 8, 2018 · 7 comments

Comments

@arkasshun
Copy link

Unable to login after installation

Httpd error Log shows the following
PHP Warning: session_start(): Failed to read session data: user (path: /var/lib/php/session) in /var/www/html/ino71/inoerp_server/includes/general_class/class_ino_session.inc on line 294
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/ino71/inoerp_server/extensions/comment/class_extn_comment.inc on line 241

@azizrahaman
Copy link

Same here, did you get any solution?

@TheCAIRN
Copy link

In function session_read, return values must be strings rather than boolean. Change return false; on line 233 to return ''; Change return true; on line 246 to return serialize($user_i->session_data);

Also, session_destroy() must return a boolean. Add return true; at line 275.

@DaveZest
Copy link

Having had the same issue as the previous commentors, I implemented the solutions put forth by
TheCAIRN (thank you for that), unfortunately I now have this error message.

Warning: session_start(): Failed to read session data: user (path: C:\xampp\tmp)
in C:\xampp\inoerp_server\includes\general_class\class_ino_session.inc on line 295

Any ideas how this might be overcome???

@TheCAIRN
Copy link

TheCAIRN commented Jun 23, 2018 via email

@DaveZest
Copy link

DaveZest commented Jun 23, 2018 via email

@TheCAIRN
Copy link

It looks like you still have a boolean return in session_read, so we may not be on exactly the same revision. I believe this would be around line 231.

if ($user_a) {
$user_i = $user_a[0];
} else {
return true;
}

needs to become

if ($user_a) {
$user_i = $user_a[0];
} else {
return '';
}

@DaveZest
Copy link

DaveZest commented Jun 24, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants