I'm starting to see more and more errors in my php log file, referring to the insert_to_wp function. It appears that some browsers have an 'agent' string that is longer than 255 chars, and then the 'insert into' action fails
(Perhaps something like this could solve the issue ? : )
Line 1899 $agent = substr($agent,255);