PHP warning after recent WP update
-
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!
The topic ‘PHP warning after recent WP update’ is closed to new replies.