WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Using my blog’s Search gives me a 404 screen

[Resolved] Using my blog’s Search gives me a 404 screen

  • I didn’t notice this before but I may not have tried the Search function with this theme I’ve been using for a few weeks.

    I just went back to the author’s site and their Search works fine so I grabbed their code which matched exactly what came out of the zip file that I had already tried anyway but I still get a 404 screen.

    I have implemented a plugin that searches comments also and that worked great with the other theme but whether I use it now or not, I still get the 404 (it is just activate and use, no code additions).

    Can my database be corrupted from a Search table? Just guessing but I don’t know what to do. Any help would be greatly appreciated. TIA.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have a link to your site?

    http://tinyurl.com/eog3v but I took the Search code out because using the search form just produces a 404 for users so going to the blog is of no use, I’m asking a DB question here.

    Last night I tried the default theme 1-line php search statement but no luck there either.

    If it was a database error, that’s what the error would be, since the server is responding with 404, it’s unlikely it is a database issue. You’ll need to post an example of the code, use http://pastebin.ca or http://pastebin.com and then post a link back in this thread.

    Good luck,
    Michael.

    Here’s the code but remember, whether I use this code or the plain default theme search statement, it still is not working. This code does work on the theme author’s site so I still don’t see what good it does to post it here but here you go:

    <li id=”search”><h2>Search My Blog</h2>

    • <form id=”searchform” method=”get” action=”/themename/index.php”>
      <div>
      <input type=”text” name=”s” id=”s” size=”15″ />
      <input type=”submit” value=”search” class=”buttons” />
      </div>
      </form>

    This forum edits out the opening and closing li and ul statements. TIA.

    The form action should just be index.php, so for your case you can either use: http://billy-girlardo.com/WP/index.php or http://billy-girlardo.com/WP/ or the best options, the <?php bloginfo('siteurl'): ?> tag, that way it’ll change on it’s own if the site changes, give that a try.

    Cheers,
    Michael.

    EDIT: Try it, but I think something is wonky with your server, trying to get a 404 from it just gives the yahoo 500 error, is that what it normally does for a 404 for you?

    my FF tab says 404

    I just grabbed the default theme search function and the form it points to and threw it in my index, works now. Thx all.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Using my blog’s Search gives me a 404 screen’ is closed to new replies.