2017-02-24 53 views
0

我創建了一個WordPress主題,我已經在本地主機進行了測試,它沒有任何錯誤。但是,當我上傳它的主機,在大多數的網頁我看到這個錯誤:不能更改頭信息WordPress的

Warning: Cannot modify header information - headers already sent by (output started at /home2/dekadesi/domains/dekadesign.ir/public_html/wp-content/themes/dekadesign_v2/functions.php:1) in /home2/dekadesi/domains/dekadesign.ir/public_html/wp-includes/pluggable.php on line 1179

wp-confing.phpfunctions.php檢查空間,但我的問題沒有得到解決。我需要functions.php文件,我不知道該怎麼辦。

+0

使用ob_start在PHP標籤頭的頂部()函數 – Gulshan

+0

如何解決已經發出警告問題頭? 鏈接:https://codex.wordpress.org/FAQ_Troubleshooting – ben

+0

請不要把解決材料在你的問題。如果你想記錄更多關於答案的細節,請在下面編輯你的答案。謝謝! – halfer

回答

0

感謝您的幫助, 我跟我的網絡託管經理,他們開始在我的主機output_buffering。 然後問題解決了!

0

請加上ob_start();在functions.php文件的頂部,問題將被解決。

相關問題