Notifications
Clear all

Error: (1072) Key column 'warnings' doesn't exist in table

12 Posts
5 Users
0 Reactions
6,062 Views
(@banana53080)
Posts: 8
Active Member
Topic starter
 

URL to your eFiction: www.svufanfiction.com (The site is currently up and running w/o eFiction)
Version of eFiction: 3.1
Have you bridged eFiction, if so with what?: No
Version of PHP: phpMyAdmin 2.6.3-pl1
Version of MySQL: MySQL 4.1.14
Have you searched for your problem: Yes
If so, what terms did you try: Key Column, Warning, Does not exist
State the nature of your problem: A fatal MySQL error was encountered.
Query: CREATE TABLE `SVUfanfiction_series` ( `seriesid` int(11) NOT NULL auto_increment, `title` varchar(200) NOT NULL default '', `summary` text NOT NULL, `uid` int(11) NOT NULL default '0', `isopen` tinyint(4) NOT NULL default '0', `catid` varchar(200) NOT NULL default '0', `rating` tinyint(4) NOT NULL default '0', `classes` varchar(200) NOT NULL default '', `characters` varchar(250) NOT NULL default '', `reviews` smallint(6) NOT NULL default '0', `challenges` varchar(200) NOT NULL default '', PRIMARY KEY (`seriesid`), KEY `catid` (`catid`), KEY `challenges` (`challenges`), KEY `warnings` (`warnings`,`characters`), KEY `genres` (`genres`), KEY `owner` (`uid`,`title`) ) TYPE=MyISAM;
Error: (1072) Key column 'warnings' doesn't exist in table
Do you have a test account for us? No

I am new to both SQL and PHP, so I have a limited vocabulary.  I've worked through several problems, but couldn't find information on this one.  I may have come across it however, and not even realized it.

Thank you for your help!
Amanda


 
Posted : 18/01/2007 8:19 pm
(@jrabbit)
Posts: 64
Trusted Member
 

Its a bug in the install script of version 3.1 - It is not defining the indexes for the series table properly.

You can work around it by installing version 3.0.2, creating your site then upgrading to 3.1 and running the update from the admin page.


 
Posted : 18/01/2007 8:53 pm
(@tammy)
Posts: 2577
Member Moderator
 

I'm updating the .zip right now to correct this.  Thanks.


 
Posted : 18/01/2007 9:11 pm
(@banana53080)
Posts: 8
Active Member
Topic starter
 

Thank you for the help!  I just deleted everything and will start fresh when the new .zip file is available.

πŸ˜€
Amanda


 
Posted : 18/01/2007 9:31 pm
(@tammy)
Posts: 2577
Member Moderator
 

It's up now.


 
Posted : 18/01/2007 9:38 pm
(@banana53080)
Posts: 8
Active Member
Topic starter
 

I'm not sure if this is part of the same problem or not, but this is the error message I now receive after deleting everything and reinstalling:

A fatal MySQL error was encountered.
Query: CREATE TABLE `SVUfanfiction_series` ( `seriesid` int(11) NOT NULL auto_increment, `title` varchar(200) NOT NULL default '', `summary` text NOT NULL, `uid` int(11) NOT NULL default '0', `isopen` tinyint(4) NOT NULL default '0', `catid` varchar(200) NOT NULL default '0', `rating` tinyint(4) NOT NULL default '0', `classes` varchar(200) NOT NULL default '', `characters` varchar(250) NOT NULL default '', `reviews` smallint(6) NOT NULL default '0', `challenges` varchar(200) NOT NULL default '', PRIMARY KEY (`seriesid`), KEY `owner` (`uid`), KEY `catid` (`catid`), KEY `characters` (`characters`), KEY `classes` (`classes`), KEY `owner` (`uid`,`title`) ) TYPE=MyISAM;
Error: (1061) Duplicate key name 'owner'

Thanks!


 
Posted : 18/01/2007 10:19 pm
(@becca)
Posts: 553
Honorable Member
 

Did you also delete the mysql tables when uninstalling?


 
Posted : 18/01/2007 10:21 pm
(@banana53080)
Posts: 8
Active Member
Topic starter
 

Yes, I deleted them, but possibly not all of them.  When I went back to check, I made a serious error and can no longer access my database πŸ™  I will be starting from scratch with my database, and that will hopefully resolve all of my problems.  The first trick will be figuring out how to delete my database and starting over.

Thanks!
Amanda


 
Posted : 18/01/2007 10:56 pm
(@ataraxis)
Posts: 10
Active Member
 

I'm encountering the exact same second error with the Duplicate key name 'owner' with a brand new fresh install. It's created the tables, the settings and all the others.  I've deleted the config.php and all the tables, and the database and started from scratch 4 times and I've encountered this error all four times.

URL to your eFiction: http://www.magdelena.net/efiction/
Version of eFiction: 3.1
Have you bridged eFiction, if so with what?: No
Version of PHP: 5.0.5
Version of MySQL: 4.1.21-standard-log
Have you searched for your problem: yes
If so, what terms did you try: Step 3, Duplicate key name
State the nature of your problem:

A fatal MySQL error was encountered.
Query: CREATE TABLE `fanfiction_series` ( `seriesid` int(11) NOT NULL auto_increment, `title` varchar(200) NOT NULL default '', `summary` text NOT NULL, `uid` int(11) NOT NULL default '0', `isopen` tinyint(4) NOT NULL default '0', `catid` varchar(200) NOT NULL default '0', `rating` tinyint(4) NOT NULL default '0', `classes` varchar(200) NOT NULL default '', `characters` varchar(250) NOT NULL default '', `reviews` smallint(6) NOT NULL default '0', `challenges` varchar(200) NOT NULL default '', PRIMARY KEY (`seriesid`), KEY `owner` (`uid`), KEY `catid` (`catid`), KEY `characters` (`characters`), KEY `classes` (`classes`), KEY `owner` (`uid`,`title`) ) TYPE=MyISAM;
Error: (1061) Duplicate key name 'owner'

Do you have a test account for us? No, can't get that far in the installation.


 
Posted : 19/01/2007 4:21 pm
(@tammy)
Posts: 2577
Member Moderator
 

I'll fix the .zip as soon as I can get the FTP to the site to work.  It seems to be down right now.


 
Posted : 19/01/2007 4:34 pm
(@jrabbit)
Posts: 64
Trusted Member
 

To delete an entire database run the following SQL statement from phpmyadmin

drop database name_of_database;


 
Posted : 19/01/2007 5:03 pm
(@tammy)
Posts: 2577
Member Moderator
 

The .zip is updated with the correction for the install script.


 
Posted : 19/01/2007 5:59 pm
Share: