WordPress.org

Support

Support » How-To and Troubleshooting » Fatal error: Call to undefined function: get_search_query()

Fatal error: Call to undefined function: get_search_query()

Viewing 6 replies - 1 through 6 (of 6 total)
  • toferrall
    Member

    @toferrall

    Here is the complete error as it displays in the browser:

    Fatal error: Call to undefined function: get_search_query() in /web/wordpress/wp-content/themes/atahualpa332/functions/bfa_header_config.php on line 173

    Samuel B
    Participant

    @samboll

    does it do this with just this theme or others?
    and don’t post about this to any more threads

    toferrall
    Member

    @toferrall

    it does it with all themes except for the basic installed theme of wordpress default 1.6. Sorry about the multiple postings I have been trying for a week at different sites to fix. Please accept my apologies.

    I see you have tagged the thread as WordPress 2.2.3

    If I’m not mistaken get_search_query() was not introduced until 2.3

    toferrall
    Member

    @toferrall

    OH,my host company provides this could yourecomend maybe another company because upgrading is not an option?

    Thanks,

    bytesforall
    Member

    @bytesforall

    In bfa_header_config.php replace

    <div class="searchbox-form">
    <input type="text" class="text inputblur" onfocus="this.value=\''.
    (get_search_query() ? get_search_query() : '' ).'\'"
    value="' . (get_search_query() ? get_search_query() : $bfa_ata['searchbox_text'] ) .
    '" onblur="this.value=\''.(get_search_query() ? get_search_query() : $bfa_ata['searchbox_text'] ). '\'" name="s" />
    </div>

    with

    <div class="searchbox-form">
    <input type="text" class="text inputblur" name="s" />
    </div>

    I’ll fix this in the next theme version for WP 2.2

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error: Call to undefined function: get_search_query()’ is closed to new replies.