Jump to content

The session save path '/var/lib/php/session' is not writable.


Tommaso

Recommended Posts

Thanks for the reply but actually I am not capable of doing what you are suggesting. I have a plesk access but I am not confortable with linux command line. I could get some assistance though. Is this directory supposed to be created in the root of the server or in the web domain root?

Link to comment
Share on other sites

HI Matteo, would that look like this..? Deleting the IF block causes a 500 error.

class OX_Admin_UI_SessionStorage implements OX_Admin_UI_Storage
{
    private $id;
    private $path;

    function __construct($id = null, $path = null)
    {
        {
            $path = session_save_path();
             {
                
            }
        }

        $this->id = isset($id)? $id : 'session_id';
        $this->path = $path;
    }

Edited by dennisbrouwer
500 Server Error
Link to comment
Share on other sites

  • 1 month later...

Hello,

I solved it by deleting lines:

//            if (!empty($path) && !is_writable($path)) {
//                echo htmlspecialchars("The session save path '{$path}' is not writable.");
//                exit;
//            }

of lib/OX/Admin/UI/SessionStorage.php

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...