Hi,

It took me a long time to find out why my site is down and I constantly get white pages or MySql errors. When I disabled the ip module, everything was fine!
A friend of mine read the MySql errors and found out that there was a problem with ipv6...
I'll give you more info. in a day or so.

Comments

gedur’s picture

The IP module is not working with IPv6 addresses.

$sql = "SELECT visits FROM {ip_tracker} WHERE uid = :uid AND ip = :ip";
  $args = array(':uid' => $uid, ':ip' => ip2long(ip_address()));

Nowadays the IPs are stored on de DB as integers thought the ip2long function which is not compatible with IPv6 addresses.

Working on a solution! Thanks for the report

CTGreybeard’s picture

I would like to add my request for a fix. I have just run into this myself and had to disable the module.

  • GeduR committed 27b909d on 7.x-1.x
    Issue #2253035 IPV6 ips crash on saving (ip2long not compatible).
    
gedur’s picture

Status: Active » Fixed

Commited to dev some lines that solves the crash.

  • GeduR committed 7f52e13 on 7.x-2.x
    Issue #2253035 IPV6 ips crash on saving (ip2long not compatible).
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.