Title: Warning: call_user_func_array()
Last modified: August 30, 2016

---

# Warning: call_user_func_array()

 *  Resolved [asauret](https://wordpress.org/support/users/asauret/)
 * (@asauret)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-28/)
 * I have this message in my web (angelasauret.com):
    Warning: call_user_func_array()
   expects parameter 1 to be a valid callback, function ‘preview_theme’ not found
   or invalid function name in /home/s1328295/public_html/wp-includes/plugin.php
   on line 496
 * I’m trying to solve it but I can’t. I had other messages that I could solve repairing
   config.php but not this one.
 * Anyone can help me? If I go to plugin.php I don’t know what I have to change 
   or delete.
 * thanks!!
    Angela

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

 *  [mojowill](https://wordpress.org/support/users/mojowill/)
 * (@mojowill)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-28/#post-6460002)
 * Try deactivating all plugins. If that resolves the issue, reactivate each one
   individually until you find the cause.
 * If that does not resolve the issue, try switching to the default theme for your
   version of WordPress to rule-out a theme-specific issue (theme functions can 
   interfere like plugins).
 *  Thread Starter [asauret](https://wordpress.org/support/users/asauret/)
 * (@asauret)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-28/#post-6460011)
 * Hi [@mojowill](https://wordpress.org/support/users/mojowill/),
    Thanks for your
   reply. I tried deactivating all plugins. No solution. The warning was still there.
   Then, I tried to add the default theme (I deleted it some time ago without problems).
   When I did it I couldn’t. There was a message saying that there was an error,
   maybe with WordPress.org or with the server configuration.
 * I don’t know what to do…
 *  [mojowill](https://wordpress.org/support/users/mojowill/)
 * (@mojowill)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-28/#post-6460014)
 * I think this does look like an issue with your theme, try manually installing
   TwentyFifteen via FTP (you can download it here [https://wordpress.org/themes/twentyfifteen/](https://wordpress.org/themes/twentyfifteen/))
   if it isn’t working via the admin dashboard.
 * See if switching to that gets rid of the error. Or you could try reuploading 
   the WordPress core files
 * >  Try [downloading WordPress](https://wordpress.org/download/) again and delete
   > then replace your copies of everything except the `wp-config.php` file and 
   > the `/wp-content/` directory with fresh copies from the download. This will
   > effectively replace all of your core files without damaging your content and
   > settings. Some uploaders tend to be unreliable when overwriting files, so don’t
   > forget to delete the original files before replacing them.
 *  Thread Starter [asauret](https://wordpress.org/support/users/asauret/)
 * (@asauret)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-28/#post-6460024)
 * It worked! I reuploaded the WordPress core files!
 * thank you very much!!!
    Angela
 *  [mojowill](https://wordpress.org/support/users/mojowill/)
 * (@mojowill)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-28/#post-6460026)
 * Great really glad it worked for you. Remember to mark this thread as resolved!
 *  Thread Starter [asauret](https://wordpress.org/support/users/asauret/)
 * (@asauret)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-28/#post-6460028)
 * Thanks!
 *  [himanshu104](https://wordpress.org/support/users/himanshu104/)
 * (@himanshu104)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-28/#post-6460347)
 * I added additional $8 in calculate_total_shipping function for handling charges
   and I got warning.
    So what I did basically I change code from $total = $this-
   >calculate_base_shipping() to $total = $this->calculate_base_shipping() + 8.00.
   I found the above solution in one of the forum but I got the warning below when
   I updated the file
 * call_user_func_array() expects parameter 1 to be a valid callback, function ‘
   dfcg_load_scripts_footer’ not found or invalid function name in /home2/waas7m0aald4/
   public_html/wp-includes/plugin.php on line 525
 * Please can someone give solution to this error as soon as possible. I would really
   appreciate it. Thanks in advance.

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

The topic ‘Warning: call_user_func_array()’ is closed to new replies.

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [himanshu104](https://wordpress.org/support/users/himanshu104/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-28/#post-6460347)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
