WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error: Call to undefined function: get_search_query() (7 posts)

  1. toferrall
    Member
    Posted 5 years ago #

    I receive this error when activating the theme. I would love some help with this error.

    Thanks,

  2. toferrall
    Member
    Posted 5 years ago #

    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

  3. Samuel B
    moderator
    Posted 5 years ago #

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

  4. toferrall
    Member
    Posted 5 years ago #

    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.

  5. Len
    Member
    Posted 5 years ago #

    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

  6. toferrall
    Member
    Posted 5 years ago #

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

    Thanks,

  7. bytesforall
    Member
    Posted 5 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.