Getting Some Errors After Changing Hosting..

Discussion in 'Databases' started by faheem334, Aug 25, 2011.

  1. #1
    Hello i am getting this error on my site :

    Warning: Unknown: open(/var/php_sessions/sess_990f55485ad06a4d36ecb63e758228f4, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

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

    If any one of you can tell me what is it and how to fix it.

    Thanks.
     
    faheem334, Aug 25, 2011 IP
  2. helpinghost

    helpinghost Active Member

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    53
    #2
    This actually means exactly what it says. PHP is trying to write session information into the folder /var/php_sessions.
    It seems on your new host this folder does not exist.
    The question is where you have set this setting. I would first look if you have an .htaccess file containing the session.save_path setting and comment it out or correct the path.
    If that is not the case, see if it is "Hardcoded" into your application somewhere.

    Of course there is also the option that you new host has set it up this way in his php.ini but forgot setup the directiory matching the setting.
     
    helpinghost, Aug 26, 2011 IP
  3. gxgb120

    gxgb120 Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Setting error maybe.
     
    gxgb120, Aug 30, 2011 IP