Title: PHP Fatal error: Errors in Error Log
Last modified: September 7, 2019

---

# PHP Fatal error: Errors in Error Log

 *  Resolved [ahau](https://wordpress.org/support/users/ahau/)
 * (@ahau)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/errors-in-error-log-9/)
 * The following is coming up multiple times in the error log
    ———————————————- [
   07-Sep-2019 08:38:56 UTC] PHP Fatal error: Uncaught Error: Call to undefined 
   function IP2Location\bcadd() in /wp-content/plugins/ip2location-country-blocker/
   class.IP2Location.php:992 Stack trace: #0 /wp-content/plugins/ip2location-country-
   blocker/class.IP2Location.php(1611): IP2Location\Database::ipVersionAndNumber(‘
   2406:5a00:c83:b…’) #1 /wp-content/plugins/ip2location-country-blocker/ip2location-
   country-blocker.php(2186): IP2Location\Database->lookup(‘2406:5a00:c83:b…’, 1001)#
   2 /wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.
   php(1550): IP2LocationCountryBlocker->get_location(‘2406:5a00:c83:b…’, true) #
   3 /wp-includes/class-wp-hook.php(286): IP2LocationCountryBlocker->check_block(”)#
   4 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #5/
   wp-includes/plugin.php(465): WP_Hook->do_ac in /wp-content/plugins/ip2location-
   country-blocker/class.IP2Location.php on line 992 ———————————
 * What can I do to fix this?
    Thank you for your time 🙂

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

 *  Plugin Author [IP2Location](https://wordpress.org/support/users/ip2location/)
 * (@ip2location)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/errors-in-error-log-9/#post-11915873)
 * Please make sure you have bcmath extension enabled in your PHP.
 *  Thread Starter [ahau](https://wordpress.org/support/users/ahau/)
 * (@ahau)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/errors-in-error-log-9/#post-11923821)
 * Perfect – enabled bcmath and checked log 12 hours later and no errors – thank
   you 😀

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

The topic ‘PHP Fatal error: Errors in Error Log’ is closed to new replies.

 * ![](https://ps.w.org/ip2location-country-blocker/assets/icon-128x128.png?rev=
   2121917)
 * [IP2Location Country Blocker](https://wordpress.org/plugins/ip2location-country-blocker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ip2location-country-blocker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ip2location-country-blocker/)
 * [Active Topics](https://wordpress.org/support/plugin/ip2location-country-blocker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ip2location-country-blocker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ip2location-country-blocker/reviews/)

## Tags

 * [Call to undefined function:](https://wordpress.org/support/topic-tag/call-to-undefined-function/)
 * [PHP Fatal error](https://wordpress.org/support/topic-tag/php-fatal-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [ahau](https://wordpress.org/support/users/ahau/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/errors-in-error-log-9/#post-11923821)
 * Status: resolved