why when I'm offline , when I click the search button and not put any words I am redirected to the login screen?

I simply click in search button, don't put any word. If i'm normal user, don't logged user, i go to login page.

I want to show a message: Search Empty, please try again.

  • Whats your search form. Like? – Bainternet Jun 10 '11 at 16:19

The default WordPress behavior is to redirect to the Front Page when an empty search query is submitted.

  • What Plugins do you have installed/active?
  • What additions have you made to your .htaccess file?
|improve this answer|||||
  • plugins active: Admin Bar Removal (3.1+ only) , akismet, All in One SEO Pack , ALO EasyMail Newsletter , Dashboard Commander , Efficient Related PostsFacebook Likes it! , Fast Secure Contact Form , Folding Category List (FoCaL) , Google XML Sitemaps with Multisite support , List Sub Categories Sidebar Widget , Login With Ajax , My Category Order , PixoPoint Menu Plugin , SI CAPTCHA Anti-Spam , Subscribe to Comments Reloaded , Thoughtful Comments , User Access Manager , Visitor Maps and Who's Online, Wordpress User Frontend , WP-Polls , WP Hide Dashboard , WPML CMS Nav, WPML – Alyson Veras Jun 10 '11 at 19:27
  • I don't touch in my .htaccess , you have any idea how I can change the redirect to the login for a personalized message? example: <br> when I search a word and it does not exist I see the search.php page with an error message – Alyson Veras Jun 10 '11 at 19:28
  • If the problem comes from any of your Plugins, I would suspect SEO-related Plugins first (as they are more likely to mess with search query results). Alternately, it could be a Plugin that wants users to login (thus being likely to redirect to the login page), such as User Access Manager, etc. – Chip Bennett Jun 10 '11 at 19:30
  • if I'm logged into the site and do a search without words , I see a results screen with all the articles from my site..I do not know if it was a plugin causing the problem – Alyson Veras Jun 10 '11 at 19:32
  • 1
    You've got some poorly written code in the SitePress Multilingual CMS Plugin, that is sending header information prematurely (likely by printing some data that it should instead be returning). – Chip Bennett Jun 13 '11 at 22:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.