admin管理员组文章数量:1287956
I am currently working on designing my blog and am almost done but when I updated to 5.1 WordPress version in XAMPP, it started showing up this error message:
Warning: call_user_func_array() expects parameter 1 to be a valid callback,
function 'disable_embeds_rewrites' not found or invalid function name in
E:\xampp\htdocs\wp\wp-includes\class-wp-hook.php on line 286
The blog theme(with custom callback for comments) I had just designed was working properly in last version of WordPress but this error started showing up just after I updated my WordPress.
Please provide me some solution!
I am currently working on designing my blog and am almost done but when I updated to 5.1 WordPress version in XAMPP, it started showing up this error message:
Warning: call_user_func_array() expects parameter 1 to be a valid callback,
function 'disable_embeds_rewrites' not found or invalid function name in
E:\xampp\htdocs\wp\wp-includes\class-wp-hook.php on line 286
The blog theme(with custom callback for comments) I had just designed was working properly in last version of WordPress but this error started showing up just after I updated my WordPress.
Please provide me some solution!
Share Improve this question asked Feb 28, 2019 at 5:06 RIshabh JhaRIshabh Jha 433 bronze badges1 Answer
Reset to default 4The error you're getting is showing, because somewhere on your site (your theme or one of your plugins) is registering a filter function that doesn't exist.
Somewhere in your code, there will be such line (or similar to it):
add_filter( 'rewrite_rules_array', 'disable_embeds_rewrites' );
It may use different hook, so it may also look like:
add_filter( 'XXX', 'disable_embeds_rewrites' );
The problem is that the function disable_embeds_rewrites
doesn't exist on your site.
The easiest/quickest way to fix it is to remove the line above.
PS. But you should be careful. Maybe that filter is needed on your site. So when you find it, you should contact the author of that part of code (plugin/theme) and report it as a bug.
本文标签: pluginsWP showing quotwarning calluserfuncarray()quotWhat to do
版权声明:本文标题:plugins - WP showing "warning: call_user_func_array()", What to do? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741318360a2372056.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论