# IP2Location

**URL:** https://forum.mautic.org/t/ip2location/7048
**Category:** Product Support
**Created:** [January 4, 2017, 7:27pm UTC](https://forum.mautic.org/t/ip2location/7048 "2017-01-04T19:27:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![healthstatus](https://avatars.discourse-cdn.com/v4/letter/h/9f8e36/32.png) [@healthstatus](https://forum.mautic.org/u/healthstatus)
#### Post date: [January 4, 2017, 7:27pm UTC](https://forum.mautic.org/t/ip2location/7048/1 "2017-01-04T19:27:32Z")

</div>

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); }

---

<div class="post-metadata">

### Author: ![healthstatus](https://avatars.discourse-cdn.com/v4/letter/h/9f8e36/32.png) [@healthstatus](https://forum.mautic.org/u/healthstatus)
#### Post date: [January 4, 2017, 7:27pm UTC](https://forum.mautic.org/t/ip2location/7048/2 "2017-01-04T19:27:32Z")

</div>

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);
      }
`
