Debug in WP backend

时间:2018-10-10 作者:Mette

问题是,我每次登录WP中的/admin页面时都会收到这些警告。根据我使用的浏览器,这些浏览器存在以下问题:

警告:call\\u user\\u func\\u array()要求参数1为有效回调,在/var/www/public\\u html/wp includes/class wp hook中找不到函数“add\\u role\\u caps\\u to\\u job\\u agent”,或者函数名无效。php在线298

警告:无法修改标题信息-标题已由/var/www//public\\u html/wp includes/option中的(输出开始于/var/www/public\\u html/wp includes/class wp hook.php:298)发送。php在线837

警告:无法修改标题信息-标题已由/var/www/public\\u html/wp includes/class wp hook.php:298)中的/var/www/public\\u html/wp includes/option发送。php在线838

我试着调查option.phpclass-wp.-hook.php 但我没有太多的经验或知识去寻找什么。

有人能帮忙吗?

1 个回复
SO网友:Fabian Marz

The warning states the issue is coming from custom code as in core WP no function as add_role_caps_to_job_agent exists. Try searching for add_role_caps_to_job_agent in wp-content, to see how this function is getting called and fix or uncomment the call.

The other two notices will disappear once the first notice is solved as WP is trying to set/send headers which is possible only, if nothing was printed to the screen before.

结束

相关推荐

更新页面(update-core.php)和插件页面(plugins.php)恢复到主页

我在Wordpress网站的管理视图中收到通知,我有一个网站和插件的可用更新(在我的网络管理仪表板中,在“插件”和“更新”旁边的红色圆圈中有“1”)。。。但当我尝试同时转到“更新”页和;插件页面,是否显示主页?此时的URL为http:///wp-admin/network/update-core.php/和http:///wp-admin/plugins.php/分别地因此,我永远无法到达真正的更新页面,也无法更新我的Wordpress或插件。如何显示更新或插件页面?