Call to undefined function IP2Proxy\bcadd() in IP2Proxy\Database::ipVersionAndNumber()
ennorehling opened this issue · 3 comments
ennorehling commented
I noticed today that class.IP2Proxy.php depends on the bcmath functions bcadd and bcmul. Those are optional, and our production site didn't have them installed, causing the error message above.
The code should probably check for function_exists('bcadd') before using it, and print a clear error message about this?
ip2location commented
We have added this checking. Thanks.
hayzem commented
mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to undefined function IP2Location\\bcadd() in /.../wp-content/plugins/ip2location-redirection/class.IP2Location.php:995, referer: https://www.google.com/
DB File: IP2LOCATION-LITE-DB1.BIN Updated At: 2019-12-28
We are seeing this error in the logs.