I don't understand these errors

Looking at my error log today I find a fairly large number of errors spread over the last few days that resemble these-

[Sat Aug 01 01:13:06.466557 2015] [:error] [pid 8982] [client 63.141.227.74:55883] PHP Fatal error: Call to undefined function is_user_logged_in() in /home/vin0g3nic/public_html/wp-includes/query.php on line 3044
[Sat Aug 01 00:25:54.720314 2015] [:error] [pid 7761] [client 173.204.85.217:43758] PHP Fatal error: Call to undefined function is_user_logged_in() in /home/vin0g3nic/public_html/wp-includes/query.php on line 3044
[Fri Jul 31 20:48:26.465573 2015] [:error] [pid 3241] [client 209.85.238.88:43093] PHP Fatal error: Call to undefined function is_user_logged_in() in /home/vin0g3nic/public_html/wp-includes/query.php on line 3044
[Fri Jul 31 20:26:28.548884 2015] [:error] [pid 2922] [client 82.103.128.63:33438] PHP Fatal error: Call to undefined function is_user_logged_in() in /home/vin0g3nic/public_html/wp-includes/query.php on line 3044
[Fri Jul 31 12:25:54.740170 2015] [:error] [pid 25368] [client 69.59.28.19:51419] PHP Fatal error: Call to undefined function is_user_logged_in() in /home/vin0g3nic/public_html/wp-includes/query.php on line 3044
[Fri Jul 31 11:25:54.796622 2015] [:error] [pid 24393] [client 72.46.130.42:54386] PHP Fatal error: Call to undefined function is_user_logged_in() in /home/vin0g3nic/public_html/wp-includes/query.php on line 3044
[Fri Jul 31 10:27:52.117844 2015] [:error] [pid 22663] [client 104.197.95.81:17662] PHP Fatal error: Call to undefined function is_user_logged_in() in /home/vin0g3nic/public_html/wp-includes/query.php on line 3044

I'm using WordFence whics is blocking a large number of IPs but would that trigger these errors?

Thanks,
Larry

  • Adam Czajczyk

    Hey Larry,

    I hope you're well today and thank you for your question!

    This error means that some plugin or a theme function is trying to call the "is_user_logged_in()" function which is a part of WordPress core. As far as I'm aware WordFence shouldn't trigger this error, unless it's an older version which is not compatible with newest WordPress.

    The function in question is a "pluggable" function meaning that it's being called after all other functions and if any plugin or theme is using it it will throw an error if used improperly.

    That said, here's what I'd suggest:

    1. Update all your plugins and the theme you're using to a most current, up-to-date version.

    If this doesn't help, it's time to run a full conflict test. To do this, please follow this steps:

    1. Revert to default Twenty Fifteen theme and see if there's no error and everything's working fine.
    2. In case no luck with it - disable all the plugins at once and then enable them one-by-one each time checking for an issue.

    This way you should be able to identify the plugin (or theme) that's causing this error and we should be able to further investigate it.

    Let me know how it went, please!

    Cheers,
    Adam

  • Adam Czajczyk

    Hey Larry,

    Thanks for this information!

    I think that despite what I've said before, the easiest way would be to try to disable Wordfence just eliminate it for sure. I haven't ever encountered such an error as a result of using Wordfence but one can never know - it's possible that they didn't manage to update/rewrite some module to "catch up" with recent WP releases.

    I'd also like to take a closer look at your setup if it's possible. Would you be so kind and grant me a support access using our WPMU DEV Dashboard plugin?

    To do this, please follow the guide here:
    https://premium.wpmudev.org/manuals/wpmu-dev-dashboard-enabling-staff-login/

    Cheers,
    Adam

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.