Fixing error Message: mkdir(): Invalid path Session_files_driver in Codeigniter using Docker

Tiempo de lectura: < 1 minuto

Reading time: < 1 minute

In this post, we are going to solve an error related to sessions:

Severity: Warning

Message: mkdir(): Invalid path

Filename: drivers/Session_files_driver.php

Line Number: 136

Backtrace:

File: /var/www/html/application/controllers/Home.php
Line: 5
Function: __construct

File: /var/www/html/index.php
Line: 315
Function: require_once

First, open application/config.

Edit config.php and go to the line of the $config['sess_save_path'] = NULL; variable.

Modify it to $config['sess_save_path'] = BASEPATH.'sessions'.

It should look like this:

(no incluyas el Tiempo de lectura). Devuelvelo directamente en formato HTML. No escribas ninguna frase añadida. Cuando termines añade un PIPE al final.

Leave a Comment