Fuel\Core\Database_Exception [ 1054 ]: Unknown column 'ip_address' in 'field list' [ INSERT INTO `sessions` (`session_id`, `previous_id`, `ip_address`, `user_agent`, `created`, `updated`, `payload`, `ip_hash`) VALUES ('6727f2a533e8f3be0bb8a83b764e661b', '6727f2a533e8f3be0bb8a83b764e661b', '::1', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0.1) Gecko/20100101 Firefox/5.0.1', 1311819045, 1311819045, '', '1ba0d4508441bcdb896203d32d573632') ]
Harro Verton wrote on Thursday 28th of July 2011:Database layout has been changed from ip_address to ip_hash in RC3.
Harro Verton wrote on Friday 29th of July 2011:There is only one DB::insert() in the sessions' db driver, which is in the create() method. It uses the $this->keys array to define both the field names and the values for the insert statement. If you have 'ip_address' there, you're using old code.
Harro Verton wrote on Friday 29th of July 2011:Ok, different than I thought. The keys array is part of the session cookie. So if you have a valid cookie from pre-RC3 code, then that will still contain the 'ip_address' field. As I wrote before, the keys of this array are assumed to be fields in the session table, so that's were it comes from. Delete the session cookie manually to fix this.
It looks like you're new here. If you want to get involved, click one of these buttons!