jrgong
(jrgong)
March 15, 2025, 12:47pm
1
Hey guys,
Where can I change the following error message, can’t find the text snippet in WP Discourse Plugin settings:
There is already an account registered with the username supplied by Discourse. If this is you, login through WordPress and visit your profile page to sync your account with Discourse
In my particular case I want to translate it to German and customize it a bit
1 Like
What is the context of this error?
I can’t find any occurrence no matter where I search.
1 Like
jrgong
(jrgong)
March 15, 2025, 2:05pm
4
It happens when a user tries to login via Discourse SSO to a WP website and account with same email exists on both Discourse and WP instances but are not linked yet.
1 Like
OK, I found it:
$message = __( "There is an exiting account with the email address you are attempting to login with. If you are trying to log in through Discourse, you need to first login through WordPress, visit your profile page, and click on the 'sync accounts' link.", 'wp-discourse' );
$errors->add( 'discourse_sso_existing_user', $message );
break;
case 'expired_nonce':
$message = __( 'Expired Nonce', 'wp-discourse' );
$errors->add( 'discourse_sso_expired_nonce', $message );
break;
case 'existing_user_login':
$message = __( 'There is already an account registered with the username supplied by Discourse. If this is you, login through WordPress and visit your profile page to sync your account with Discourse', 'wp-discourse' );
$errors->add( 'existing_user_login', $message );
break;
case 'no_matching_user':
$message = __( 'No WordPress user matches your Discourse user.', 'wp-discourse' );
$errors->add( 'discourse_sso_no_matching_user', $message );
break;
default:
$message = __( 'Unhandled Error', 'wp-discourse' );
You will need a plugin such Loco Translate – WordPress plugin | WordPress.org or similar to translate easily the plugin strings.
3 Likes
angus
(Angus McLeod)
March 17, 2025, 8:13am
6
If you wish to translate all of the strings in the plugin please use a solution such as Loco Translate or WPML.
2 Likes
system
(system)
Closed
April 16, 2025, 8:13am
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.