• I’m not sure what is going on?
    I was initially working.
    I disabled all the plug-ins thinking there might have been a conflict… nada

    can someone take a peek?

    brand new to wordpress, so please bear with me.

    indesign1200.com

Viewing 6 replies - 1 through 6 (of 6 total)
  • Open your search.php or whatever and edit the syntax

    http://www.indesign1200.com/blog/%3C?s=test is the incorrect syntax

    It should be more in the lines of http://example.com/?s=zac+efron

    Thread Starter kcjones76

    (@kcjones76)

    it works fine with the default widget.php
    but when I use the the theme’s file (r_sidebar.php, the return URL includes “%3C”
    if i delete those characters out of the URL I get the proper result. It’s trying to create search result page that includes “%3C” which i believe is the “<“

    when searching for “indesign” this is what I get:

    default widget.php – search result URL
    http://www.indesign1200.com/blog/?s=indesign

    theme included r_sidebar.php – result URL
    http://www.indesign1200.com/blog/%3C?s=indesign

    There’s probably a code error lurking in r_sidebar.php

    Thread Starter kcjones76

    (@kcjones76)

    well, that’s what i’m trying to figure out…
    i’m not sure how to validate it though.

    It’s most likely a php code error, which is not something that the validator is helpful with.

    Oh dear, your search form appears to be both malfunctioning and possibly insecure (PHP_SELF). Look in r_sidebar.php or searchform.php and replace this:

    <h2>Find It</h2>
    <div class="search">
    <form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>/">
    <input type="text" name="s" id="s" value="search this site..."/>
    </form>
    </div>

    With this:

    <h2>Find It</h2>
    <div class="search">
    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
    <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
    </form>
    </div>
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘HELP: using the search widget gives me my 404 page now?’ is closed to new replies.