Skip to:

Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#5219 closed defect (bug) (fixed)

Login from Sidebar Widget only works on second try if cookies were cleared.

Reported by: andreastriller's profile andreas.triller Owned by: r-a-y's profile r-a-y
Milestone: 1.9 Priority: normal
Severity: normal Version: 1.8.1
Component: Templates Keywords:


Maybe I am missing something, but the sidebar widget login included in bp-default theme does not set the test cookie which is accessed by wp-login.php. A fresh browser with no cookies gets an error saying "your browser does not accept cookies" and is redirected to wp-login.php which successfully sets the test cookie. A subsequent login (also through the sidebar widget) works.

I found a solution (5 years old) in this thread (post by jeffbaier):

Would be nice to include this in header.php in the next release.

Change History (4)

#1 @r-a-y
10 years ago

This is caused by a recent change in WordPress. See #WP24961.

I haven't seen a reported issue on WordPress yet. So I'm going to do a bit more testing before I mark this as invalid.

#2 @r-a-y
10 years ago

  • Owner set to r-a-y
  • Resolution set to fixed
  • Status changed from new to closed

In 7485:

Remove 'testcookie' hidden field in BP's login forms.

Due to a recent change in WordPress (
that checks the 'testcookie' value as well as a real cookie value, this
broke login attempts from BP's login forms.

This commit removes the 'testcookie' hidden field so BuddyPress can bypass
the cookie check and allows login attempts to work as before.

Fixes #5219.

#3 @r-a-y
10 years ago

  • Keywords 2nd-opinion removed
  • Milestone changed from Awaiting Review to 1.9

#4 @DJPaul
8 years ago

  • Component changed from Appearance - Template Parts to Templates
Note: See TracTickets for help on using tickets.