Support » Plugin: WP Store Locator » Warning after migrate server

  • Resolved Serchi


    Hi, first of all congrats for the plugin!
    I’m using it and when I’ve migrated the site to another serve I got this error, never show before.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘custom_thumb_size’ not found or invalid function name in /homepages/38/d423326171/htdocs/xxxxxxx/wp-includes/class-wp-hook.php on line 298

    Any help please? Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit


    You where probably using this filter on the previous site, but judging by the error the code isn’t there anymore in the functions.php inside your active theme folder?

    It maybe only contains add_filter( 'wpsl_thumb_size', 'custom_thumb_size' );

    And not the rest of the code? ( the 100,100 is just an example ).

    function custom_thumb_size() {
        $size = array( 100, 100 );
        return $size;
    Thread Starter Serchi


    wow! thank you very much for your quick help! I added the code to functions.php and it’s solved but I do not know why this code has dissapear.

    Thanks again, I appreciate vey much this help.

    Best regards!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning after migrate server’ is closed to new replies.