Support » Fixing WordPress » Failure to write session data

  • Working on site, thekentuckygent.com.

    When reviewing PHP error logs the below error runs rampant on the site, and I’m unsure how to fix?

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

    Any help would be appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • if you are on Shared Hosting i will advice to contact support because i guess access to php.ini would be restrictive else you can look into php.ini and add session_save_path(“/tmp”);

    reference http://php.net/manual/en/function.session-save-path.php

    take backup of php.ini before any modifications in case to revert back.

    ; http://php.net/session.save-path
    session.save_path = "home/thekent2/tmp"

    Above is the current session save path in php.ini.

    You might put an info.php file into your blog’s directory with:

    <?php
    phpinfo();
    ?>

    Then execute that and verify where it thinks the Loaded Configuration File and session.save_path is. In my case it’s just “/tmp” which is off my user directory.

    Might make sure with webhost that the drive just isn’t simply full.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Failure to write session data’ is closed to new replies.