close

今天在練習WP更換佈景主題時出現了


Warning: Cannot modify header information - headers already sent by (output started at J:\AppServ\www\wordpress\wp-content\themes\wpnote\functions.php:1) in J:\AppServ\www\wordpress\wp-includes\functions.php on line 830

Warning: Cannot modify header information - headers already sent by (output started at J:\AppServ\www\wordpress\wp-content\themes\wpnote\functions.php:1) in J:\AppServ\www\wordpress\wp-includes\functions.php on line 831

後來上網查了一下、原來是php.ini的output_buffering設為off

後來把他設為output_buffering = 4096 再重開apache就ok了

後來查了有關output_buffering的說明如下

; 輸出緩存允許你甚至在輸出正文內容之後發送header標頭(包括cookies), 但這樣會使速度有些下降.
; 您可以在運行時使用輸出緩存功能,也可以把output_buffering的值設為On使所有檔案的輸出緩存打
; 開.您也可以使用一個數值(單位是byte)作為輸出緩存上限,例如: output_buffering=4096.
output_buffering = 4096


arrow
arrow
    全站熱搜

    result945 發表在 痞客邦 留言(0) 人氣()