• Resolved Christopher

    (@cjsheps)


    Hi, for some reason when trying to add the Geo IP Database in Firewall setttings it just hangs on downloading it and never completes.

    API key is correct

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hi @cjsheps

    Hope you are doing fine!

    Could you try the following steps?

    1. Remove the license info.
    2. Save settings
    3. Add the license info again and save the settings. This should clear any issues with the connection to the MaxMind (GeoLite2) servers

    Please refer to the following link for more information:|
    https://wpmudev.com/docs/wpmu-dev-plugins/defender/#locations

    If you still have issues after performing the suggested steps, enable the WordPress debugging adding these lines of code in your wp-config.php file:

    // Enable WP_DEBUG mode
    define( 'WP_DEBUG', true );
    
    // Enable Debug logging to the /wp-content/debug.log file
    define( 'WP_DEBUG_LOG', true );
    
    // Disable display of errors and warnings
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    The code should added before this other line:

    /* That's all, stop editing! Happy blogging. */

    Find more info in the WordPress documentation:
    https://www.ads-software.com/documentation/article/debugging-in-wordpress/

    You can share the /wp-content/debug.log file via Google Drive, Dropbox or any cloud services in the next reply.

    Kind regards

    Luis

    Thread Starter Christopher

    (@cjsheps)

    Hi @wpmudev-support7

    I’m actually debugging at server level, here is the error logged following the download button click

    AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class "PharData" not found in /var/www/vhosts/XXXXXXXXXXX.co.uk/httpdocs/wp-content/plugins/defender-security/src/controller/blacklist.php:219\nStack trace:\n#0 /var/www/vhosts/XXXXXXXXXXX.co.uk/httpdocs/wp-content/plugins/defender-security/src/central.php(108): WP_Defender\\Controller\\Blacklist->download_geodb()\n#1 /var/www/vhosts/XXXXXXXXXXX.co.uk/httpdocs/wp-content/plugins/defender-security/src/central.php(85): WP_Defender\\Central->execute_intention()\n#2 /var/www/vhosts/XXXXXXXXXXX.co.uk/httpdocs/wp-includes/class-wp-hook.php(308): WP_Defender\\Central->routing()\n#3 /var/www/vhosts/XXXXXXXXXXX.co.uk/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#4 /var/www/vhosts/XXXXXXXXXXX.co.uk/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#5 /var/www/vhosts/XXXXXXXXXXX.co.uk/httpdocs/wp-admin/admin-ajax.php(188): do_action()\n#6 {main}\n thrown in /var/www/vhosts/XXXXXXXXXXX.co.uk/httpdocs/wp-content/plugins/defender-security/src/controller/bla...', referer: https://XXXXXXXXXXX.co.uk/wp-admin/admin.php?page=wdf-ip-lockout&view=blocklist
    Thread Starter Christopher

    (@cjsheps)

    Hi @wpmudev-support7

    I have fund the reason why the database wont download.

    We run a very streamlined setup on our server, only the needed Apache and PHP modules are activated.

    Reading through the logs I have now realised that you need the PHP module PHAR activated

    PHAR
    
    The phar extension provides a way to put entire PHP
    applications into a single file called a "phar" (PHP
    Archive) for easy distribution and installation.

    I’m wondering will you ever included a section to defender warning of server issues relating to setup like this?

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @cjsheps,

    Glad to hear you have managed to find out the core issue. I have brought this further to our Defender teams attention in order to check what further improvements that could be implemented within the plugin side for such use cases.

    Thanks for bringing into our attention.

    Best Regards,

    Nithin

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @cjsheps,

    By default, the PHAR modules are enabled out of the box on servers, so the chances of encountering such an issue are very low. Since you have a custom setup our team is checking on what aspects this could be improved in the plugin side.

    However, we have updated the plugin documentation regarding this here:
    https://wpmudev.com/docs/wpmu-dev-plugins/defender/#locations

    Since it’s already been addressed to our team, and since you have already resolved the issue, I’ll mark this thread as resolved for now.

    Please feel free to re-open the thread for any further queries.

    Kind Regards,

    Nithin

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Geo IP Database wont download’ is closed to new replies.