Problem with ipv6 addresses

Permalink Browser Info Environment
Hi, look at this errror:
Exception Occurred: [...]/concrete/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:115 An exception occurred while executing 'INSERT INTO FormidableAnswerSets (formID, userID, collectionID, browser, platform, resolution, submitted, locale, ip, temp) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["43", 0, 587, "Google Chrome 119.0.0.0", "Windows 10", "1280x1024", "2023-12-08 17:56:35", "pl_PL", "2a02:a31a:a045:c800:a028:675f:1f96:303d, 2a02:a31a:a045:c800:a028:675f:1f96:303d", 0]:

SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'ip' at row 1 (0)

An "ip" column needs to be extended, to handle ipv6 addresses in some cases. Currently it is varchar(50).

Type: Ticket
Status: In Progress
toxicum
View Replies:
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

Seems you IP-address is a string of your IP-address twice combined by a comma.
That's not good...

To create a quick fix, I think you need to check the "GDPR"-funtionality and then skip the IP-address. That way it won;t be saved in the results database.

Why your IP-address is a double IP is unknown to me.

concrete5 Environment Information

-

Browser User-Agent String

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.