2012-07-23 96 views
0

我試圖登錄到WordPress管理在http://www.kzoomarketing.com/tascott/wp-login.phpWordPress管理失敗

我得到這個消息:

Warning: Header may not contain more than a single header, new line detected. in /home/absbm/public_html/tascott/wp-login.php on line 361 

Warning: Cannot modify header information - headers already sent by (output started at /home/absbm/public_html/tascott/wp-login.php:361) in /home/absbm/public_html/tascott/wp-login.php on line 363 

Warning: Cannot modify header information - headers already sent by (output started at /home/absbm/public_html/tascott/wp-login.php:361) in /home/absbm/public_html/tascott/wp-includes/pluggable.php on line 669 

Warning: Cannot modify header information - headers already sent by (output started at /home/absbm/public_html/tascott/wp-login.php:361) in /home/absbm/public_html/tascott/wp-includes/pluggable.php on line 670 

Warning: Cannot modify header information - headers already sent by (output started at /home/absbm/public_html/tascott/wp-login.php:361) in /home/absbm/public_html/tascott/wp-includes/pluggable.php on line 671 

Warning: Cannot modify header information - headers already sent by (output started at /home/absbm/public_html/tascott/wp-login.php:361) in /home/absbm/public_html/tascott/wp-includes/pluggable.php on line 673 

Warning: Cannot modify header information - headers already sent by (output started at /home/absbm/public_html/tascott/wp-login.php:361) in /home/absbm/public_html/tascott/wp-includes/pluggable.php on line 866 

我已刪除的空白在的login.php結束,仍然收到此錯誤。

我也看過第361行,並將該文件與其他wordpress安裝進行比較,但沒有看到任何問題。

任何有關這個問題的幫助將不勝感激。

回答

0

當您在<?php?>之前或之後包含空白的文件時,通常會出現這些類型的錯誤。

如果你有一個插件或你自定義的東西,確保在<?php之前沒有空格。通常可以省略?>以避免問題。

0

你不應該改變你的核心文件。

我懷疑你的一個插件文件導致了這個問題,如果你發現刪除了最後一個?>在有問題的文件中,請嘗試禁用它們。

還有一個插件可以在所有插件中使用,然後在最後刪除所有空格。

1

I'had了同樣的問題,我解決問題蒙山這樣的:

http://wordpress.org/support/topic/warning-header-may-not-contain-more-than-a-single-header-1

joshfraz發表於4年前

我有這個問題了。事實證明,我在我的siteurl選項結尾處有一個額外的空間。一旦我刪除了它的工作正常的空間。

因此,在您的WP數據庫中,切入wp_options> siturl並刪除值字段中的任何額外空格或換行符。

如果第一種方法沒有解決您的問題,其他一些用戶會發現utf8 BOM代碼問題。