Welcome Guest, Not a member yet? Register   Sign In
Session Error
#1

[eluser]boytun[/eluser]
Hello Friends

Please,I want to know the cause and the solution of this problem.

Quote:A PHP Error was encountered

Severity: Notice

Message: Undefined property: Widg_html::$db

Filename: libraries/Session.php

Line Number: 201


Fatal error: Call to a member function where() on a non-object in C:\xampp\htdocs\system\libraries\Session.php on line 201

Thanks in advance
#2

[eluser]TheFuzzy0ne[/eluser]
It looks like you're using database sessions but haven't loaded your database. Normally the session library will load the database for you. In ./application/config/config.php, make sure that $config['sess_table_name'] is not empty.
#3

[eluser]boytun[/eluser]
The query is executed very well, and who is deceive me that this error is showed only when I use the Hmvc architecture
thisis the session variables located in the config.php file:

Quote:$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = TRUE;
$config['sess_encrypt_cookie'] = TRUE;
$config['sess_use_database'] = TRUE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
#4

[eluser]TheFuzzy0ne[/eluser]
Please post your controller code. I suspect you're not extending MX_Controller.




Theme © iAndrew 2016 - Forum software by © MyBB