Welcome, Guest. Please Login or Register.
November 27, 2024, 10:48:12 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Registratrion error « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Registratrion error  (Read 337 times)
necrosanct
Noobie
*
Posts: 16


I ate llama!

Registratrion error
« on: September 19, 2003, 11:21:32 PM »
Reply with quote

YaBB SE Version: 1.5.4
PHP Version: 4.3.2
MySQL Version: 4.0.x
Server Platform: Unix, Linux, or BSD
Link to Forum: www.necrosanct.com/yabbse

Problem Description:
Whenever someone goes to register since the other day they get a database error that is very vague to them.

When I look over the error logs I see the following:

Name : IP : Today at 08:58:56am
/yabbse/index.php?board=;action=register2
Database Error: Duplicate entry '0' for key 1
File: .../yabbse/Sources/Register.php (short form of it)
Line: 288

Tried searching for an answer but found nothing on this.

Any help on this roadblock?
Logged
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:Registratrion error
« Reply #1 on: September 19, 2003, 11:29:03 PM »
Reply with quote

Do you have any mods installed on your board, anything that changes Register.php?  Also, when was the last time you did any maintenance on your database (Emptied out the click_log, and error folders, checked all tables, optimized all tables)?
Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
necrosanct
Noobie
*
Posts: 16


I ate llama!

Re:Registratrion error
« Reply #2 on: September 20, 2003, 12:23:54 AM »
Reply with quote

No mods in it except the pre-installed ones. Nothing in there was changed.

I have done all the other things you mentioned.
Logged
necrosanct
Noobie
*
Posts: 16


I ate llama!

Re:Registratrion error
« Reply #3 on: September 23, 2003, 03:44:27 AM »
Reply with quote

Still unable to find the problem with this error anywhere at all. Many people have tried to register and it is becoming an increasing pain.

Is there anything at all I can do about this?
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Registratrion error
« Reply #4 on: September 23, 2003, 08:40:11 AM »
Reply with quote

Please paste the output MySQL gives you from this query:

SHOW CREATE TABLE yabbse_members;

-[Unknown]
Logged
necrosanct
Noobie
*
Posts: 16


I ate llama!

Re:Registratrion error
« Reply #5 on: September 23, 2003, 09:45:33 PM »
Reply with quote

Is that from the main db query window?

I get lost with the whole mysql thing when I need to delve into it so pretty much need a roadmap to where exactly things are.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Registratrion error
« Reply #6 on: September 24, 2003, 06:40:28 PM »
Reply with quote

Just paste it in the SQL tab of phpMyAdmin.

-[Unknown]
Logged
necrosanct
Noobie
*
Posts: 16


I ate llama!

Re:Registratrion error
« Reply #7 on: September 25, 2003, 10:11:47 PM »
Reply with quote

This is what that returns going from SQL tab off the main db:


SQL-query

SQL-query : [Edit] [Create PHP Code]
SHOW CREATE TABLE yabbse_members  




 
Table  Create Table  
yabbse_members CREATE TABLE `yabbse_members` (
`ID_MEMBER` int(...



Print view

Export

---------------
Full text shows the following

yabbse_members CREATE TABLE `yabbse_members` (
`ID_MEMBER` int(10) unsigned NOT NULL default '0',
`memberName` varchar(80) NOT NULL default '',
`realName` tinytext,
`passwd` tinytext NOT NULL,
`emailAddress` tinytext,
`dateRegistered` bigint(20) default NULL,
`personalText` tinytext,
`memberGroup` tinytext,
`gender` tinytext,
`birthdate` date NOT NULL default '0000-00-00',
`websiteTitle` tinytext,
`websiteUrl` tinytext,
`location` tinytext,
`ICQ` tinytext,
`AIM` tinytext,
`YIM` tinytext,
`hideEmail` tinyint(4) default NULL,
`timeFormat` tinytext,
`signature` text,
`posts` int(11) default NULL,
`timeOffset` float default NULL,
`avatar` tinytext,
`im_ignore_list` text,
`im_email_notify` tinyint(4) NOT NULL default '0',
`lastLogin` bigint(20) default NULL,
`karmaBad` int(11) NOT NULL default '0',
`karmaGood` int(11) NOT NULL default '0',
`usertitle` tinytext,
`lngfile` tinytext,
`notifyAnnouncements` tinyint(4) NOT NULL default '1',
`notifyOnce` tinyint(4) NOT NULL default '1',
`MSN` tinytext,
`memberIP` tinytext,
`secretQuestion` tinytext NOT NULL,
`secretAnswer` tinytext NOT NULL,
PRIMARY KEY  (`ID_MEMBER`),
KEY `memberName` (`memberName`(30)),
KEY `dateRegistered` (`dateRegistered`),
KEY `memberGroup` (`memberGroup`(30)),
KEY `birthdate` (`birthdate`),
KEY `posts` (`posts`),
KEY `lastLogin` (`lastLogin`),
KEY `lngfile` (`lngfile`(30))
) TYPE=MyISAM
« Last Edit: September 25, 2003, 10:13:10 PM by necrosanct » Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Registratrion error
« Reply #8 on: September 26, 2003, 03:39:11 AM »
Reply with quote

`ID_MEMBER` int(10) unsigned NOT NULL default '0',

Should be:

`ID_MEMBER` int(10) unsigned NOT NULL auto_increment,

So do this:

ALTER TABLE yabbse_members
DROP PRIMARY KEY,
CHANGE ID_MEMBER ID_MEMBER int(10) unsigned auto_increment PRIMARY KEY;

UPDATE yabbse_members
SET ID_MEMBER = NULL
WHERE ID_MEMBER = 0;

I think that should work...

-[Unknown]
Logged
necrosanct
Noobie
*
Posts: 16


I ate llama!

Re:Registratrion error
« Reply #9 on: September 26, 2003, 11:21:17 PM »
Reply with quote

thanks [Unknown] yet again you saved my day
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Registratrion error « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.061 seconds with 21 queries.