Title: Warning: call_user_func_array() expects parameter 1 to be a valid callback, func
Last modified: July 29, 2019

---

# Warning: call_user_func_array() expects parameter 1 to be a valid callback, func

 *  Resolved [nflh](https://wordpress.org/support/users/nflh/)
 * (@nflh)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-func-13/)
 * Hi,
 * I’ve got this message on every page/product page: ”Warning: call_user_func_array()
   expects parameter 1 to be a valid callback, function ‘storefront_edit_post_link’
   not found or invalid function name in”.
 * Can you help me to fix this problem?

Viewing 1 replies (of 1 total)

 *  [3 Sons Development](https://wordpress.org/support/users/3sonsdevelopment/)
 * (@3sonsdevelopment)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-func-13/#post-11789488)
 * Hello [@nflh](https://wordpress.org/support/users/nflh/),
 * That warning notice is coming from the edit link that admin users will see in
   Storefront. I just checked on a fresh installation of Storefront and it did not
   pull up any PHP warnings for me.
 * Typically on a live site, you’ll want to turn off PHP messages like this. WP 
   Beginner has a guide to disabling these so they aren’t displayed publically.
 * [https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/](https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/)
 * Since this is a PHP warning, you can hide the display of this and your site will
   continue to function. A PHP error is more severe than a warning.
 * If you want to investigate this warning further, here’s what I would do. Set 
   up a staging site so you can test. That’s a copy of your live site. You can use
   [WP Staging](https://wordpress.org/plugins/wp-staging/) to set one up.
 * Then disable all plugins except for WooCommerce and also switch to the parent
   Storefront if you’re using a child theme.
 * See if the warning is still there. If it is, please send over the URL to the 
   staging site so I can take a look at it too.
 * Thanks,

Viewing 1 replies (of 1 total)

The topic ‘Warning: call_user_func_array() expects parameter 1 to be a valid callback,
func’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/storefront/4.6.2/screenshot.png)
 * Storefront
 * [Support Threads](https://wordpress.org/support/theme/storefront/)
 * [Active Topics](https://wordpress.org/support/theme/storefront/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/storefront/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/storefront/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [3 Sons Development](https://wordpress.org/support/users/3sonsdevelopment/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/warning-call_user_func_array-expects-parameter-1-to-be-a-valid-callback-func-13/#post-11789488)
 * Status: resolved