CodeIgniter Forums
CI 3 HMVC Modular Extensions can't load Session Library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: CI 3 HMVC Modular Extensions can't load Session Library (/showthread.php?tid=50019)

Pages: 1 2


CI 3 HMVC Modular Extensions can't load Session Library - mdixon18 - 04-02-2015

I am working locally with CodeIgniter, now, I've installed HMVC Modular Extensions.

Now every time I try to load the Session library I get this problem:

Code:
A PHP Error was encountered

Severity: Warning

Message: mkdir() [function.mkdir]: Invalid argument

Filename: drivers/Session_files_driver.php

Line Number: 117

Backtrace:

File: C:\Users\Matthew\Desktop\CMS\barebones\application\third_party\MX\Loader.php
Line: 173
Function: _ci_load_library

File: C:\Users\Matthew\Desktop\CMS\barebones\application\third_party\MX\Loader.php
Line: 65
Function: initialize

File: C:\Users\Matthew\Desktop\CMS\barebones\application\third_party\MX\Base.php
Line: 55
Function: __construct

File: C:\Users\Matthew\Desktop\CMS\barebones\application\third_party\MX\Base.php
Line: 60
Function: __construct

File: C:\Users\Matthew\Desktop\CMS\barebones\application\third_party\MX\Controller.php
Line: 4
Function: require

File: C:\Users\Matthew\Desktop\CMS\barebones\application\third_party\MX\Modules.php
Line: 123
Function: include_once

File: C:\Users\Matthew\Desktop\CMS\barebones\application\core\CB_Controller.php
Line: 3
Function: spl_autoload_call

File: C:\Users\Matthew\Desktop\CMS\barebones\public_html\index.php
Line: 317
Function: require_once

An uncaught Exception was encountered

Type: Exception

Message: Session: Configured save path '' is not a directory, doesn't exist or cannot be created.

Filename: C:\Users\Matthew\Desktop\CMS\barebones\system\libraries\Session\drivers\Session_files_driver.php

Line Number: 119

Backtrace:

File: C:\Users\Matthew\Desktop\CMS\barebones\application\third_party\MX\Loader.php
Line: 173
Function: _ci_load_library

File: C:\Users\Matthew\Desktop\CMS\barebones\application\third_party\MX\Loader.php
Line: 65
Function: initialize

File: C:\Users\Matthew\Desktop\CMS\barebones\application\third_party\MX\Base.php
Line: 55
Function: __construct

File: C:\Users\Matthew\Desktop\CMS\barebones\application\third_party\MX\Base.php
Line: 60
Function: __construct

File: C:\Users\Matthew\Desktop\CMS\barebones\application\third_party\MX\Controller.php
Line: 4
Function: require

File: C:\Users\Matthew\Desktop\CMS\barebones\application\third_party\MX\Modules.php
Line: 123
Function: include_once

File: C:\Users\Matthew\Desktop\CMS\barebones\application\core\CB_Controller.php
Line: 3
Function: spl_autoload_call

File: C:\Users\Matthew\Desktop\CMS\barebones\public_html\index.php
Line: 317
Function: require_once



RE: CI 3 HMVC Modular Extensions can't load Session Library - mdixon18 - 04-02-2015

I've noticed that I cannot include any Libraries, I am using CI 3.0 and HMVC for CI 3.0...

Installed correctly as far as the steps directed me to do so.

But yeah I cant use any libraries.

Any ideas?


RE: CI 3 HMVC Modular Extensions can't load Session Library - frocco - 04-02-2015

I am using the sessions database driver with no issues.

I changed it to files and it works also.
Code:
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'ci_sessions';;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;



RE: CI 3 HMVC Modular Extensions can't load Session Library - mdixon18 - 04-02-2015

It worked fine for me too until I added HMVC


RE: CI 3 HMVC Modular Extensions can't load Session Library - frocco - 04-02-2015

That is what I am using with CI3 and HMVC with no issues.
Are you sure you have the HMVC CI3 version?


RE: CI 3 HMVC Modular Extensions can't load Session Library - mdixon18 - 04-03-2015

They only have 1 download now so I guess so


RE: CI 3 HMVC Modular Extensions can't load Session Library - Krycek - 04-03-2015

Yeah the download link has merged (see commits)


RE: CI 3 HMVC Modular Extensions can't load Session Library - mdixon18 - 04-03-2015

But I've noticed it does it too without HMVC So I think it's a permission problem.

Using windows 8.1
Problem occurs with AMPPS/MAMP/XAMP
using clean codeignighter 3.0.0

I don't know what to do


RE: CI 3 HMVC Modular Extensions can't load Session Library - frocco - 04-03-2015

Did you try changing sessions to use database?


RE: CI 3 HMVC Modular Extensions can't load Session Library - mdixon18 - 04-03-2015

How do you do this In CI3 either the documentation isn't updated or I'm looking in the wrong place. As i would like to use database for sessions