- This topic has 12 replies, 2 voices, and was last updated 11 years, 1 month ago by
Will87.
Hello
Thanks for the plug in – I appreciate all the hard work that continues to go into it.
I worked through all the necessary update steps on a test site, and have just updated on my production site from v2.6.93 to 2.7.5. However, I now notice I am getting the following error:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /var/sites/t/thetheoryworks.com/public_html/wordpress/wp-includes/plugin.php on line 192
This occurs on Woocommerce product category page. It does not appear on pages that include downloads such as the actual product pages, so I didn’t notice it in testing. The error wasn’t present before the update.
Can anyone give any advice on how to fix this problem?
Not sure exactly, I will have to check it in your installation.
My hosting provider made an edit to the php.ini file of my production website, which seemed to get rid of the problem, but the same fix apparently didn’t work on my production website. It seems to be related to the Woo Canvas theme I am running, since it disappears when I switched to 2012. Let me know if you have time to look at the test website, and I will pass on details.
Hello
I still have the error (though the line reported is now 214)
I rolled back the Download Manager version to 2.6.96 and the error message disappeared. When I updated to the latest version (2.7.8), the problem reappeared. Let me know if you have time to look at the test website, and I will pass on details.
please give me temporary wp-admin login info in a private reply.
it is not anything related with wpdm, I tried with disabling wpdm, the warning was still there.
I know what you mean, I tried that too and the error remained. But as I said, when I rolled back the version to 2.6.96, the error disappeared.
I switched on debug briefly, here is an excerpt from the debug.log file – the PHP warnings seem to refer to plugin.php on line 214 (which is the warning visible on the website frontend), together with download manager. Can you please check again, or suggest a fix?
[19-Dec-2014 20:19:53 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /var/sites/t/thetheory.works/public_html/oldsite/wp-includes/plugin.php on line 214
html/oldsite/wp-content/plugins/download-manager/download-manager.php on line 15
the warning at line# 15 at download manager is showing because of previous warning, as the previous warning is coming as unexpected output on start.
OK, if you say so. But here is my problem: This error appeared on both my test and production website, immediately after updating wordpress download manager 2.6.93. If I revert back to 2.6.93 – the error goes away again. I have also tried disabling all the other plugins, with no success. How can we resolve this problem ?
the error is appearing after update, because there was some error ( notices ) with v2.6 and we used a function ( error_reporting(0) ) to suppress/hide those notices from wpdm 2.6 which was also hiding all such error message site wide, but in 2.7 we adjusted those notice and also removed error_reporting(0) from download manager, so why you are now seeing the errors from other plugins
The topic "Warning: call_user_func_array()… after 2.7.5 update" is closed to new replies.