Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI3.0-dev Session Error #361

Closed
tobysommer opened this issue Nov 26, 2012 · 6 comments
Closed

CI3.0-dev Session Error #361

tobysommer opened this issue Nov 26, 2012 · 6 comments

Comments

@tobysommer
Copy link

Hi!

First, I want to say "thank you" for this great library!

Throwing in this lib into the latest version of CodeIgniter (3.0-dev) and loading the library causes the following error:

PHP Fatal error:  Class 'CI_Driver_Library' not found in C:\inetpub\wwwroot\system\libraries\Session\Session.php on line 53

It's a blank & clean install with the following changes:

  1. config/database.php Configured DB-connection (sqlsrv: tested & works)
  2. config/config.php added encryption_key
  3. throwing in ion_auth
  4. loading the lib:
    4a) controllers/welcome.php added $this->load->library('ion_auth'); OR
    4b) config/autoload.php autoload ion_auth

I also tried out using it as a spark, but there is the same problem.

Any ideas on how to solve this problem?

Thanks in advance!

@benedmunds
Copy link
Owner

Are you using database sessions? Try turning that off...

@tobysommer
Copy link
Author

No, I use regular sessions, but it doesn't matter wether I use the cookie-session driver or the native-session driver: The error still occurs

@benedmunds
Copy link
Owner

Make sure you have:

$autoload['drivers'] = array('session');

in config/autoload.php

@benedmunds
Copy link
Owner

Actually it looks like autoloading of that might be broken right now.

Add
$this->load->driver('session');

and then try it

@tobysommer
Copy link
Author

Yep, $this->load->driver('session'); works :)

thanks!

@benedmunds
Copy link
Owner

Awesome! Thanks for the update dude!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants