WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Help - Themes Crash (8 posts)

  1. slaughters
    Member
    Posted 6 years ago #

    I'm brand new to WordPress. All I've done is look at different themes.

    When using the unmodified theme "Colorful 1.0 by WordPress Theme Land"
    http://themes.wordpress.net/columns/2-columns/2495/colorful-10/

    It crashes with the following error:

    Fatal error: Call to undefined function: the_search_query() in /home/stansigh/public_html/WordPress/wp-content/themes/colorful-10/header.php on line 31

    Here's theBblog URL:
    http://stansight.com/WordPress/

  2. MichaelH
    Member
    Posted 6 years ago #

    I just downloaded the theme and uploaded to my host and I'm not experiencing that error. Please consider starting over. Delete that theme from your host. Download a new copy. Unzip. Upload to host.

    Resource:
    http://codex.wordpress.org/Using_Themes#Adding_New_Themes

  3. slaughters
    Member
    Posted 6 years ago #

    OK - did that again (for the 3rd time). Deleted /public_html/WordPress/wp-content/themes/colorful-10/ folder. Downloaded them. Unzipped it then ftp'ed the folder back.

    Nothing changes. Still crashes on an undefined function.

    I expect that there is some sort of global PHP library which defines the function: the_search_query.

    It is definitely not in any of the files provided with the theme.

    What file is this defined in?

    Why would I not have it?

  4. moshu
    Member
    Posted 6 years ago #

    That should be a regular WP templatetag:
    http://codex.wordpress.org/Template_Tags/the_search_query

  5. MichaelH
    Member
    Posted 6 years ago #

    Oops, I see you say you are using 2.0.2. Maybe that theme doesn't run on that version. Change to the WordPress default theme to see if that solves the problem.

    Please consider upgrading to 2.3.

  6. slaughters
    Member
    Posted 6 years ago #

    "Please consider upgrading to 2.3."

    Would love to. How ?

    I am using ipowerweb as my web host and simply installed the default blog software they had available through cpanel

    Is there a way I can upgrade this from 2.0.2 to 2.3 by myself? Can I do this without the intervention of the web host provider?

  7. Jeremy Clark
    Moderator
    Posted 6 years ago #

  8. slaughters
    Member
    Posted 6 years ago #

    OK - that resolved it.

    It would be nice if the templates indicated what WordPress version was required to use it.

Topic Closed

This topic has been closed to new replies.

About this Topic