Title: Error: &#8220;Warning: call_user_func_array()&#8221;
Last modified: January 18, 2020

---

# Error: “Warning: call_user_func_array()”

 *  [dogdaysofsummer](https://wordpress.org/support/users/dogdaysofsummer/)
 * (@dogdaysofsummer)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/error-warning-call_user_func_array-2/)
 * Hi! We have an error on our site for some time now. At the bottom of the page
   it says:
 * “Warning: call_user_func_array() expects parameter 1 to be a valid callback, 
   function ‘custom_storefront_credit’ not found or invalid function name in /data/
   web/e43400/html/apps/wordpress-70982/wp-includes/class-wp-hook.php on line 288”
 * Line 288 looks like this:
    “$value = call_user_func_array( $the_[‘function’],
   $args );”
 * We’ve already googled the issue but couldn’t work with the help we found there…
   Also we got an answer that we should look for “the text ‘custom_storefront_credit’
   in our theme or plugins” and that it “is supposed to be a function name while
   it is not.” Even though it was really nice of the person to answer we didn’t 
   exactly know what to do with the information.
    Maybe someone could help us 🙂
   Thanks so much!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-warning-call_user_func_array-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 4 months ago](https://wordpress.org/support/topic/error-warning-call_user_func_array-2/#post-12339574)
 * One of your plugins or your theme is calling a function “custom_storefront_credit”
   and you need to find that. Use the [string locator plugin](https://wordpress.org/plugins/string-locator/)
   to see where it might be used.
 *  Thread Starter [dogdaysofsummer](https://wordpress.org/support/users/dogdaysofsummer/)
 * (@dogdaysofsummer)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/error-warning-call_user_func_array-2/#post-12339631)
 * Thank you so much! I’ve found it but still don’t know what to do now… Maybe you
   could help one more time. Thanks again!
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 4 months ago](https://wordpress.org/support/topic/error-warning-call_user_func_array-2/#post-12339635)
 * OK, so where is it?
 *  Thread Starter [dogdaysofsummer](https://wordpress.org/support/users/dogdaysofsummer/)
 * (@dogdaysofsummer)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/error-warning-call_user_func_array-2/#post-12339659)
 * It’s in our child theme and some code we added to remove “Storefront Designed
   by WooThemes” from our footer:
 *     ```
       add_action( 'init', 'custom_remove_footer_credit', 10 );
       function custom_remove_footer_credit () {
           remove_action( 'storefront_footer', 'storefront_credit', 20 );
           add_action( 'storefront_footer', 'custom_storefront_credit', 20 );
       } 
       ```
   
 * Is the only way to fix it to delete the whole thing? Thanks!
    -  This reply was modified 6 years, 4 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This reply was modified 6 years, 4 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 4 months ago](https://wordpress.org/support/topic/error-warning-call_user_func_array-2/#post-12339670)
 * This line `add_action( ‘storefront_footer’, ‘custom_storefront_credit’, 20 );`
   references that function, but it’s not declared, so comment it out or remove 
   it. You may also want to talk to whoever created the child theme.
 *  Thread Starter [dogdaysofsummer](https://wordpress.org/support/users/dogdaysofsummer/)
 * (@dogdaysofsummer)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/error-warning-call_user_func_array-2/#post-12339710)
 * Thank you so much! I commented the whole thing out and now it’s gone. Again, 
   thank you so much, it was a great help! Have a lovely day!

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [dogdaysofsummer](https://wordpress.org/support/users/dogdaysofsummer/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/error-warning-call_user_func_array-2/#post-12339710)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
