Warning: call_user_func_array()… after 2.7.5 update

Viewing 13 posts - 1 through 13 (of 13 total)
#23357

Will87
Member

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?

#23462

Shahjada
Keymaster

Not sure exactly, I will have to check it in your installation.

#23576

Will87
Member

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.

#23744

Will87
Member

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.

#23817

Shahjada
Keymaster

please give me temporary wp-admin login info in a private reply.

#23836

Will87
Member
This reply has been marked as private.
#23915

Shahjada
Keymaster

it is not anything related with wpdm, I tried with disabling wpdm, the warning was still there.

#23932

Will87
Member

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

#23933

Will87
Member

Another attempt to upload the debug log txt file

#23951

Shahjada
Keymaster

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.

#23955

Will87
Member

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 ?

#23972

Shahjada
Keymaster

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

#24245

Will87
Member

OK, I understand. Thanks for your help and for explaining what the problem is.

Viewing 13 posts - 1 through 13 (of 13 total)

The topic ‘Warning: call_user_func_array()… after 2.7.5 update’ is closed to new replies.