Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3968 closed defect (bug) (no action required)

Post Search doesnt work when register page is set to homepage

Reported by: tislam100's profile tislam100 Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.5.3
Component: Core Keywords:
Cc:

Description

The Post Search function is not working when register page is set to homepage.

Go to Settings> Reading and set the "Register Page" as custom front page and then try to search posts using the default search form and it takes you back to home page.

The members/groups search works fine though.
Tested with Buddypress 1.5.3 and Wordpress Version 3.3.1
Using the default buddypress theme.

Change History (6)

#1 @tislam100
13 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#2 @tislam100
13 years ago

Tested this just now again with a default Buddypress/wordpress installation. The BUG exist.

Last edited 13 years ago by tislam100 (previous) (diff)

#3 @tislam100
13 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

#4 @tislam100
13 years ago

Possible fix:
Replace this line in the search form:

<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">

with this:

<form role="search" method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">

#5 @DJPaul
13 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from reopened to closed

This works for me when I set the "Post page" to something on the same form. Without it set, I saw the behaviour you described.

#6 @tislam100
13 years ago

hmm... So if we set a register page as homepage, we will have to set the post page too, even if I don't want to?

Note: See TracTickets for help on using tickets.