Need help? Check out our Support site, then


How do you fix a fatal error for Jetpack?

  1. I am hosted at GoDaddy.com, and have performed a wordpress update on their system... that might very well be the fatal error... however, the blog was working properly... and now it returns the following:

    Fatal error: Call to undefined function get_file_data() in /home/content/u/m/a/umadoshi/html/wp-content/plugins/jetpack/jetpack.php on line 278

    I have deleted jetpack plugin, downloaded the latest version, and uploaded it to the proper location on the FTP server. The error remains.

    I am using CreativeSpark theme.

    Here is the code that supposedly is causing the error:

    /**
    * Load module data from module file. Headers differ from WordPress
    * plugin headers to avoid them being identified as standalone
    * plugins on the WordPress plugins page.
    */
    function get_module( $module ) {
    $headers = array(
    \'name\' => \'Module Name\',
    \'description\' => \'Module Description\',
    \'sort\' => \'Sort Order\',
    );
    $file = Jetpack::get_module_path( Jetpack::get_module_slug( $module ) );
    $mod = get_file_data( $file, $headers );
    if ( empty( $mod[\'sort\'] ) )
    $mod[\'sort\'] = 10;
    if ( !empty( $mod[\'name\'] ) )
    return $mod;
    return false;
    }

    Thanks for your help...
    Blog url: http://www.umadoshi.com

  2. It looks like your WordPress install is missing or has corrupt versions of some core files.

    Fatal error: Call to undefined function get_file_data() in /home/content/u/m/a/umadoshi/html/wp-content/plugins/jetpack/jetpack.php on line 278

    This is for Jetpack trying to call a core WordPress function - get_file_data which is defined in wp-includes/functions.php.

    It sounds like during the upgrade of your WordPress install some files got corrupted. The best thing to do is to replace the wp-includes/functions.php file with a new version and see if this resolves the error or a new one appears.

    You can do this by downloading the zip file for your WordPress version from here: http://wordpress.org/download/release-archive/ and then uploading the file using FTP.

  3. Thanks for the reply... I will give it a shot.

    If it doesn't work, I will just try to rever back to the initial installation of wordpress.

Topic Closed

This topic has been closed to new replies.

About this Topic