See http://www.ubercart.org/forum/bug_reports/12688/rc6_cannot_login_site_an...

My solution was to revert uc_cart_form_alter() to RC3 since I had issues with the first patch on the page above (on /user, the form's action was pointing to /r)

CommentFileSizeAuthor
#5 uc_cart.module.patch833 bytesAlice Heaton
#3 uc_cart.module.patch833 byteswimh

Comments

rszrama’s picture

Priority: Critical » Normal
Status: Active » Fixed

It looks like Lyle already committed a patch for this. Not sure why we need an issue after the fact. : ?

Does that patch not solve it for you?

caktux’s picture

Status: Fixed » Needs work

The patch does not solve it no. With that patch, try to access /user directly. The login form will point to "/r" (
, not good...).

wimh’s picture

StatusFileSize
new833 bytes

On our site, the login form's action points to /nl/nl/user which is probably a related problem. The attached patch calls url() with the 'external' option and skips the substr() call, it works for us.

xibun’s picture

great! had the same problem - now fixed. thanks!

the following might be interesting to reproduce the problem:
until now I had two workarounds - hoping to fix it later... depending on what I was working on I had either the "Cart" module disabled in "Ubercart - core" or I had to set the "User login" block to block type Standard. both fixed the problem. but having either the Cart module enabled OR the user login block of type "Link" both made it impossible to login on my site.

Alice Heaton’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new833 bytes

I also had the problem reported by wimh in #3, and I can confirm the patch fixes this.

1. I'm attaching a new patch with a cosmetic change (I've removed some comments that are now meaningless). The actual code change are exactly the same as that of wimh ;
2. I'm marking this as 'reviewed by the comunity' since two people confirmed it works, and I think the code change are sensible

Thanks for Ubercart everyone, and thanks wimh for this patch :)

longwave’s picture

Hasn't this already been fixed in a much cleaner way by Damien Tournord in #561210: uc_cart_form_alter() is ugly and broken?

Alice Heaton’s picture

@longwave: It looks like it might, I would have to test the patch.

Unfortunately I didn't find Damien Tournord's patch when searching for this, as the symptoms he describes are different.

I'll try to find a minute to test his patch, though probably not today.

xibun’s picture

I have downloaded and tested the UC dev snapshot from bazaar.ubercart.org which includes Damien Tournord's patch (see #6).

I can confirm that on my site the problem is fixed by #561210: uc_cart_form_alter() is ugly and broken and therefor the patch presented in this issue is not necessary anymore in my case.

rszrama’s picture

Anslem, if you find the same results as xibun in your testing, can you mark this one fixed?

caktux’s picture

Status: Reviewed & tested by the community » Fixed

Damien's patch in #561210 does seem to be fixing this for good in rc7, marking as fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.