Welcome Guest, Not a member yet? Register   Sign In
Configured driver database was not found CI3
#1

I have searched many sites and can not find solution to this problem with the library session on "C3".

I tested with

PHP Code:
autoload ['libraries'] = array ('database''session'); //From autoload

//from config
$config['sess_driver'] = 'database';
$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;

(
I have the table ci_sessions from query in documentation C3

And always get this error:

An uncaught Exception was encountered
Type: UnexpectedValueException
Message: Session: Configured driver 'database' was not found. Aborting.
Filename: public_html/igniter/system/libraries/Session/Session.php
Line Number: 230
Backtrace:
File: /home/public_html/igniter/application/controllers/Welcome.php
Line: 8
Function: __construct
File: /home/public_html/igniter/index.php
Line: 292
Function: require_once   

The error only occurs when I add to the array session, when I remove it, it works.
Reply
#2

What do you mean by "add to the array session"? Please show more code.
Reply
#3

You either don't have system/libraries/Session/drivers/Session_database_driver.php for some weird reason, or you have an application/libraries/Session/drivers/Session_database_driver.php for an even weirder reason and it doesn't do what it should.
Reply
#4

(01-03-2016, 04:12 AM)Narf Wrote: You either don't have system/libraries/Session/drivers/Session_database_driver.php for some weird reason, or you have an application/libraries/Session/drivers/Session_database_driver.php for an even weirder reason and it doesn't do what it should.

Although I've only heard of it happening once, there's a chance that the OP's CI download was corrupt. I would swap out the system directory for a new copy.
Reply
#5

[SOLVED]

As he said "skunkbird" perhaps the files are corrupt. The solution was to uploading a new directory tree CI3
It was a headache. But the solution was simple.

Thanks a lot
Reply
#6

Huh ... where did you download it from?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB