• Resolved birch1r

    (@birch1r)


    I have upgraded our website to the latest version of WordPress but when trying to access the online the following error is returned:
    Fatal error: Call to undefined function headway_get_header() in /hermes/bosnaweb14a/b2859/ipg.conwycameraclub/wp-content/themes/headway-2011/index.php on line 9
    Index.php is a follows:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );

    Can anybody please advise?
    http://www.conwy-camera-club.org

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi birch1r!

    That error is actually coming from your theme.

    wp-content/themes/headway-2011/index.php

    Try renaming the folder in which the theme resides and WordPress will default back to either Twenty Fifteen or Twenty Fourteen; depending on which one you have available.

    Thread Starter birch1r

    (@birch1r)

    Thanks for the response, sorry it needs to be very basic, do you mean rename the folder
    wp-content/themes/headway-2011?

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Yes. 🙂

    That is the folder.

    Thread Starter birch1r

    (@birch1r)

    Hi Jose
    Thanks
    Have replaced the Headway template and now running the latest version of WordPress. The only problem is that both the website and also the dashboard page is now preceded by the following text:
    “Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /hermes/bosnaweb14a/b2859/ipg.conwycameraclub/wp-includes/functions.php on line 3457 Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /hermes/bosnaweb14a/b2859/ipg.conwycameraclub/wp-includes/functions.php on line 3457”
    http://www.conwy-camera-club.org

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Odds are you have WP_DEBUG set to true in your wp-config file.

    Look for the line:

    define( 'WP_DEBUG', true );

    And set it to false.

    Thread Starter birch1r

    (@birch1r)

    Hi Jose
    Thanks – it was already
    define( ‘WP_DEBUG’, false );
    any other ideas?

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    It means that either a plugin or a theme is calling this->WP_Widget somewhere, meaning an old, somewhat outdated format. Unfortunately, the best way to troubleshoot that is by deactivating all your plugins and switching to a default, bundled theme like twenty fourteen/fifteen. After deactivating the plugins, you activate one by one until the message shows.

    That is the best way I know, and the recommended way of troubleshooting issues like that.

    Thread Starter birch1r

    (@birch1r)

    Many Thanks – will give it a try

    Thread Starter birch1r

    (@birch1r)

    Thanks – that has sorted the problem!

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Awesome! Glad to see it worked out for you! 🙂

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