Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author IP2Location

    (@ip2location)

    You may access your website using a vpn from other country and make the changes.

    Plugin Author IP2Location

    (@ip2location)

    To simplify the bypass, i have added one secret code for this purpose. Please download the v1.5.0 version.

    jsobell

    (@jsobell)

    Redirects fail on my installations because the check is performed after some header information has been sent.
    I fixed it by changing index.php:

    add_action('wp_head', array('IP2LocationCountryBlocker', 'check'), 1);

    to

    add_action('send_headers', array('IP2LocationCountryBlocker', 'check'), 1);

    Cheers,
    Jason

    Plugin Author IP2Location

    (@ip2location)

    Hi Jason,
    Thank you for sharing with us the solution to your problem. It’s great to know that send_headers event solved your issues. We will look into this.

    Thanks.

    Perhaps you should look at implementing this in the current version so we don’t have to reapply the fix every time we upgrade?
    This isn’t a fix specific to us, as it’s going to be incorrect on every site with a theme or plugin that adds to headers.

    Cheers,
    Jason

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

The topic ‘Stop redirect’ is closed to new replies.