[resolved] Using my blog's Search gives me a 404 screen (7 posts)

  1. Blog4Life
    Posted 10 years ago #

    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.

  2. Samuel B

    Posted 10 years ago #

    Have a link to your site?

  3. Blog4Life
    Posted 10 years ago #

    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.

  4. niziol
    Posted 10 years ago #

    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,

  5. Blog4Life
    Posted 10 years ago #

    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">
      <input type="text" name="s" id="s" size="15" />
      <input type="submit" value="search" class="buttons" />

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

  6. niziol
    Posted 10 years ago #

    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.


    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?

  7. Blog4Life
    Posted 10 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic