Forum

Notifications
Clear all

Weird Re-Direct to Install

edeainfj
(@edeainfj)
Active Member

URL to your eFiction: http://www.ericnorthman.net/fanfic/
Version of eFiction: updated
Have you bridged eFiction, if so with what?: no
Version of PHP: 5, I think
Version of MySQL: 5.0.51a
Have you searched for your problem: yes
If so, what terms did you try: install, redirect
State the nature of your problem: I've been running efiction for over two years, but yesterday it randomly started redirecting to the install directory, which doesn't exist. I've made no changes to any code. It just started happening for seemingly no reason, and I don't know how to fix it.

Quote
Topic starter Posted : 12/09/2011 5:58 pm
Elle
 Elle
(@jenny)
Honorable Member

That's pretty odd... Here is a quick fix.

header.php, around line 52 you should see:

if(empty($sitekey)) {
header("Location: install/install.php");
exit();
}

Comment it out/delete it.

But before you do that, go to config.php and make sure $sitekey is defined. It wouldn't hurt to check phpMyadmin to double-check your sitekey in fanfiction_settings either. 🙂

archive: dramione.org
site: accio.nu

Available for skin/mod commission! 🙂

ReplyQuote
Posted : 12/09/2011 7:56 pm
edeainfj
(@edeainfj)
Active Member

I deleted that piece of code (and yes, the sitekey is in the config file), and now I'm getting:

Fatal error: Call to undefined function dbquery() in /home/edeainfj/ericnorthman.net/fanfic/header.php on line 76

ReplyQuote
Topic starter Posted : 12/09/2011 8:13 pm
Elle
 Elle
(@jenny)
Honorable Member

Woops. You should probably add that in again. XD  Sorry!

This is odd b/c it should work if the sitekey is involved.

It seems that the include to config.php might not be working then. Remove the @ in front of the include and see what errors pop up.

archive: dramione.org
site: accio.nu

Available for skin/mod commission! 🙂

ReplyQuote
Posted : 12/09/2011 10:38 pm
edeainfj
(@edeainfj)
Active Member

That @ in front of the include? I don't understand what this means.  😳

ReplyQuote
Topic starter Posted : 12/09/2011 10:40 pm
edeainfj
(@edeainfj)
Active Member

Okay, I saw what you meant and deleted the @, but it didn't do anything different. This is so weird. No files had changed or anything, it just started redirecting to the install directory. Makes no sense.

😐

ReplyQuote
Topic starter Posted : 12/09/2011 10:44 pm
Elle
 Elle
(@jenny)
Honorable Member

Hm, would you be willing to create a new FTP account for me to have a gander?

archive: dramione.org
site: accio.nu

Available for skin/mod commission! 🙂

ReplyQuote
Posted : 13/09/2011 3:16 am
edeainfj
(@edeainfj)
Active Member

Sure. Can you email me, and I'll send you the info? My email is edeainfj at gmail.

ReplyQuote
Topic starter Posted : 13/09/2011 4:29 am
Share: