PHP Warning: session_start(): Failed to read session data: user
-
Hi, digging in my logs while looking for performance optimization, I found a lot of this:
PHP Warning: session_start(): Failed to read session data: user (path: /var/lib/php/sessions)
After a lot of searches I found that this message could be caused from a read operation that returns null instead of empty string, so I made a workaround:
I’ve changed line 74 of wp-native-php-sessions/inc/class-session-handler.php from
return $session->get_data();
to
return $session->get_data() ?: '';
Is this correct? There is a better way to solve this problem?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘PHP Warning: session_start(): Failed to read session data: user’ is closed to new replies.