Call to undefined function is_logged_in()
Technically you can see this bug but you have to look in a file called error_log in the installation's root. Or, more accurately, someone running a real QP would have to look. I have it in all my QP5 installations and the source of the error is the same in QP-latest right now.
/qp_inc/_core/_misc.funcs.php:
What I did on 2 installations is to replace the undefined function with what the undefined function does:
Putting that in human-friendly terms: IF (current_User is an object AND that object has ID set) AND debug for visitors is not true THEN get out. That was the idea behind "debug_visitors" but we probably tested it and found no problem but didn't log out and test it and check error logs. Heck I dunno if I even get the same file created when I run on localhost.
Anyway if someone running real QP could confirm or deny this error and this fix I'll branch it up and submit it.
/qp_inc/_core/_misc.funcs.php:
- Code: Select all
if( ! is_logged_in() && ! $debug_visitors )
{ // No debug for visitors
return;
}
What I did on 2 installations is to replace the undefined function with what the undefined function does:
- Code: Select all
global $current_User;
if( ! ( is_object( $current_User ) && ! empty( $current_User->ID ) ) && ! $debug_visitors )
{
// No debug for visitors
return;
}
Putting that in human-friendly terms: IF (current_User is an object AND that object has ID set) AND debug for visitors is not true THEN get out. That was the idea behind "debug_visitors" but we probably tested it and found no problem but didn't log out and test it and check error logs. Heck I dunno if I even get the same file created when I run on localhost.
Anyway if someone running real QP could confirm or deny this error and this fix I'll branch it up and submit it.
-
EdB
Dracone
- Posts: 2072
- Joined: Sun Nov 22, 2009 7:20 am
- Location: Maricopa Arizona