WordPress.org

Ready to get started?Download WordPress

Forums

functions.php error (1 post)

  1. tonypreece
    Member
    Posted 2 years ago #

    After transferring my site to a new host I'm getting the following error on the dashboard. The dashboard does not load properly and is unusable.

    Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home/tonypr/public_html/wordpress/wp-includes/functions.php on line 1979

    I was told it can happen if there are spaces at the top of the functions.php file, which looks like this (no space before the
    <?php line).

    <?php
    /**
    * Main WordPress API
    *
    * @package WordPress
    */

    require( ABSPATH . WPINC . '/option.php' );

    /**
    * Converts given date string into a different format.

    I tried removing the spaces around the 'require' line but it didn't change anything. Line 1979 is:

    call_user_func( $function, $message, $title, $args );

    Does anybody know what could be wrong here?

Topic Closed

This topic has been closed to new replies.

About this Topic