• Resolved nflh

    (@nflh)


    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)
  • Hello @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/

    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 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.