functions.php error
-
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?
- The topic ‘functions.php error’ is closed to new replies.