Skip to:

Opened 15 years ago

Closed 15 years ago

#178 closed defect (bug) (fixed)

BuddyPress under subdirectory breaks login form post

Reported by: williamsba1's profile williamsba1 Owned by:
Milestone: Priority: major
Severity: Version:
Component: Keywords:


I just setup a vanilla install of BuddyPress in a subdirectory on a subdomain of my primary domain. You can view the install here:

Notice the login form is posting to /wp-login.php like so:

<form id="login-form" method="post" action="/wp-login.php" name="login-form">

This breaks the form as it should be posting to /buddypress/wp-login.php.

Change History (2)

#1 @dudboi
15 years ago

In the buddypress theme folder edit the header.php file at line 34


What was originally
<form name="login-form" id="login-form" action="<?php get_option('home') ?>/wp-login.php" method="post">

should be changed to

<form name="login-form" id="login-form" action="<?php echo site_url() ?>/wp-login.php" method="post">

I don't know why the home option is blank, but this is a temp fix.

#2 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.