dokuwiki-plugin-oauth icon indicating copy to clipboard operation
dokuwiki-plugin-oauth copied to clipboard

ArgumentCountError when logging in

Open hubipe opened this issue 1 year ago • 2 comments

Issue Description

There is an error while logging. I don't know what caused it, as there is argument count error for calling sprintf:

ArgumentCountError: 3 arguments are required, 2 given
/bitnami/dokuwiki/lib/plugins/oauth/helper.php(123)
#0 /bitnami/dokuwiki/lib/plugins/oauth/helper.php(123): sprintf()
#1 /bitnami/dokuwiki/lib/plugins/oauth/auth.php(51): helper_plugin_oauth->showException()
#2 /opt/bitnami/dokuwiki/inc/auth.php(102): auth_plugin_oauth->trustExternal()
#3 /opt/bitnami/dokuwiki/inc/init.php(238): auth_setup()
#4 /opt/bitnami/dokuwiki/doku.php(38): require_once('...')
#5 {main}

image

hubipe avatar May 29 '24 07:05 hubipe

I guess I know, which message caused it. It is this message:

$lang['authnotenabled'] = 'The account associated with your email address has not enabled logging in with %s. Please login by other means and enable it in your profile.';

In czech language, there are two specifiers, whereas in english, there are only one:

$lang['authnotenabled'] = 'Uživatelský účet spojený s vaší e-mailovou adresou nemá povolené přihlašování službou %s. Prosím přihlašte se jinou metodou a povolte přihlašování službou %s ve svém profilu

hubipe avatar May 29 '24 07:05 hubipe

Got the same error, while having Czech language set for my dokuwiki. After editing the user profile to enable login, it worked!

weselinka avatar Aug 18 '25 14:08 weselinka