Skip to content
New issue

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

PHP Warning with Roundcube 1.5.2 and 8.0.14 #160

Open
STR07 opened this issue Jan 2, 2022 · 2 comments
Open

PHP Warning with Roundcube 1.5.2 and 8.0.14 #160

STR07 opened this issue Jan 2, 2022 · 2 comments

Comments

@STR07
Copy link

STR07 commented Jan 2, 2022

I get the following warnings when using Roudcube 1.5.2 and the plugin: twofactor_gauthenticator_login along with PHP 8.0.14.

[02-Jan-2022 20:51:58 Europe/Berlin] PHP Warning: Undefined array key "twofactor_gauthenticator" in /var/www/html/webmail/plugins/twofactor_gauthenticator/twofactor_gauthenticator.php on line 416
[02-Jan-2022 20:51:58 Europe/Berlin] PHP Warning: Trying to access array offset on value of type null in /var/www/html/webmail/plugins/twofactor_gauthenticator/twofactor_gauthenticator.php on line 193
[02-Jan-2022 20:51:58 Europe/Berlin] PHP Warning: Undefined array key "twofactor_gauthenticator" in /var/www/html/webmail/plugins/twofactor_gauthenticator/twofactor_gauthenticator.php on line 416
[02-Jan-2022 20:51:58 Europe/Berlin] PHP Warning: Trying to access array offset on value of type null in /var/www/html/webmail/plugins/twofactor_gauthenticator/twofactor_gauthenticator.php on line 129

These warnings occur after a login takes place.

Thank you very much in advance.

Ps: We are currently using version 2.0.0 of twofactor_gauthenticator_login

@STR07 STR07 changed the title PHP Warning with Roundcube 1.5.2 and 8.0.12 PHP Warning with Roundcube 1.5.2 and 8.0.14 Jan 3, 2022
@kenokallinger
Copy link

We fixed this by using the code from the pull request 'Fixed PHP warnings and not working config options #157'

@kenokallinger
Copy link

Furthermore if you also get the following error: [05-Jan-2022 14:12:24 Europe/Berlin] PHP Warning: Undefined array key "HTTP_X_FORWARDED_FOR" in /var/www/html/webmail/plugins/twofactor_gauthenticator/twofactor_gauthenticator.php on line 536

You can fix this by changing the statement: "$_SERVER['HTTP_X_FORWARDED_FOR']" to "getenv('HTTP_X_FORWARDED_FOR')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants