We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Trying to login from an IPv6 address results in the error.
phpMyFAQ Fatal error Uncaught exception: 'mysqli_sql_exception'
Message: 'Data too long for column 'ip' at row 1'
Stack trace:
#0 .../public_html/src/phpMyFAQ/Database/Mysqli.php(308): mysqli->query() #1 .../public_html/src/phpMyFAQ/User/CurrentUser.php(386): phpMyFAQ\Database\Mysqli->query() #2 .../public_html/src/phpMyFAQ/User/CurrentUser.php(191): phpMyFAQ\User\CurrentUser->updateSessionId() #3 .../public_html/src/phpMyFAQ/User/UserAuthentication.php(69): phpMyFAQ\User\CurrentUser->login() #4 .../public_html/index.php(176): phpMyFAQ\User\UserAuthentication->authenticate() #5 {main} Thrown in '.../public_html/src/phpMyFAQ/Database/Mysqli.php' on line 308
To Reproduce Steps to reproduce the behavior:
Expected behavior
Login should succeed (temporarily changing faquser.ip to VARCHAR(39) allows the login).
phpMyFAQ:
Desktop:
The text was updated successfully, but these errors were encountered:
Here's the quick fix if you have the possibility to use phpMyAdmin:
ALTER TABLE faquser CHANGE ip ip VARCHAR(64) NULL DEFAULT NULL
Sorry, something went wrong.
fix: the ip column needs more characters for IPv6, closes #2721
3a386e7
b0bba3f
thorsten
No branches or pull requests
Describe the bug
Trying to login from an IPv6 address results in the error.
phpMyFAQ Fatal error
Uncaught exception: 'mysqli_sql_exception'
Message: 'Data too long for column 'ip' at row 1'
Stack trace:
#0 .../public_html/src/phpMyFAQ/Database/Mysqli.php(308): mysqli->query()
#1 .../public_html/src/phpMyFAQ/User/CurrentUser.php(386): phpMyFAQ\Database\Mysqli->query()
#2 .../public_html/src/phpMyFAQ/User/CurrentUser.php(191): phpMyFAQ\User\CurrentUser->updateSessionId()
#3 .../public_html/src/phpMyFAQ/User/UserAuthentication.php(69): phpMyFAQ\User\CurrentUser->login()
#4 .../public_html/index.php(176): phpMyFAQ\User\UserAuthentication->authenticate()
#5 {main}
Thrown in '.../public_html/src/phpMyFAQ/Database/Mysqli.php' on line 308
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Login should succeed (temporarily changing faquser.ip to VARCHAR(39) allows the login).
phpMyFAQ:
Desktop:
The text was updated successfully, but these errors were encountered: