Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 Next > End >>
Registration Problems
Date: 2005/12/24 02:09 By: rick Status: User  
Karma: 42  
Gold Joomlapolitan

Posts: 290
graphgraph
Well this has really got me stumped. My site has been up for a while and everything has been going fine. I noticed the last couple of days the registrations have dropped off a bit and today I got an email that someone could not register and that they got an error. I went in and tried to register a fake user to test it out and this is the error I got.

Code:

 mosuser::«»store failed  Duplicate entry \'0\' for key 1 SQL=INSERT INTO jos_users ( `id`,`name`,`username`,`email`,`password`,`gid`,`registerDate` ) VALUES \'0\',\'Joe Smoe\',\'joe\',\'joe@mannainfo.com\',\'7f158c1d13c88d10552594f7fb4944f7\',\'18\',\'2005-12-23T13:00:55\'



As stated no problems before this, have had over 150 registrations and now this. Any help would be greatly appritiated.
Rick

Running:
Joomla! 1.0.7 Stable
Community Builder 1.0 rc2
SMF 1.1 RC2
Click here to see the profile of this user The topic has been locked.

Re:Registration Problems
Date: 2005/12/24 02:33 By: pointri Status: User  
Karma: 26  
Gold Joomlapolitan

Posts: 211
graphgraph
Hi Rick,

Maybe the id in your users table decided not to auto-increment?
Sounds like the most plausible reason why it'd keep duplicating a '0'.

Here's a walk-through thread on the Joomla! board about this issue, and a possible fix:

http://forum.joomla.org/index.php/topic,5575.html
Joomlapolitan zealot and a somewhat stealthy, rather passive CB3PD developer.

http://www.constructionlounge.com Construction Lounge: Online resource and networking portal for the construction and remodeling industries.
Click here to see the profile of this user The topic has been locked.

Re:Registration Problems
Date: 2005/12/24 02:41 By: rick Status: User  
Karma: 42  
Gold Joomlapolitan

Posts: 290
graphgraph
pointri,

Thanks for your response. I did go look at a second site to see what the properties of that field was supposed to be.

The correct values for Table: jos_users is supposed to be:

Field id
Type INT
Length/Values 11
Attributes Blank
Null not null
Default Blank
Extra auto increment

But mine was

Field id
Type MEDIUMINT
Length/Values 8
Attributes Blank
Null not null
Default 0
Extra Blank

I have made no intentional changes to this table so have no idea why it had been altered. My guess is that something that I installed made the changes, I only wish I know what it was that did it. After changing it back all seems ok now.
Rick

Running:
Joomla! 1.0.7 Stable
Community Builder 1.0 rc2
SMF 1.1 RC2
Click here to see the profile of this user The topic has been locked.

Re:Registration Problems
Date: 2005/12/25 11:57 By: kawika Status: User  
Karma: 1  
Fresh Joomlapolitan

Posts: 10
graphgraph
I don't think the backslashes are supposed to be there. In the actual query there should only be single-quotes. It looks like an addslashes() or removeslashes() isn't working or is in the wrong spot.
Click here to see the profile of this user The topic has been locked.

Re:Registration Problems
Date: 2006/02/22 18:17 By: twincascos Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 2
graphgraph
I've run into the same problem,
I was wondering if you found the solution.
I also found my Bd had:

Field id
Type MEDIUMINT
Length/Values 8

and changed it to:

Field id
Type INT
Length/Values 11

But I still get the same results.

Rick, did you solve this? I do not want to do a reinstall!
Click here to see the profile of this user The topic has been locked.

Re:Registration Problems
Date: 2006/02/22 18:38 By: twincascos Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 2
graphgraph
Ok, just follow the links,,
"_users' table is set to 'auto-increment.' "
this was the culprite!

solved.

Now as to where and why it was changed...
I suspect it had something to do with..
AKReservations but I might be wrong.
Click here to see the profile of this user The topic has been locked.

<< Start < Prev 1 2 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login