• Hi all,

    It seems lots of people have been getting the following PHP warning after updating WordPress, but none of the solutions posted are working for me.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /data07/mysite/public_html/wp-includes/class-wp-hook.php on line 298

    I know that it is the NextGEN gallery plugin that is causing my warning message, but I need it so will not be deactivating it! Someone suggested putting the following code at the top of the nggallery.php file, but I still get the warning displayed at the top on my site.

    <?php
    // Turn off all error reporting
    error_reporting(1);
    ?>

    Does anyone know where exactly in the nggallery.php file the above code should go?

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ramiz Syed

    (@globaliwebsolution)

    Hi,

    you navigate to gallery plugin function.php file it may be some of include file
    you need to use error reporting (0) not (1)

    <?php
    // Turn off all error reporting
    error_reporting(0);
    ?>

    Thread Starter ajnphoto

    (@ajnphoto)

    Thanks Ramiz, but WHERE does that PHP code need to be inserted? I tried it near the top of the nggallery functions PHP file but it just breaks the site! I am not a web developer so don’t know these things …

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP warning after recent WP update’ is closed to new replies.