[GH-ISSUE #438] Unable to generate 2 factor authentication QR code #366

Open
opened 2026-02-25 21:34:51 +03:00 by kerem · 5 comments
Owner

Originally created by @mzch on GitHub (Sep 28, 2020).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/438

Originally assigned to: @jasonmunro on GitHub.

💬 Question

I enabled 2fa module and login but 'Unable to generate 2 factor authentication QR code`.
I found #134 but folders' permission is correct (owner is www-data)
Could anyone tell me how to fix this issue?

OS: Debian 10.6
PHP: PHP 7.3.19-1~deb10u1

  • log
[Mon Sep 28 04:16:53.767605 2020] [proxy_fcgi:error] [pid 23468:tid 139766765324032] [client 118.243.18.144:50955] AH01071: Got error 'PHP message: Array\n(\n    [0] => Using Hm_PHP_Session with Hm_Auth_DB\n    [1] => Using DB user configuration\n    [2] => Using sapi: fpm-fcgi\n    [3] => Request type: HTTP\n    [4] => Request path: /\n    [5] => TLS request: 1\n    [6] => Mobile request: 0\n    [7] => Page ID: settings\n    [8] => CACHE backend using: redis\n    [9] => LOGGED IN\n    [10] => Deleting cookie: name: hm_msgs, lifetime: 1601288213, path: /, domain: uixmail.com, secure: 1, html_only 1\n    [11] => TRANSLATION NOT FOUND :Estonian:\n    [12] => TRANSLATION NOT FOUND :Too Dark:\n    [13] => TRANSLATION NOT FOUND :Default message sort order:\n    [14] => TRANSLATION NOT FOUND :Unable to generate 2 factor authentication QR code:\n    [15] => PHP version 7.3.19-1~deb10u1\n    [16] => Zend version 3.3.19\n    [17] => Peak Memory: 4096\n    [18] => PID: 23453\n    [19] => Included files: 78\n)\n'
Originally created by @mzch on GitHub (Sep 28, 2020). Original GitHub issue: https://github.com/cypht-org/cypht/issues/438 Originally assigned to: @jasonmunro on GitHub. ## 💬 Question I enabled 2fa module and login but 'Unable to generate 2 factor authentication QR code`. I found #134 but folders' permission is correct (owner is www-data) Could anyone tell me how to fix this issue? OS: `Debian 10.6` PHP: `PHP 7.3.19-1~deb10u1` - log ``` [Mon Sep 28 04:16:53.767605 2020] [proxy_fcgi:error] [pid 23468:tid 139766765324032] [client 118.243.18.144:50955] AH01071: Got error 'PHP message: Array\n(\n [0] => Using Hm_PHP_Session with Hm_Auth_DB\n [1] => Using DB user configuration\n [2] => Using sapi: fpm-fcgi\n [3] => Request type: HTTP\n [4] => Request path: /\n [5] => TLS request: 1\n [6] => Mobile request: 0\n [7] => Page ID: settings\n [8] => CACHE backend using: redis\n [9] => LOGGED IN\n [10] => Deleting cookie: name: hm_msgs, lifetime: 1601288213, path: /, domain: uixmail.com, secure: 1, html_only 1\n [11] => TRANSLATION NOT FOUND :Estonian:\n [12] => TRANSLATION NOT FOUND :Too Dark:\n [13] => TRANSLATION NOT FOUND :Default message sort order:\n [14] => TRANSLATION NOT FOUND :Unable to generate 2 factor authentication QR code:\n [15] => PHP version 7.3.19-1~deb10u1\n [16] => Zend version 3.3.19\n [17] => Peak Memory: 4096\n [18] => PID: 23453\n [19] => Included files: 78\n)\n' ```
Author
Owner

@jasonmunro commented on GitHub (Sep 29, 2020):

DId you also confirm that you have PHP GD support enabled?
I have php7.4-gd installed on my Debian unstable setup. We need
GD to render the barcode image.

<!-- gh-comment-id:700953853 --> @jasonmunro commented on GitHub (Sep 29, 2020): DId you also confirm that you have PHP GD support enabled? I have php7.4-gd installed on my Debian unstable setup. We need GD to render the barcode image.
Author
Owner

@mzch commented on GitHub (Sep 30, 2020):

Yes, I have php-gd.

<!-- gh-comment-id:701141791 --> @mzch commented on GitHub (Sep 30, 2020): Yes, I have `php-gd`.
Author
Owner

@cptsanifair commented on GitHub (Feb 8, 2021):

as i see it in the Config. Did you tryed to set-up a 2fa key in modules/2fa/2fa.ini?

<!-- gh-comment-id:775523629 --> @cptsanifair commented on GitHub (Feb 8, 2021): as i see it in the Config. Did you tryed to set-up a 2fa key in modules/2fa/2fa.ini?
Author
Owner

@marclaporte commented on GitHub (Jul 31, 2022):

@mzch We need more info.

<!-- gh-comment-id:1200481834 --> @marclaporte commented on GitHub (Jul 31, 2022): @mzch We need more info.
Author
Owner

@marclaporte commented on GitHub (May 7, 2024):

@mzch
Please retest, as a lot has changed since you reported this issue. Notably, we now have 3 active branches and recently released Cypht 2.0.0

<!-- gh-comment-id:2097121058 --> @marclaporte commented on GitHub (May 7, 2024): @mzch Please retest, as a lot has changed since you reported this issue. Notably, we now have 3 active branches and recently released Cypht 2.0.0 - https://github.com/cypht-org/cypht/releases/tag/v2.0.0 - https://github.com/cypht-org/cypht/wiki/Lifecycle
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#366
No description provided.