问题是,我每次登录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.php
和class-wp.-hook.php
但我没有太多的经验或知识去寻找什么。
有人能帮忙吗?
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.