Mautic Community Forums

IP2Location

Put in a bug request, but now Mautic won’t complete a mailing, could use some help



PHP Fatal error: Call to undefined function IP2Location\bcadd() in vendor/ip2location/ip2location-php/IP2Location.php on line 983



which is this code:

Code:
foreach (str_split(bin2hex(inet_pton($ip)), 8) as $word) { $result = bcadd(bcmul($result, '4294967296', 0), self::wrap32(hexdec($word)), 0); }

Put in a bug request, but now Mautic won’t complete a mailing, could use some help

PHP Fatal error: Call to undefined function IP2Location\bcadd() in vendor/ip2location/ip2location-php/IP2Location.php on line 983

which is this code:

foreach (str_split(bin2hex(inet_pton($ip)), 8) as $word) { $result = bcadd(bcmul($result, '4294967296', 0), self::wrap32(hexdec($word)), 0); }