-
Notifications
You must be signed in to change notification settings - Fork 36
Description
I have the following setup:
Ubuntu 14.04
Php 5
Mysql 5.5
Apache2
I followed this guide along with the guide here in github README.
[https://blog.technerdservices.com/index.php/2015/03/tutorial-how-to-install-beansbooks-on-ubuntu-14-04/]
Session_Exception [ 1 ]: Error reading session data. [SID:(), name:session][Details: exception 'ErrorException' with message 'mysql_select_db() expects parameter 2 to be resource, boolean given' in /var/www/html/modules/database/classes/kohana/database/mysql.php:105 Stack trace: #0 [internal function]: Kohana_Core::error_handler(2, 'mysql_select_db...', '/var/www/html/m...', 105, Array) #1 /var/www/html/modules/database/classes/kohana/database/mysql.php(105): mysql_select_db('kohana', false) #2 /var/www/html/application/classes/database/mysql.php(75): Kohana_Database_MySQL->_select_db('kohana') #3 /var/www/html/modules/database/classes/kohana/database/mysql.php(430): Database_MySQL->connect() #4 /var/www/html/modules/database/classes/kohana/database.php(478): Kohana_Database_MySQL->escape('5c8ebb17bf6e53-...') #5 [internal function]: Kohana_Database->quote('5c8ebb17bf6e53-...') #6 /var/www/html/modules/database/classes/kohana/database/query.php(190): array_map(Array, Array) #7 /var/www/html/modules/database/classes/kohana/database/query/builder/select.php(413): Kohana_Database_Query->compile(Object(Database_MySQL)) #8 /var/www/html/modules/database/classes/kohana/database/query.php(228): Kohana_Database_Query_Builder_Select->compile(Object(Database_MySQL)) #9 /var/www/html/modules/database/classes/kohana/session/database.php(131): Kohana_Database_Query->execute(Object(Database_MySQL)) #10 /var/www/html/modules/database/classes/kohana/session/database.php(111): Kohana_Session_Database->_regenerate() #11 /var/www/html/system/classes/kohana/session.php(300): Kohana_Session_Database->_read(NULL) #12 /var/www/html/system/classes/kohana/session.php(125): Kohana_Session->read(NULL) #13 /var/www/html/modules/database/classes/kohana/session/database.php(74): Kohana_Session->__construct(Array, NULL) #14 /var/www/html/system/classes/kohana/session.php(54): Kohana_Session_Database->__construct(Array, NULL) #15 /var/www/html/application/classes/controller.php(45): Kohana_Session::instance() #16 /var/www/html/application/classes/controller/view.php(36): Controller->before() #17 /var/www/html/application/classes/controller/auth.php(24): Controller_View->before() #18 [internal function]: Controller_Auth->before() #19 /var/www/html/system/classes/kohana/request/client/internal.php(103): ReflectionMethod->invoke(Object(Controller_Auth)) #20 /var/www/html/system/classes/kohana/request/client.php(64): Kohana_Request_Client_Internal->execute_request(Object(Request)) #21 /var/www/html/system/classes/kohana/request.php(1154): Kohana_Request_Client->execute(Object(Request)) #22 /var/www/html/index.php(109): Kohana_Request->execute() #23 {main}]
I added some code to really see what the error kohana was throwing and that is what i showed here is what I added to show a detailed error:
} 321 catch (Exception $e) 322 { 323 // Error reading the session, usually 324 // a corrupt session. 325 throw new Session_Exception('Error reading session data.'. " [SID:".$id."(".$this->id()."), name:".$this->_name."][Details: " . $e . "]\n", NULL, Session_Exception::SESSION_CORRUPT); 326 } 327 328 if (is_array($data)) 329 { 330 // Load the data locally
Has anyone seen this error I've looked through all errors but haven't seen this yet.
Thanks,