I get the following error when adding or updating a story or chapter. I've tried changing every setting that might help, plus refreshing the stats and database via the admin panel, and deleting the previous failed stories/chapters via my MySQL database management software. Please, take a look and help if you can!
Error!We encountered an error. Please go back and try again.
by Rated: [Reviews - ]
Summary:
Categories: Orphan Characters: None
Ships: None
Genre: None
Series: None
Chapters: 0 Table of Contents
Completed: No Word count: 0 Read Count: 0
Admin Options: [Edit] [Delete] [Featured]
Published: December 31, 1969 Updated: December 31, 1969 [Report This]
The above snip should have said something very similar to the following:
By Firelight by Rebecca Ripple Rated: Teen [Reviews - 0]
Summary: Barely sixteen years old and fearing for his mother's life, Draco stepped up in his father's absence to take his place amongst the Death Eaters. The following year at Hogwarts School was, without a doubt, the hardest he had ever endured.Now seventeen, the young Malfoy seeks to keep safe all he loves by doing the opposite, and taking the golden advice Albus Dumbledore had left him minutes before his death.
Categories: Harry Potter Characters: Draco Malfoy, Ginny Weasley, Harry Potter, Ron Weasley, Narcissa Malfoy, ..., ..., ...
Ships: Draco/Ginny, Harry/Ginny, Lucius/Narcissa, Ron/Hermione
Genre: Angst, Drama, Romance
Series: None
Chapters: 1 Table of Contents
Completed: No Word count: 675 Read Count: 0
Admin Options: [Edit] [Delete] [Featured]
Published: June 1, 2009 Updated: June 1, 2009 [Report This]
PLEASE, help! Major frustration happening here! The first error, "Error!We encountered an error. Please go back and try again." also happens when I try to delete the failed stories/chapters through the site, hence why I've needed to go into the MySQL to delete them. And speaking of going into MySQL, all the data I entered into the Add Story form is in there! Why doesn't the PHP site see that data? π₯
So confusing...
That error message can actually be found in en.php, so it's part of eFiction, and not PHP or MySQL. That tell us something, though I'm not sure what. It typically means you're not meeting some criteria, like being logged in as the owner of the story, or being logged in as admin, for deleting/editing stories. For displaying the data I'd have to go look through and see where _ERROR appears in the files to give more of a hint as to what's going on. We'll see how often it's used in that area to see if it's helpful.
Well, lines 195-197 of stories.php:
if($newchapter) {
$story = dbquery("SELECT sid, catid, title, summary, validated FROM ".TABLEPREFIX."fanfiction_stories WHERE sid = '$sid'");
if(!dbnumrows($story)) $failed .= "<br />"._ERROR;
So that is probably the section that's causing the message to come up. The only other place _ERROR appears in stories.php is in the function delete() (line 888), which is right on target for what you're saying.
if(!$sid && !$chapid) return write_error(_ERROR);
Do you get anything else when you turn debug on? Because all I've got so far is that it's not pulling the info from the database, which we already knew. You should also fill out the Support Request Template so we know what versions of PHP/MySQL you have.
I'm guessing Lyndsie helped you? I can see your story just fine
******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3
For Lyndsie:
PHP ver. 5.1.6
MySQL ver. 5.0.77
Apache ver. 2.2.3
CentOS ver. 5
Lastly, where do I find the Support Request Template? I looked but didn't see it. Which forum/board is it in?
For babaca:
No, I just got on the site a few minutes ago, and the only thing I changed on my site so far is to turn off Debug Mode. I can't see the story via that link, only the error and empty story messages. I can see it on the Titles page, but when I click on the link for By Firelight itself, I get the same errors as I've been getting.
The Support Request Template is at the top of each support forum.
Note First: If I've offended anyone by being quick-tempered, I am SO sorry... This is my official apology, here > > > https://efiction.org/forums/index.php?topic=7114.0 π₯ <3 <3 <3
URL to your eFiction: http://www.wizardsplay.com/fanfiction/
Version of eFiction: Version 3.5.1
Have you bridged eFiction?: No
Version of PHP: 5.1.6
Version of MySQL: 5.0.77
Have you searched for your problem: Yes, but not with the search feature; just manually.
If so, what terms did you try: I manually looked in the eFiction 3.0 Bugs and eFiction 3.0 Solved Bugs forums
State the nature of your problem: Stated above, in this thread's starting post. If you have any questions that I didn't cover yet, please ask without hesitation.
Do you have a test account for us? No, but if you need one, let me know. I'll make one on request and PM the login to you, or post it if you'd prefer that.
Thank you for all your help so far!
Did you find any more messages with debug on?
Here are all the errors (notices, rather) that I found on viewstory.php?sid=1:
Notice: Undefined variable: sid in /var/www/html/fanfiction/viewstory.php on line 35
Notice: Undefined index: valid in /var/www/html/fanfiction/viewstory.php on line 50
Notice: Undefined index: rid in /var/www/html/fanfiction/viewstory.php on line 51
Notice: Undefined index: title in /var/www/html/fanfiction/viewstory.php on line 54
Notice: Undefined index: sid in /var/www/html/fanfiction/includes/storyblock.php on line 26
Notice: Undefined index: rid in /var/www/html/fanfiction/includes/corefunctions.php on line 235
Notice: Undefined index: sid in /var/www/html/fanfiction/includes/corefunctions.php on line 238
Notice: Undefined index: title in /var/www/html/fanfiction/includes/corefunctions.php on line 238
Notice: Undefined index: uid in /var/www/html/fanfiction/includes/corefunctions.php on line 266
Notice: Undefined index: penname in /var/www/html/fanfiction/includes/corefunctions.php on line 266
Notice: Undefined index: sid in /var/www/html/fanfiction/includes/corefunctions.php on line 267
Notice: Undefined index: summary in /var/www/html/fanfiction/includes/storyblock.php on line 40
Notice: Undefined index: rid in /var/www/html/fanfiction/includes/storyblock.php on line 41
Notice: Undefined index: in /var/www/html/fanfiction/includes/storyblock.php on line 41
Notice: Undefined index: rating in /var/www/html/fanfiction/includes/storyblock.php on line 42
Notice: Undefined index: count in /var/www/html/fanfiction/includes/storyblock.php on line 43
Notice: Undefined index: classes in /var/www/html/fanfiction/includes/storyblock.php on line 47
Notice: Undefined index: sid in /var/www/html/fanfiction/includes/storyblock.php on line 73
Notice: Undefined index: charid in /var/www/html/fanfiction/includes/storyblock.php on line 81
Notice: Undefined index: catid in /var/www/html/fanfiction/includes/storyblock.php on line 83
Notice: Undefined index: completed in /var/www/html/fanfiction/includes/storyblock.php on line 84
Notice: Undefined index: rr in /var/www/html/fanfiction/includes/storyblock.php on line 85
Notice: Undefined index: rating in /var/www/html/fanfiction/includes/storyblock.php on line 86
Notice: Undefined index: sid in /var/www/html/fanfiction/includes/storyblock.php on line 87
Notice: Undefined index: sid in /var/www/html/fanfiction/includes/storyblock.php on line 89
Notice: Undefined index: uid in /var/www/html/fanfiction/includes/storyblock.php on line 89
Notice: Undefined index: sid in /var/www/html/fanfiction/includes/storyblock.php on line 91
Notice: Undefined index: updated in /var/www/html/fanfiction/includes/storyblock.php on line 95
Notice: Undefined index: date in /var/www/html/fanfiction/includes/storyblock.php on line 96
Notice: Undefined index: updated in /var/www/html/fanfiction/includes/storyblock.php on line 99
Notice: Undefined index: wordcount in /var/www/html/fanfiction/includes/storyblock.php on line 101
Notice: Undefined index: sid in /var/www/html/fanfiction/includes/storyblock.php on line 102
Notice: Undefined index: reviews in /var/www/html/fanfiction/includes/storyblock.php on line 102
Notice: Undefined index: sid in /var/www/html/fanfiction/includes/storyblock.php on line 104
Notice: Undefined index: featured in /var/www/html/fanfiction/includes/storyblock.php on line 106
Notice: Undefined index: featured in /var/www/html/fanfiction/includes/storyblock.php on line 111
Notice: Undefined index: sid in /var/www/html/fanfiction/includes/storyblock.php on line 116
Notice: Undefined index: sid in /var/www/html/fanfiction/includes/storyblock.php on line 117
Notice: Undefined index: sid in /var/www/html/fanfiction/includes/storyblock.php on line 119
Notice: Undefined variable: sid in /var/www/html/fanfiction/viewstory.php on line 203
Notice: Undefined variable: sid in /var/www/html/fanfiction/viewstory.php on line 205
Notice: Undefined index: rr in /var/www/html/fanfiction/viewstory.php on line 207
Notice: Undefined index: storynotes in /var/www/html/fanfiction/viewstory.php on line 213
Notice: Undefined variable: sid in /var/www/html/fanfiction/viewstory.php on line 218
But hold on, before I ask you to analyze all that stuff, I have an idea... I'll let you know how it works as soon as I've finished trying it... It may take a few minutes, though...
Oh, my gosh!
Oh, my gosh!!
It worked!!!
Okay, here's what happened: I had to reinstall eFiction due to skin issues after having added a lot of custom data, like characters and classifications and such, so I installed it with a different table prefix so that the data could be safe while I completed the re-installation. So after reinstalling, I pointed the config.php file to the old settings table, and I thought it wouldn't hurt a thing.
It turned out it was somehow breaking the story-viewing script(s). So just now, I changed the tables back to the re-installation's chosen table prefixes, and edited the config.php file accordingly.
I'm sorry I thought this was a bug; it so happens I created said "bug" myself. SOLVED.
I may never have found out how to fix this problem if you hadn't told me to try Debug Mode. True, I tried it earlier, but I sorta just skimmed over the PHP notices. That was silly of me. Anyway, thanks so much!!
PS... Sorry for the double post... π
Cool. Just make sure to turn debug off or you may give away some sensitive site info that's better kept secret. /obligatory warning
Thanks again, I've turned that off. π Have a great day! π
And I totally looooove the Fire and Ice D/G site! I'm trying reeeeally hard to lengthen the 2 chapters out of 11 that are under 1,000 words so I can post my story there. Or maybe you can help me with it?
I know this isn't the place, so I'll PM ya my questions and stuff. *hugs*
