Warning: call_user_func_array()… after 2.7.5 update

in Download Manager Free

Viewing 13 posts - 1 through 13 (of 13 total)
Dec 7, 2014 at 1:55 pm
#23357
Member
Will87
OP

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?

Dec 10, 2014 at 12:19 pm
#23462
Keymaster
Shahjada
Staff

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

Dec 11, 2014 at 9:27 pm
#23576
Member
Will87
OP

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.

Dec 16, 2014 at 10:22 pm
#23744
Member
Will87
OP

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.

Dec 17, 2014 at 2:48 pm
#23817
Keymaster
Shahjada
Staff

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

Dec 17, 2014 at 8:46 pm
#23836
Member
Will87
OP
This reply has been marked as private.
Dec 19, 2014 at 6:08 pm
#23915
Keymaster
Shahjada
Staff

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

Dec 19, 2014 at 8:44 pm
#23932
Member
Will87
OP

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

Dec 19, 2014 at 8:45 pm
#23933
Member
Will87
OP

Another attempt to upload the debug log txt file

Dec 20, 2014 at 6:50 pm
#23951
Keymaster
Shahjada
Staff

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.

Dec 20, 2014 at 7:15 pm
#23955
Member
Will87
OP

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 ?

Dec 21, 2014 at 7:52 pm
#23972
Keymaster
Shahjada
Staff

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

Jan 5, 2015 at 8:50 pm
#24245
Member
Will87
OP

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.