小编use*_*154的帖子

无法修改 Wordpress 中的标题信息错误

尝试登录管理面板时遇到此错误。我无法理解它。

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/wordpress/wp-config.php:1) in /home/xxxxxx/public_html/wordpress/wp-includes/pluggable.php on line 881
Run Code Online (Sandbox Code Playgroud)

pluggable.php 881:

function wp_redirect($location, $status = 302) {
global $is_IIS;

$location = apply_filters('wp_redirect', $location, $status);
$status = apply_filters('wp_redirect_status', $status, $location);

if ( !$location ) // allows the wp_redirect filter to cancel a redirect
    return false;

$location = wp_sanitize_redirect($location);

if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
    status_header($status); // This causes problems on IIS and some FastCGI setups

header("Location: $location", true, …
Run Code Online (Sandbox Code Playgroud)

php wordpress configuration-files pluggable http-headers

3
推荐指数
1
解决办法
5276
查看次数