Register Page not accepting Brasilian Characters

This topic has 17 replies, 5 voices, and was last updated 8 years, 4 months ago ago by Stan Russell

  • Avatar: binhoscc
    binhoscc
    Participant
    November 3, 2015 at 20:36

    Hello my friend,
    The Register Page (Registro), is not accepting Brasilian characters for new user name, like (áãâ), when the new user put a name with this characters the site does not show any messagens warning that this characters can’t be used.
    Can you help me?
    Thank you

    16 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    November 4, 2015 at 09:14

    Hello,

    Please provide us with FTP and wp-admin panel credentials in Private Content.

    Regards,
    Eva Kemp.

    Avatar: binhoscc
    binhoscc
    Participant
    November 10, 2015 at 13:56

    OK here it is!

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 10, 2015 at 16:14

    Hello,

    Please update the theme to the latest version.
    Before update delete “woocommerce” folder in the directory wp-content/themes/woopress/ and it’ll be reuploaded from a new theme package.
    Also update all required plugins https://www.8theme.com/download-plugins/ .

    Don’t forget to create back up of your files and database before starting update process!


    (it’s for Legenda theme but the process is the same).

    Best regards,
    Jack Richardson.

    Avatar: binhoscc
    binhoscc
    Participant
    November 19, 2015 at 00:14

    I do not believe that this problem occour because of the update, could you please have a look in the register page and fix this problem for me?
    Thank you.

    Avatar: Eva
    Eva Kemp
    Support staff
    November 19, 2015 at 15:36

    Hello,

    Is registration completed when you use normal characters?
    We recommend to keep all plugins and theme updated as some bugs are fixed in the latest theme version.

    Create a back up before update.

    Thank you.

    Regards,
    Eva Kemp.

    Avatar: binhoscc
    binhoscc
    Participant
    November 19, 2015 at 21:36

    Yes the registration is completed when i use normal characters!
    You have make this page Registration for me, i think you can fix this easy, i do not have time to update now and i am sure the bug is not because of this update…
    Thank you.

    Avatar: binhoscc
    binhoscc
    Participant
    November 20, 2015 at 23:58

    Can you help me?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 23, 2015 at 15:25

    Hello,

    I’ve added the following code in the /wp-content/themes/royal/framework/theme-functions.php file in line 1567:

    if(!preg_match("#^[aA-zZ0-9\-_]+$#", $username)) {
    $return['status'] = 'error';
    $return['msg'] = __( "Please enter user name without specific characters.", ETHEME_DOMAIN );
    echo json_encode($return);
    die();
    }

    Please check your registration page now.

    Best regards,
    Jack Richardson.

    Avatar: binhoscc
    binhoscc
    Participant
    November 24, 2015 at 14:16

    Thank you for your help Jack, but the problem still…
    When it matches ((“#^[aA-zZ0-9\-_]+$#”, $username) it still loading forever, not returning the erro you configured…
    Thank you

    Avatar: Brian Johnson
    Brian Johnson
    Member
    November 24, 2015 at 14:28

    Hello

    You are using latest woocommerce plugin .Our theme uses overwriten templates for. Woocommerce folder contains registration page template and may consist old files which cause the issue. Please update woocommerce folder, theme and plugins.

    Regards,
    Brian Johnson

    Avatar: binhoscc
    binhoscc
    Participant
    November 24, 2015 at 18:45

    I think the problem is with the logic ((“#^[aA-zZ0-9\-_]+$#”, $username), for the SPACE in the user name it works, but for words with: (^~áéóúã) didn’t works, like for exemple username: joão.
    Could you help me with this code?
    Thanks

    Avatar: Eva
    Eva Kemp
    Support staff
    November 24, 2015 at 20:19

    Hello,

    I’ve checked the code on a test site with the latest theme version and it works fine.
    You need to update your theme and required plugins as you are using very old version.


    Don’t forget to create back up of your files and database before starting update process!

    Before update delete “woocommerce” folder in the directory wp-content/themes/royal/ and it’ll be reuploaded from a new theme package.


    (it’s for Legenda theme but the process is the same).

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: binhoscc
    binhoscc
    Participant
    November 25, 2015 at 07:42

    All up to date sir!
    It stills running forever when i try to register some characters: “áãêêíúç”.
    Try to register user “joão”, so you will see that it will loading for ever and do not show any message…
    Now do you believe that the problem is in the code or in the theme?
    Waiting for your answer…

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 25, 2015 at 09:03

    Hello,

    As I see the problem persists when the “iThemes Security” plugin is activated. Try to disable it and check registration page.

    Best regards,
    Jack Richardson.

    Avatar: binhoscc
    binhoscc
    Participant
    November 25, 2015 at 13:42

    Ok my friend, now it works, thank you!
    But without iThemes security my site is not safe, i need to use this plugin, could you help me with that?
    I know that you work just with problems related to the Theme, but give me a way where can i search for a solution for that?
    Thanks

    Avatar: stan
    Stan Russell
    Participant
    November 25, 2015 at 14:12

    Hello binhoscc,

    unfortunately we can not recommend you such third-party security plugin. You need to find it and use on own risk. Sorry.

    Regards,
    Stan Russell.

  • Viewing 17 results - 1 through 17 (of 17 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.