• Resolved Iyngvar

    (@iyngvar)


    Hi!

    If “Redirects detected bots to a 404 page on page load. Make sure your IP address is in the whitelist before activating (just in case)!” selected, plugin does not working and I see in my error-log:

    PHP Fatal error: Call to a member function set_404() on a non-object in plugins/botnet-blocker/botnet-blocker.php on line 231, referer: wp-admin/options-general.php?page=bnblocker_settings

    https://wordpress.org/plugins/botnet-blocker/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author achbed

    (@achbed)

    This should be fixed in v1.2.3.

    The issue was that we were blocking during an action that was before the global wp_query object was set up. We now check for bots in the pre_get_posts action, and set the query to a 404 at that point instead.

    Plugin Author achbed

    (@achbed)

    Marking resolved.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Fatal error: Call to a member function set_404()’ is closed to new replies.