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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-24-2013, 12:50 AM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Data Base error when creating new user!!

Not sure what is going on. I get this message after creating a user or when a user is registering. However, the registration actually goes through if you check users in admincp. How can I fix this?

***
Database error in vBulletin 4.2.1:

Invalid SQL:
INSERT INTO userfield
(field1, field2, field3, field4, userid)
VALUES
('', '', '', '', 138);

MySQL Error : Duplicate entry '138' for key 1
Error Number : 1062
Request Date : Sunday, September 22nd 2013 @ 07:48:45 PM
Error Date : Sunday, September 22nd 2013 @ 07:48:46 PM
Script : XXXXXXXXXXXXXXXX/user.php?do=update
Referrer : XXXXXXXXXXXXXXXXXXXXX/user.php?do=add
IP Address : XXXXXXXXXXXXXXXXXX
Username : XXXXXXXXXXXXXXXX
Classname : vB_Database
MySQL Version : 5.0.96-log
***
Reply With Quote
  #2  
Old 09-24-2013, 12:51 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do a repair on the user table.

Its most likely a hack causing it to create that issue tho.
Reply With Quote
  #3  
Old 09-24-2013, 12:57 AM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
Do a repair on the user table.

Its most likely a hack causing it to create that issue tho.

No it started before I added any mods. I did merge over from phpbb3. I have tried to repair the tables and it comes back saying its fine. Now, it seems I am getting this error (looks like it happened after I created an admin account on the back end_ - never saw before...

Warning: Invalid argument supplied for foreach() in [path]/login.php(119) : eval()'d code on line 4

When I reload the page it goes away...
Reply With Quote
  #4  
Old 09-24-2013, 01:00 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What php version are you running?
Reply With Quote
  #5  
Old 09-24-2013, 01:11 AM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
What php version are you running?
PHP Version: 5.2.17

Here are some additional errors logged to my email:

Database error in vBulletin 4.2.1:

Invalid SQL:
INSERT INTO userfield
(userid)
VALUES
(136);

MySQL Error : Duplicate entry '136' for key 1
Error Number : 1062
Request Date : Tuesday, September 10th 2013 @ 09:12:46 PM
Error Date : Tuesday, September 10th 2013 @ 09:12:46 PM
Script : XXXXXXXXXXXXXXXXX/register.php?do=addmember
Referrer : XXXXXXXXXXXXXXXXXXX/register.php
IP Address : XXXXXXXXXXXX
Username : XXXXXXXXXX
Classname : vB_Database
MySQL Version :


Database error in vBulletin 4.2.1:

Invalid SQL:
INSERT INTO userfield
(userid)
VALUES
(135);

MySQL Error : Duplicate entry '135' for key 1
Error Number : 1062
Request Date : Tuesday, September 10th 2013 @ 08:29:22 PM
Error Date : Tuesday, September 10th 2013 @ 08:29:22 PM
Script : XXXXXXXXXXXXXXXX/register.php?do=addmember
Referrer : XXXXXXXXXXXXXXXXXXXXX/register.php
IP Address : XXXXXXXXXXXXX
Username : XXXXXXXXXXXXXXX
Classname : vB_Database
MySQL Version :

Database error in vBulletin 4.2.1:

Invalid SQL:
INSERT INTO userfield
(userid)
VALUES
(134);

MySQL Error : Duplicate entry '134' for key 1
Error Number : 1062
Request Date : Tuesday, September 10th 2013 @ 06:35:31 PM
Error Date : Tuesday, September 10th 2013 @ 06:35:31 PM
Script : XXXXXXXXXXXXXXX/register.php?do=addmember
Referrer : XXXXXXXXXXXXXXXXXXX/register.php
IP Address : XXXXXXXXXXXXXXX
Username : XXXXXXXXXXXXXX
Classname : vB_Database
MySQL Version :
Reply With Quote
  #6  
Old 09-24-2013, 01:19 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So you are not running this mod? https://vborg.vbsupport.ru/showthread.php?t=296383
Reply With Quote
  #7  
Old 09-24-2013, 01:19 AM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning: Invalid argument supplied for foreach() in [path]/login.php(119) : eval()'d code on line 4

Ok I fixed this part, it was the firewall mod, forgot to put in an ip address...

However, the database error continues, and started from the very beginning... help...

--------------- Added [DATE]1379989223[/DATE] at [TIME]1379989223[/TIME] ---------------

Quote:
Originally Posted by ozzy47 View Post
Yea, fixed the warning. The big thing is my sql error... thx
Reply With Quote
  #8  
Old 09-24-2013, 01:23 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe this will help you, http://www.vbulletin.com/docs/html/mysql_duplicatekey
Reply With Quote
  #9  
Old 09-24-2013, 01:24 AM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Ok, so I just copy that list and run them in sql? Should I back up my db before doing this? Thx
Reply With Quote
  #10  
Old 09-24-2013, 01:26 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah I would defiantly do a backup before running those, just to be on the safe side.
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 01:39 AM.


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.04574 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete