Also, note these messages when attempting to log in:
Warning: session_destroy(): Trying to destroy uninitialized session in /web_dir/wp-content/plugins/book-a-room/sharedFunctions.php on line 119
ERROR: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support forums.
-
This reply was modified 7 years, 10 months ago by
speedy_snail.
-
This reply was modified 7 years, 10 months ago by
speedy_snail.
I put up a new update that should fix this. CAn you please try it?
Wow thanks for all the replies (on other tickets).
I’ve been busy, hence slight delay. Hoping to try all your suggestions out… I’ll reply as soon as I can.
Hi
Your fix mends the login warnings, but not the logout.
I changed this code in sharedFunctions.php, to fix the logout session warnings:
if( !function_exists( "myEndSession" ) ) {
function myEndSession() {
if (isset($_SESSION)) {
if (session_id()) {
session_destroy();
}
unset($_SESSION);
}
}
}
Thanks! I was going to add something similar, and I’d eventually like to move to transients instead of SESSION variables. I’ll get an updated version out soon.
Thanks! I appreciate that. I don’t know about transients, I’ll check them out.
This bug still occurs with the latest version
Warning: session_destroy(): Trying to destroy uninitialized session in /wp-content/plugins/book-a-room/sharedFunctions.php on line 119
Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/book-a-room/sharedFunctions.php:119) in /wp-includes/pluggable.php on line 1219
The fix I initially supplied seems to fix the issue.