The discussion revolves around an issue with setting up MFA/2FA, resulting in an “Internal Server Error.” The original poster, an_admin, has a working 2FA setup for their admin account but encounters the error when trying to set it up for their non-admin account. Falco suggests checking the logs, which ultimately helps an_admin discover the issue: the site title contains non-US ASCII characters, causing the QR code generation to fail.
The error log reveals a “code length overflow” issue, with the site title being excessively long (1787 digits) due to a font trick used in the title. an_admin shares the title, which is approximately 360 bytes long, making it clear why it caused the issue. Falco acknowledges the edge case and is impressed that it only broke the QR library.
I finally realized it always happened when the encoded string contained non-US ASCII characters (p.e. á, ñ, í…)
This issue was that my title (the one set at Login | HSTS Redirection Community) did indeed contain non-ASCII characters. I guess it was pulling that into the QR code when generating and it choked.
The clue was in site.com/logs and after selecting the most recent log entry, under the info tab, there was a line that read:
RQRCodeCore::QRCodeRunTimeError (code length overflow. (1787 digits > any version capacity))