EllisLab/CodeIgniter — Issue #740: session class autoload active record off issue
Author: xstat
Created: 2011-12-05 01:27:54+00:00
State: open

Hi, I've been working with CI v2.1.0.

I had problems when trying to autoload session library with the following conditions:

- sessions stored in database
- database active_record OFF

There are no problems if session library is loaded whitin the controller (w/active_record=FALSE), the problem arises when the library is autoloaded. Internal server error is displayed and no page is rendered.

Apache's error.log:
[Sun Dec 04 22:14:53 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined method CI_DB_mysql_driver::where() in /home/xstat/technique/system/libraries/Session.php on line 201, referer: http://localhost/tech/catalogo/Seccion2

Problem was solved by setting active_record to TRUE.