编辑Wordpress类别会导致PHP行/解析错误


Editing Wordpress category gives PHP line/parse error

不确定这是何时发生的,但在编辑类别时,此错误会在编辑类别页面的顶部出现。

警告:call_user_func_array()要求参数1是有效的回调,函数"my_category_custom_fields"未找到或无效函数名在/home2/sirenon2/public_html/wp-includes/plugin.php上525线

525行为call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));

当我在编辑类别页面上提交时,它会给我原始错误加上:

警告:无法修改标头信息-标头已由发送(输出开始于/home2/sirenon2/public_html/wp-includes/plugin.php:525)/第1228行上的home2/sirenon2/public_html/wp-includes/plugble.php

1228行是header("Location: $location", true, $status);

关于问题是什么以及如何解决,有什么想法吗?我的编辑类别页面上确实有自定义字段。

感谢

安装的插件中有一个出现错误,导致上述错误,或者您需要更新wordpress或PHP。WordPress与已安装的PHP版本可能存在兼容性问题。WordPress的一些功能可能已经更新了。

如果更新不起作用,只需转到wp-config.php文件并将该常量设置为false。如果配置文件中没有这一行,请添加它。

define('WP_DEBUG', false);

我以前也遇到过这个问题。但我把output_braining改为On。你可以在PHP.ini中找到它。

或者引用此urlhttp://chevronscode.com/index.php/wordpress-header-error-wp-includespluggable-php.html