2014-09-10 47 views
0

嗨,我真的很感謝一些幫助。我收到以下錯誤,在http://www.bookapartmentsinyork.co.uk/警告:session_start()[function.session-start]

Warning: session_start() [function.session-start]: open(/home/content/05/11475705/tmp/sess_o4ml0j7uuo01pffbonlpdpi8p2, O_RDWR) failed: No such file or directory (2) in /home/content/05/11475705/html/wp-content/plugins/quitenicebooking/includes/quitenicebooking.class.php on line 141 

警告:在session_start()[function.session啓動]:無法發送會話緩存限制器 - 已經發送了頭(輸出開始/家庭/內容/ 05/11475705/HTML /wp-content/plugins/quitenicebooking/includes/quitenicebooking.class.php:141)in /home/content/05/11475705/html/wp-content/plugins/quitenicebooking/includes/quitenicebooking.class.php on line 141

我已經嘗試了很多東西,但對我來說都很困惑。我正在使用GoDaddy, 該錯誤是由Windows更改爲Linux服務器後導致的。我很新,所以請儘量幫助我解釋,因爲我可能會很容易感到困惑:)謝謝!

+0

http://stackoverflow.com/questions/8812754/cannot-send-session-cache-limiter-headers-already-sent – john 2014-09-10 12:30:21

+0

檢查您的/ tmp文件夾以查看www-data是否具有正確的訪問權限 – T00rk 2014-09-10 12:31:22

+0

可能的重複[如何修正]標題已發送「PHP中的錯誤」(http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php) – Wezy 2014-09-10 12:34:35

回答

0

它看起來像'quitenicebooking'插件試圖讀取不存在的會話存儲數據。 關於已經發送的頭文件的後續錯誤只是第一個錯誤出現的結果。

您可以嘗試使用ini_set()更改會話存儲位置。

+0

謝謝懷特先生,現在問題已解決:) – 2014-09-12 10:26:56

-1

請務必在文件的最開始處設置session_start()

您收到此錯誤是因爲頭已經發送。

+0

不,他得到一個錯誤消息,表示他的會話無法找到。然後,由於上面的輸出,他已經發送了頭文件錯誤。 – 2014-09-10 12:43:33

相關問題