• Resolved stewratwebways

    (@stewratwebways)


    Hi.

    I have just installed the plugin for the first time and getting used to it.

    So far all looks excellent except that I have noticed a conflict with BackUpWordPress (https://ww.wp.xz.cn/plugins/backupwordpress/).

    When IP Geoblock is activated the backup plugin doesn’t work. No error message, it just makes a start, waits a few seconds and stops. When I deactivate IP Geoblock the backup plugin works.

    I have removed / reinstalled BackUpWordPress but still no joy.

    Any help would be appreciated as I use BackUpWordPress on a number of sites.

    Thanks in advance.

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

    (@tokkonopapa)

    Hi @stewratwebways,

    Thank you for your reporting this issue. I tested BackUpWordPress by myself and found the reason and solution.

    You can find something like the following message when you push “Show information” at “Installation information” in “Plugin settings” section on this plugin’s setting page:

    – 2017-03-11 00:09:35 wp-zep POST:/wp-admin/admin-ajax.php(action=hm_backdrop_run)

    This means that the request to admin-ajax.php was blocked by IGB. And this request was executed by calling WordPress core function wp_remote_post() when cron job was spawned.

    Unfortunately, IGB can’t handle capably this type of internal request to the admin-ajax.php.

    There are 2 ways to avoid this type of blocking. One is to use ip-geo-block-bypass-admins action filter. When you select ““init” action hook” as “Validation timing“, please put the following snippet into your functions.php to bypass “Prevent Zero-day Exploit“.

    function my_bypass_admins( $queries ) {
        $whitelist = array(
            'hm_backdrop_run',
        );
        return array_merge( $queries, $whitelist );
    }
    add_filter( 'ip-geo-block-bypass-admins', 'my_bypass_admins' );

    And the 2nd one is to install the beta version 3.0.2b from https://github.com/tokkonopapa/WordPress-IP-Geo-Block/archive/3.0.2.zip

    Please deactivate IGB once, download 3.0.2.zip, unzip it, then upload ip-geo-block folder to your “/wp-content/plugins/”. Overwriting should be OK. After activating IGB again, you can see the following section on the setting page:

    Exceptions for Admin ajax/post

    And please check hm_backdrop_run and save settings. This can bypass not only “Prevent Zero-day Exploit” but also “Block by country”.

    Sorry for bothering you but I hope you to try it.
    Thanks.

    Thread Starter stewratwebways

    (@stewratwebways)

    Great!

    Many thanks for the speedy reply.

    I decided to go with the new beta version and all looks good.

    Much appreciated.

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

The topic ‘Conflict With BackUpWordPress’ is closed to new replies.