Title: functions.php error
Last modified: August 20, 2016

---

# functions.php error

 *  [tonypreece](https://wordpress.org/support/users/tonypreece/)
 * (@tonypreece)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/functionsphp-error-6/)
 * 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](https://wordpress.org/support/users/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.

## Tags

 * [callback](https://wordpress.org/support/topic-tag/callback/)
 * [call_user_func](https://wordpress.org/support/topic-tag/call_user_func/)
 * [function](https://wordpress.org/support/topic-tag/function/)
 * [parameter](https://wordpress.org/support/topic-tag/parameter/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [tonypreece](https://wordpress.org/support/users/tonypreece/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/functionsphp-error-6/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
