Title: Getting php warning
Last modified: August 19, 2016

---

# Getting php warning

 *  Resolved [focolibre](https://wordpress.org/support/users/focolibre/)
 * (@focolibre)
 * [18 years ago](https://wordpress.org/support/topic/getting-php-warning/)
 * Hello guys, I’m having some trouble…
    I’ve installed WP 2.5.1 into my server,
   installation was fine. But since when I first ran WordPress, I’m getting the 
   following message at the header of every page:
 * > Warning: call_user_func_array() [function.call-user-func-array]: First argument
   > is expected to be a valid callback, ‘wp_cron’ was given in /home/a6252111/public_html/
   > wp-includes/plugin.php on line 311
 * Well, I really don’t know what this could be, but I’d be very pleased if I could
   solve it.
 * Note: I’m using the same webhost to run another blog with WP 2.5, and it runs
   perfectly.
 * Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [cuco1981](https://wordpress.org/support/users/cuco1981/)
 * (@cuco1981)
 * [18 years ago](https://wordpress.org/support/topic/getting-php-warning/#post-764873)
 * I recieved the same warning. Disabling all my plugins did not help anything and
   I could also not access the widgets administration page.
 * I took a look at cron.php file in /wp-includes/ and found it to be empty! A quick
   upload of the cron.php file fixed everything.
 * In other words, check if there was an FTP error when you uploaded the cron.php
   file to /wp-includes/.
 *  Thread Starter [focolibre](https://wordpress.org/support/users/focolibre/)
 * (@focolibre)
 * [18 years ago](https://wordpress.org/support/topic/getting-php-warning/#post-764952)
 * Bingo!!!
 * Thank you very much for the support! Problem solved.
 *  [cuco1981](https://wordpress.org/support/users/cuco1981/)
 * (@cuco1981)
 * [18 years ago](https://wordpress.org/support/topic/getting-php-warning/#post-764982)
 * You’re welcome.
 * I should add that my problem with accessing the widgets administration page was
   caused by an empty widgets.php in /wp-admin/ and unrelated to the wp-cron problem.
   Again, uploading the file (widgets.php) resolved the problem.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Getting php warning’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [cuco1981](https://wordpress.org/support/users/cuco1981/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/getting-php-warning/#post-764982)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
