pyrocms/pyrocms — Issue #818: latest pyrocms-develop branch
Author: jaysonng
Created: 2011-10-19 03:46:33+00:00
State: open

I got this error after pulling the latest develop update.

--------
Error Number: 1406

Data too long for column 'user_agent' at row 1

INSERT INTO `default_ci_sessions` (`session_id`, `ip_address`, `user_agent`, `last_activity`, `user_data`) VALUES ('4f38caaac93111cc9a2161841b290284', '0.0.0.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22', 1318965721, '')

Filename: libraries/Session.php

Line Number: 328

----

I fixed it by increasing the varchar limit.