Ticket #178 (closed defect: fixed)

Opened 7 weeks ago

Last modified 4 weeks ago

BuddyPress under subdirectory breaks login form post

Reported by: williamsba1 Owned by:
Priority: major Milestone:
Version: Keywords:
Cc:

Description

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

http://demo.webdevstudios.com/buddypress/

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

Changed 6 weeks ago by dudboi

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

buddypress-theme\buddypress-home\header.php: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.

Changed 4 weeks ago by apeatling

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