• 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 to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    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 to see where it might be used.

    Thread Starter dogdaysofsummer

    (@dogdaysofsummer)

    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)

    (@sterndata)

    Volunteer Forum Moderator

    OK, so where is it?

    Thread Starter dogdaysofsummer

    (@dogdaysofsummer)

    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!

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    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

    (@dogdaysofsummer)

    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.