• I have a problem now with nextgen pro Add gallery/Image on editing a gallery on a page or post (not from the admin bar menu option, its fine there). It is caused by IP geoblock (deactivating removes the error)

    Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /srv/users/serverpilot/apps/wordpress/public/wp-includes/functions.php on line 2679

    I am using the latest versions of both IP Feoblock and Nextgen Pro.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi @patbell101,

    This is very bad error because normally it would never happen. The code around line 2679 (I assume your WP is 4.7.2) looks like this:

    function wp_die( $message = '', $title = '', $args = array() ) {
        if ( wp_doing_ajax() ) {
            $function = apply_filters( 'wp_die_ajax_handler', '_ajax_wp_die_handler' );
        } elseif ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) {
            $function = apply_filters( 'wp_die_xmlrpc_handler', '_xmlrpc_wp_die_handler' );
        } else {
            $function = apply_filters( 'wp_die_handler', '_default_wp_die_handler' );
        }
    
        call_user_func( $function, $message, $title, $args );
    }

    The “Warning” arise from the last function call_user_func() and said that “The variable $function was not an array or string”. But the above code would set $function properly in any case.

    Your warning looks like this?

    https://fournotespublishing.com/question/11-the-white-album-contains/comment-page-171/

    So I recommend you to try one of blows:

    1. Enable Debugging in WordPress and investigate the cause of warning or error.

    2. Decrease the number of plugins you installed. c.f. https://wp-types.com/forums/topic/layout-1-8-8-wont-upload/

    3. Increase your PHP memory limit. c.f. https://www.kriesi.at/support/topic/cant-upload-enfold-theme/

    4. Re-install WP except the root wp-config.php & .htaccess files and the wp-content folder. c.f. https://www.ads-software.com/support/topic/error-wp-includesfunctionsphp-on-line-2117-dashboard-navigation-wp-v381/#post-5157066

    I hope this help you.

    • This reply was modified 7 years, 9 months ago by tokkonopapa.
    Thread Starter patbell101

    (@patbell101)

    I only get the second line of the error you show

    Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home/content/p3pnexwpnas04_data03/36/2382136/html/wp-includes/functions.php on line 2679

    The thing is that I can make it go away by deactivating the IPGeoblock plugin. So the guilty plugin is no mystery. I’d just like the plugin fixed.

    Plugin Author tokkonopapa

    (@tokkonopapa)

    I only get the second line of the error you show

    OK.

    The thing is that I can make it go away by deactivating the IPGeoblock plugin.

    Yes, I truly agree this is the fact. But did you try No.2 or 3 I mentioned? Those are the same as “deactivating the IPGeoblock plugin”.

    The function call_user_func() is on the line 2679 of function wp_die() in “/wp-includes/functions.php”.

    From the view point of the code, wp_die() is called properly in my plugin and NextGEN Gallery (not PRO). Honestly, I can’t solve this issue only with your current information. So I really need your help. Please try at least No.1, 2 or 3.

    I appreciate your kind patience.

    Thanks for your cooperation.

    • This reply was modified 7 years, 9 months ago by tokkonopapa.
    • This reply was modified 7 years, 9 months ago by tokkonopapa.
    Thread Starter patbell101

    (@patbell101)

    I have now turned on wp-debug, deactivated all but ipgeoblock and the nextgen plugins, plus increased the mempory variable to 512M.

    I now get the folowing error (in its completeness)

    Notice: Undefined variable: handler in /srv/users/serverpilot/apps/wordpress/public/wp-content/themes/vantage/premium/addons/ajax-comments/ajax-comments.php on line 73

    Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /srv/users/serverpilot/apps/wordpress/public/wp-includes/functions.php on line 2679

    Hope this helps

    I now have to reactivate the plugins and wo_debug but let me know if you need to login and/or have debuyg renabled etc

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi @patbell101,

    Thank you so much for your efforts. I think the memory is enough for only two plugins and one theme.

    And it seems a “Notice” from the theme “vantage” has no relation with this issue. But to make sure, could you try to change your theme to the default like “Twenty Seventeen” and investigate the same issue happens?

    I also found the similar topic in https://www.ads-software.com/support/topic/bad-activation/ which you started in the past.

    Anyway, I think that it takes a lot of time to resolve this issue. So I’d like to discuss about the debugging strategy in detail with you more directly if you agree. Could you contact me by email? You can find my email address at GitHub.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Nextgen Pro conflict’ is closed to new replies.