News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Database Error "Incorrect string value for function inet_aton"

Started by der_eismann, February 15, 2016, 12:05:44 PM

Previous topic - Next topic

der_eismann

Hey everyone,

I just installed SMF on my server. The installation went without problems, but right now it just gives me a database error:

Database Error
Incorrect string value: '2a01:4f8:162:50c4::2' for function inet_aton
File: D:\Webspace\forum\Sources\Logging.php
Line: 100

I am running the latest 2.1 under Win Server 2012 R2 and the string value is my IPv6 address. Since IPv6 is supported since version 2.0 I have no idea what to do. Can you help me?

//Edit: The error just disppeared :o Can I find out why this happens and how to prevent?
//Edit2: Okay, It just appears and disappears every few minutes.

Best regards,
Philipp

Illori

SMF 2.0 does not have support for ipv6. there is a mod that adds some support.

der_eismann

So I would have to disable IPv6? Looks like the mod doesn't work with 2.1.

Illori


Oldiesmann

Looking at the MySQL manual, it appears that INET_ATON only handles IPv4 addresses and they've got a separate function (INET6_ATON) to handle IPv6 addresses. However, INET6_ATON is only available in MySQL 5.6. I'll file a bug report about this on GitHub and look into what we can do to fix this.
Michael Eshom
Christian Metal Fans

Advertisement: