Pergunta

I just upgraded my hosting plan, and now the user session isnt' working anymore. Users can't access the mebership area when they login, and here are the errors that are shown when opening my website:

Warning: session_start() [function.session-start]: open(/home/content/15/9277415/tmp/sess_enersdnbm88g5detjemgnptu47, O_RDWR) failed: No such file or directory (2) in /home/content/15/9277415/html/include/config.php on line 14

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/15/9277415/html/include/config.php:14) in /home/content/15/9277415/html/include/config.php on line 14

Warning: Unknown: open(/home/content/15/9277415/tmp/sess_enersdnbm88g5detjemgnptu47, O_RDWR) failed: No such file or directory (2) in Unknown on line

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0

In config.php line 14 we have the session variables:

       if(!session_id()) session_start();
       if (!isset($_SESSION)) $_SESSION=array();

Does anybody have any idea why is this happening or how to fix it? These errors werent showing before the hosting plan upgrade.

Foi útil?

Solução

Make sure that the directory /home/content/15/9277415/tmp exists and is writable by the webserver.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top