• Resolved Roberto Pereira da Costa

    (@robertopc)


    Recently the plugin ived updated.
    And now we receive a PHP Fatal Error when access the wp-admin(only enabled block in backend).
    Only can see the error when enabled debug.log.
    Below is the debug.log output:

    [08-Mar-2019 15:04:26 America/Sao_Paulo] PHP Fatal error:  Uncaught Error: Call to undefined function IP2Location\bcadd() in /home/vagasriobr/html/wp-content/plugins/ip2location-country-blocker/class.IP2Location.php:992
    Stack trace:
    #0 /home/vagasriobr/html/wp-content/plugins/ip2location-country-blocker/class.IP2Location.php(1611): IP2Location\Database::ipVersionAndNumber('2804:214:8298:c...')
    #1 /home/vagasriobr/html/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php(2080): IP2Location\Database->lookup('2804:214:8298:c...', 1001)
    #2 /home/vagasriobr/html/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php(1404): IP2LocationCountryBlocker->get_location('2804:214:8298:c...', true)
    #3 /home/vagasriobr/html/wp-includes/class-wp-hook.php(286): IP2LocationCountryBlocker->check_block('')
    #4 /home/vagasriobr/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #5 /home/vagasriobr/html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #6 /home/vagasriobr/html/wp-settings.php(505): do_action(' in /home/vagasriobr/html/wp-content/plugins/ip2location-country-blocker/class.IP2Location.php on line 992

    The workaround was deactivate the plugin.

Viewing 1 replies (of 1 total)
  • Plugin Author ip2location

    (@ip2location)

    Hi,

    Please make sure you have BC Math extension enabled in your PHP.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error in wp-admin’ is closed to new replies.