Notifications
Clear all

[3.2] Delete Classification Error

7 Posts
3 Users
0 Reactions
2,261 Views
(@dreamhowler)
Posts: 147
Estimable Member
Topic starter
 

I deleted a classification that I screwed up and though it deleted it, I got the below error:

A fatal MySQL error was encountered.
Query: UPDATE hp.fanfiction_stories SET classes = '155,52,101,3,10,7,2,5' WHERE sid = '781' LIMIT 1
Error: (1146) Table 'hp.fanfiction_stories' doesn't exist

Dreamy


Current Version: 3.4.2
PHP 4
Mods: Challenges, Recommendations, Storyend, Display Word, Beta Reader, Bad Reviewer

 
Posted : 11/03/2007 5:22 am
(@tammy)
Posts: 2577
Member Moderator
 

There's an extra period in the file. Some of your stories will probably have a phantom classification now, but I don't think you'll see any error messages pop up.


 
Posted : 11/03/2007 6:23 pm
(@dreamhowler)
Posts: 147
Estimable Member
Topic starter
 

I found it, posting so others can fix theirs till the update.

Open admin/classifications.php

Find:

dbquery("UPDATE ".$tableprefix.".fanfiction_stories SET classes = '".implode(",", array_diff(explode(",", $s['classes']), array($class)))."' WHERE sid = '$s[sid]' LIMIT 1");

Replace with:

dbquery("UPDATE ".$tableprefix."fanfiction_stories SET classes = '".implode(",", array_diff(explode(",", $s['classes']), array($class)))."' WHERE sid = '$s[sid]' LIMIT 1");

Dreamy


Current Version: 3.4.2
PHP 4
Mods: Challenges, Recommendations, Storyend, Display Word, Beta Reader, Bad Reviewer

 
Posted : 12/03/2007 4:39 am
(@dreamhowler)
Posts: 147
Estimable Member
Topic starter
 

Tammy, you forgot to fix this in your update. It's line 49 I believe.

Just thought you would like to know. πŸ™‚


Current Version: 3.4.2
PHP 4
Mods: Challenges, Recommendations, Storyend, Display Word, Beta Reader, Bad Reviewer

 
Posted : 19/03/2007 10:29 am
(@tammy)
Posts: 2577
Member Moderator
 

Thanks for the info.


 
Posted : 19/03/2007 11:13 am
(@tammy)
Posts: 2577
Member Moderator
 

This should be fixed with 3.3.


 
Posted : 01/07/2007 1:05 am
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

I created some classifications and deleted them and didn't have any problems. πŸ™‚ Thank you!


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 : 07/07/2007 9:02 pm
Share: