Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2016, 04:15 PM
hakanyakar hakanyakar is offline
 
Join Date: Mar 2011
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default MySQL Error : Data too long for column 'useragent' at row 1

Hello I moved my site new server but chrome database error

Code:
Database error in vBulletin 3.8.8:

Invalid SQL:

					UPDATE session
					SET lastactivity = 1465047282, location = '/', inforum = 0, inthread = 0, incalendar = 0, badlocation = 0, useragent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'
				
MySQL Error   : Data too long for column 'useragent' at row 1
Error Number  : 1406
how fix help me please
Reply With Quote
  #2  
Old 06-04-2016, 04:52 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Increase the size of the useragent column in the session table.
Reply With Quote
Благодарность от:
hakanyakar
  #3  
Old 06-04-2016, 05:28 PM
hakanyakar hakanyakar is offline
 
Join Date: Mar 2011
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
Increase the size of the useragent column in the session table.
how can I do it can you help me please ?
Reply With Quote
  #4  
Old 06-04-2016, 11:27 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use a tool like phpMyAdmin that your host supplies to you. Then go to the session table and click Structure (very top tab) and then click Change next to the useragent column and change it. (There is no useragent column in default vbulletin, so I can't tell you exactly what to change as I don't have that column.)
Reply With Quote
Благодарность от:
hakanyakar
  #5  
Old 06-05-2016, 06:01 AM
hakanyakar hakanyakar is offline
 
Join Date: Mar 2011
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok very very thank you i fixed it but i have new problem vbseo new topic

Code:
Database error in vBulletin 3.8.8:

Invalid SQL:
INSERT INTO vbseo_serviceupdate
(s_threadid, s_updated)
VALUES
('70181', 0);

MySQL Error   : Field 's_dateline' doesn't have a default value
Error Number  : 1364
i did vbseo unistall and again install but not fix
Reply With Quote
  #6  
Old 06-05-2016, 12:20 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
(There is no useragent column in default vbulletin, so I can't tell you exactly what to change as I don't have that column.)
I dont know what version you are running, but the session table has had a useragent column in all 3.x.x versions.

Its default size was 100, in 3.8.9 its updated to vchar 255.
Reply With Quote
  #7  
Old 06-05-2016, 03:50 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hakanyakar View Post
ok very very thank you i fixed it but i have new problem vbseo new topic

Code:
Database error in vBulletin 3.8.8:

Invalid SQL:
INSERT INTO vbseo_serviceupdate
(s_threadid, s_updated)
VALUES
('70181', 0);

MySQL Error   : Field 's_dateline' doesn't have a default value
Error Number  : 1364
i did vbseo unistall and again install but not fix
You will need to ask the developer for help fixing this error.

Quote:
Originally Posted by Paul M View Post
I dont know what version you are running, but the session table has had a useragent column in all 3.x.x versions.

Its default size was 100, in 3.8.9 its updated to vchar 255.
Hmmm, I'm not sure how I missed it. :/
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04071 seconds
  • Memory Usage 2,229KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (2)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete