2015-10-28 85 views
0

我有一個共享的主機提供商一個phpBB論壇,我在這裏得到這個錯誤phpBB的錯誤 - PHP的警告

[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 905: session_start(): open(/hermes/phpsessions/S/T/-/Z/sess_ST-ZhPr8mYrwe, O_RDWR) failed: No such file or directory (2) 
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 905: session_start(): Cannot send session cache limiter - headers already sent (output started at [ROOT]/includes/functions.php:3906) 
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 1614: session_write_close(): open(/hermes/phpsessions/S/T/-/Z/sess_ST-ZhPr8mYrwe, O_RDWR) failed: No such file or directory (2) 
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 1614: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (4;/hermes/phpsessions) 
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 1618: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3906) 

奇怪的是,發生意外有一天,它用於正常工作。另外在我的私人電話簿中,我沒有任何/hermes

回答

1

確保會話目錄是可寫的,或者你可以爲自己設定一個路徑有:

session_save_path 

This comment也是有用的,如果你正在使用上述功能。

+0

謝謝你的迴應,但你能給我一些額外的細節嗎?在phpbb配置我找不到這樣的參數,並導致它共享主機我不能配置PHP本身。 –

+1

您可能想聯繫您的主機,它可能是一個PHP配置錯誤 - 會話路徑目錄不可寫。您可以通過使用session_save_path在phpBB配置文件中更改它 –