Bug #23288 Bug Fixed

Member Import Utility / Confirm Import displays string format code instead of a number when reporting a Username length error

Version: 3.5.12 Reporter: riko

Minimum username length is currently set to 4 in Security & Privacy menu.

Click on Developer -> Utilities

Click on Member Import

Member Group set to Members

XML file location set to: system/test.xml

Click Import Members

Click Confirm Import

Error message displays:

An error occurred

Your username must be at least %d characters long (Username: 'abc' - within user record 'abc')

The expected result should display a number in place of the



Contents of test.xml:

This is the same as the User Guide example except the username has been shortened to 3 characters.

                <screen_name>Brett Bretterson</screen_name>

You must be signed in to comment on a bug report.

  • In v3 it’s in system/ee/legacy/libraries/Validate.php around line 131:

    <pre><code> $this->errors[] = str_replace(‘%x’, $len, ee()->lang->line(‘username_too_short’)); replace with $this->errors[] = sprintf(lang(‘username_too_short’), $len);

ExpressionEngine News

#eecms, #events, #releases