vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Registration issue (https://vborg.vbsupport.ru/showthread.php?t=313876)

CaptainAwesome 08-23-2014 06:03 AM

Registration issue
 
When someone goes through the registration process, after step 2 of 2 where you pick your user name etc and click "Complete Registration" i get the following message:

Database error
The Forums database has encountered a problem.
Please try the following:
Load the page again by clicking the Refresh button in your web browser.
Open the <site> home page, then try to open another page.
Click the Back button to try another link.
The <site> forum technical staff have been notified of the error, though you may contact them if the problem persists.

We apologise for any inconvenience.

----------------------------------------------------------------

And the User ID's are actually created. The thing is with the message above, most people will think the process failed plus it looks unprofessional.

Any idea how to fix this? I don't know if the anti-spammer measures posted here in this forum are behind the problem.

WEBDosser 08-23-2014 07:49 AM

need to error in full.

ozzy47 08-23-2014 08:50 AM

Yes the full error from your server error logs would help.
What version of vB4 are you running?
What PHP version are you running?

But we can see if this is from a mod, by doing the following.

Open your includes/config.php file and below<?php add this line:

PHP Code:

 define('DISABLE_HOOKS'true); 

So it looks like this:
PHP Code:

<?php
define
('DISABLE_HOOKS'true);
/*=================================================  =====================*\
|| ##################################################  ################## ||
|| # vBulletin 4.2.2

Then try and register and see what happens.

CaptainAwesome 08-23-2014 05:00 PM

I haven't made the changes you mentioned ozzy as i thought i would post the error first. I'm a total newbie at this stuff and want to avoid creating more problems.

I went and set up the error reporting thing (told you i was a newbie!) and recreated the problem. This is what i was emailed. I removed my IP and site address, but everything else is everything i got sent to me:

Database error in vBulletin 4.2.2:

Invalid SQL:
INSERT INTO userfield
(field7, field8, userid)
VALUES
('Yes', 'Yes', 50966);

MySQL Error : Duplicate entry '50966' for key 'PRIMARY'
Error Number : 1062
Request Date : Saturday, August 23rd 2014 @ 05:56:20 PM
Error Date : Saturday, August 23rd 2014 @ 05:56:21 PM
Script : http://<site>/forum/newsignup.php?do=addmember
Referrer : http://<site>/forum/newsignup.php?do=checkdate
IP Address : <IP address>
Username : test4
Classname : vB_Database
MySQL Version :

ozzy47 08-23-2014 09:35 PM

That error is most commonly caused by plugins or addons that incorrectly set auto increment fields within vBulletin.

I would suggest reading this, https://www.vbulletin.com/docs/html/...l_duplicatekey

Specifically the query starting as:
Code:

ALTER TABLE `user` CHANGE `userid`

CaptainAwesome 08-24-2014 12:39 AM

I can't seem to run any queries. I adjusted the config file as follows:

// ****** USERS WITH QUERY RUNNING PERMISSIONS ******
// The users specified here will be allowed to run queries from the control panel.
// See the above entries for more information on the format.
// Please note that the ability to run queries is quite powerful. You may wish
// to remove all user IDs from this list for security reasons.
$config['SpecialUsers']['canrunqueries'] = '<myuserid>';

But every time i go to maintenance>Execute SQL Query i get this:

You are not authorized to execute SQL queries

Lynne 08-24-2014 02:19 AM

If your userid is 1, then that line would read as:

PHP Code:

$config['SpecialUsers']['canrunqueries'] = '1'

Is that what you have?

CaptainAwesome 08-24-2014 04:22 AM

Quote:

Originally Posted by Lynne (Post 2512514)
If your userid is 1, then that line would read as:

PHP Code:

$config['SpecialUsers']['canrunqueries'] = '1'

Is that what you have?

Thanks, that worked. I had the ID name there.

CaptainAwesome 08-24-2014 04:25 AM

1 Attachment(s)
Quote:

Originally Posted by ozzy47 (Post 2512505)
That error is most commonly caused by plugins or addons that incorrectly set auto increment fields within vBulletin.

I would suggest reading this, https://www.vbulletin.com/docs/html/...l_duplicatekey

Specifically the query starting as:
Code:

ALTER TABLE `user` CHANGE `userid`

Am i suppose to run them all, because the one line you mentioned didn't work. I copied and pasted the line as follows:

ALTER TABLE `user` CHANGE `userid` `userid` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT;

And when i ran it, i got the screen attached.

CaptainAwesome 08-24-2014 04:57 AM

1 Attachment(s)
ok, i ran all of them and got the following message (screenshot attached).

Any idea how to fix the problem?


All times are GMT. The time now is 12:11 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.01068 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete