Unable to Add a Ser...
 
Notifications
Clear all

Unable to Add a Series to a Series

5 Posts
4 Users
0 Reactions
1,773 Views
(@fikgirl)
Posts: 21
Eminent Member
Topic starter
 

I was trying to add a series within a series and got the following error:

A fatal MySQL error was encountered.
Query: INSERT INTO fanfiction_inseries (seriesid, subseriesid, inorder) VALUES('6', '11', '10')
Error: (1062) Duplicate entry '0-6' for key 1

I should note that I already added one series to this series, and it won't let me add a second one.


 
Posted : 28/01/2008 11:17 pm
(@tammy)
Posts: 2577
Member Moderator
 

Looks like you're missing a seriesid.  If you want further help you need to fill out the support template.  Generally, if we can't go to your site and look at the problem we're likely to be of much help.


 
Posted : 29/01/2008 5:59 pm
(@fikgirl)
Posts: 21
Eminent Member
Topic starter
 

URL to your eFiction: http://server4.alwayswebhosting.com/~altreal/efiction
Version of eFiction: 3.x
Have you bridged eFiction, if so with what?: No
Version of PHP: 5.2.4
Version of MySQL:
Have you searched for your problem: Yes
If so, what terms did you try: add series, nested series
State the nature of your problem: Unable to add a series to a series (nested series)
Error message

A fatal MySQL error was encountered.
Query: INSERT INTO fanfiction_inseries (seriesid, subseriesid, inorder) VALUES('6', '11', '10')
Error: (1062) Duplicate entry '0-6' for key 1

Do you have a test account for us? altrealtest, password: test1234


 
Posted : 29/01/2008 6:21 pm
(@mickinell)
Posts: 62
Trusted Member
 

We are having the same problem...

A fatal MySQL error was encountered.
Query: INSERT INTO fanfiction_inseries (seriesid, subseriesid, inorder) VALUES('1', '6', '10')
Error: (1062) Duplicate entry '0-1' for key 1

URL:  http://www.mickiclark.com/efiction33/
Version of eFiction: 3.3.1
Bridged with SMF


URL to your eFiction:  http://www.mickiclark.com/efiction33
Version of eFiction:  3.3.1
Have you bridged eFiction, if so with what?:  SMF
Version of PHP:
Version of MySQL: MySQL 4.1.14

 
Posted : 28/03/2008 4:42 pm
(@cleothemuse)
Posts: 13
Active Member
 

Ran into this problem last night... it looks like the "inseries" table is using seriesid & sid as the primary key, rather than seriesid, sid AND subseriesid.  The following code fixed it:

ALTER TABLE `fanfiction_inseries` DROP PRIMARY KEY ,
ADD UNIQUE (
`sid` ,
`seriesid` ,
`subseriesid`
)


 
Posted : 06/04/2008 6:33 am
Share: