Hello the community,

i create a multilingual website, the default language its "french", second language "english", all the translation its ok but not fior the user registration,

if someone create new account in french language its ok no problems but if someone create a new account in english after the click on "create" i have wrong redirection like:

/en/en/user/register

so i get an extra '/lang' in the url

please i need help its very important...

thanks

Comments

darkdim’s picture

Hello!
Faced the same problem when a user logs on. en / en in the address form.
If you managed to solve this problem, please write or give a link to the topic please.

mairav’s picture

My default language its "spanish", and the second language "english".
When people try to create an account in english and clicks in "Create new account" it try to go to /en/en/user/register with the double en/en that gives a 404 error.

I need help with this too.

brandontrew’s picture

Anyone found any solutions?
I'm desperate!!!!

mairav’s picture

I asked for help in another post and @arhak ask some question which I quote to answer:

with regard the other post:
- what does this have anything to do with http://drupal.org/node/561102?
- I tried to register in Spanish, English, Portuguese and Italian, and nothing was broken, well redirected every time
- I changed the way user register to allow them to set their own password without mail confirmation, and also worked
- Therefore, in a first round I can't reproduce the other issue (en/en)

I'm gonna install a fresh Drupal and I'll try to reproduce your steps
please be specific about what versions of what modules do you have enabled
- do you have logintogoban?
- do you have path_redirect, globalredirect, etc?
- please, post here a detailed list of the environment I should reproduce to hit your problems
- even Apache / PHP / MySQL versions
- what language negotiation do you have set up? admin/settings/language/configure
- what language prefixes does each of your languages have?
I'll stick with this issue as long as my schedule allows me

Now, I will anwser one by one this questions:

I tried to register in Spanish, English, Portuguese and Italian, and nothing was broken, well redirected every time

When you go to www.site.com/en/user/register, complete the username and email address, and then press over the "Create new account" button it gives a 404 not found error. Going back to the en/user/register page, if I place the mouse over the button, I can see in the browser that the link instead of being en/user/register is en/en/user/register (with double en).

I changed the way user register to allow them to set their own password without mail confirmation, and also worked

I can't change that cause the customer wants the user to confirm the password vía the mail link.

do you have logintogoban?

No, I use the standard login.

do you have path_redirect, globalredirect, etc?

Neither of them. I only have pathauto, and I checked and don't have anything related with the register page.

please, post here a detailed list of the environment I should reproduce to hit your problems

I don't know what do you exactly need. The problem is I don't know when did this problem started, cause I recently realized about this and just because I have luck.

even Apache / PHP / MySQL versions

Apache 2.2.3, PHP 5.2.6, mysql 5.0.67

do you use i18n module?

Yes, versión 6.x-1.1

what language negotiation do you have set up?

Path prefix only.

I hope this can be of help. Thank you very much for your time!

arhak’s picture

to all of you in this thread, please: help me to help you

if I can't reproduce this issue I won't be able to help you

I understand the description of the problem, double language prefix brakes form submission

how can I achieve a broken Drupal like that?

I thought it might be content_profile's fault due to registration form being altered, but also works fine for me

please, some of you start a fresh Drupal, write down step by step of what you do and make it broken, so I can follow your steps and then try to help you solve this issue

arhak’s picture

I've found this issue #581116: Prefix and login, add a user
I think this thread should continue over there

Mandrup’s picture

I have the same problem! Help!

selinav’s picture

I have the same problem.

Please help

nicoloconte’s picture

Same problem: http://drupal.org/node/581132

Please help us!!

fictionindustries’s picture

I'm about to go live, I updated all my modules and now I have the same problem!

The form is sent to /nl/nl/user/register

Very annoying for an ecommerce site :(

nicoloconte’s picture

Yes, very big problem. I'm about to go live with 3 sites, and now?

Any solution?

jchatard’s picture

Please check my issue if you use Übercart or any special module which alters login ad user forms: #584328: uc_cart_form_alter should be aware of language negotiation for a patch or at least to find what module could cause the bug.

Thank you!
Jérémy

selinav’s picture

Yes, it is ubercart the problem, with the patch it well works.

Thanks for the search and the link.

mairav’s picture

I applied the patch given by @jchatard in #584328: uc_cart_form_alter should be aware of language negotiation and the site is now working. Thanks!
Thanks @arhak for your time on trying to solve this.

mairav’s picture

In the ubercart rc7 release this problem is solved without the need of the patch!. Thanks!