2015-10-28 55 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配置文件中更改它 –