• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI 3 HMVC Modular Extensions can't load Session Library

#1
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
Reply

#2
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?
Reply

#3
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;
Reply

#4
It worked fine for me too until I added HMVC
Reply

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

#6
They only have 1 download now so I guess so
Reply

#7
Yeah the download link has merged (see commits)
Reply

#8
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
Reply

#9
Did you try changing sessions to use database?
Reply

#10
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
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.