Notifications
Clear all

Fatal MySQL error when registering.

10 Posts
4 Users
0 Reactions
2,986 Views
 Pari
(@pari)
Posts: 18
Active Member
Topic starter
 

I just got a few emails from ppl trying to register on the site, once they hit the submit button the next page displays this error:

A fatal MySQL error was encountered.
Query: INSERT INTO fanfiction_authorinfo(`uid`, `info`, `field`) VALUES('', 'No', '8');
Error: (1062) Duplicate entry '0-8' for key 1

Their account does get created, for they do appear in the members section, but I'm not sure what's causing this error. I just upgraded from 2.07 to 3.3 yesterday, I did search for a fix in the solved section but I saw nothing about this particular issue. Thanks.


 
Posted : 08/07/2007 4:34 pm
 Pari
(@pari)
Posts: 18
Active Member
Topic starter
 

Ok I just went into the database and the authorinfo table, and found thet both the 'Prmary' and 'Index' were attached to uid, so I just removed the 'Index' one but that doesn't seem to have fixed the error.


 
Posted : 08/07/2007 6:55 pm
 Pari
(@pari)
Posts: 18
Active Member
Topic starter
 

Ok I just turned off the show Profile setting adn that fixed the error issue, I'll check back to see if a fix for ths has been posted. Thanks 🙂


 
Posted : 08/07/2007 7:14 pm
(@ayesha)
Posts: 46
Eminent Member
 

Hello

Website: www.slasheavenarts.com
eFiction version: 3.3

I found this thread in "solved" section, but it seems not to be solved.

https://efiction.org/forums/index.php?topic=5370.0

My problem is the same, I'll try to explain it properly:

1. I activated the gender option at profile, and add the fields "male" and "female"
2. I register a new user, and look at the fanfiction_authorinfo. The table  shows a 0 value  instead of the user ID.
3. I try to register a new user, and I get this error:

Query: INSERT INTO fanfiction_authorinfo(`uid`, `info`, `field`) VALUES('', 'No', '8');
Error: (1062) Duplicate entry '0-8' for key 1

The error is because the program is trying to register another "0" value, and of course it is duplicated.

So, the problem is the loss of the userID value while registering authorinfo.

I'd like to know if there is a solution. Thanks


 
Posted : 12/09/2007 11:28 pm
(@jacynthe)
Posts: 242
Estimable Member
 

Wow you're right! I just turned gender on today and after reading this I tried registering an account and got a Fatal MySQL error too. A lil different just because of the field value but caused by the same thing nonetheless.

Guess I better turn off gender for now then.  😐


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 12/09/2007 11:55 pm
(@jacynthe)
Posts: 242
Estimable Member
 

Any idea how to fix this? Only happens when the gender field is enabled and it's quite bugging.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 18/09/2007 12:06 am
(@jacynthe)
Posts: 242
Estimable Member
 

Ayesha, just download efiction anew and overwrite your user/editbio.php file with the one in the download. I just decided to try and do that since noone was offering a forthcoming explanation on this and not everone was having the problem. Anyways, uploading a fresh editbio.php fixed the issue.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 13/10/2007 7:33 pm
(@ayesha)
Posts: 46
Eminent Member
 

^^ Thanks a lot

I will try to copy the editbio.php.


 
Posted : 13/10/2007 8:51 pm
(@jacynthe)
Posts: 242
Estimable Member
 

I'm wondering if anyone else encountered that glitch or if it's just me but whenever I go to update my profile, the gender field only shows up male and undisclosed and left the female out because it was the one I had previously selected. So basically, everytime I update something, I have to do that in 2 steps because the first step updates the info I wanted to add but changes my gender.... so I have to go into my profile a second time to switch the gender to female (since the gender field had updated to undisclosed, female is now given as an option).

Anyone else has that issue?


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 14/10/2007 3:22 am
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Usually when I got a "Duplicate entry '0-8' for key 1" type error it was because a profile field item was added more than once, or already existed. I used to have a lot upon first converting from eFiction 2.0 to 3.0 since the updater was relatively new then, but once I deleted the duplicates in the database, everything was fine.

I do not have the problem of updating gender in two steps.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 25/01/2008 3:05 pm
Share: