[SOLVED] Upgrading ...
 
Notifications
Clear all

[SOLVED] Upgrading to 3.0.2 Error: 404, then install error

13 Posts
2 Users
0 Reactions
3,823 Views
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

URL to your eFiction: http://seventh-star.net/drfa
Version of eFiction: 3.0.1, trying to upgrade to 3.0.2
Have you bridged eFiction, if so with what?: No, N/A
Version of PHP: 4.4.3
Version of MySQL: 4.1.21-standard
Have you searched for your problem: yes
If so, what terms did you try: 3.0.2, session cache limiter, 404
Have you looked at the FAQs: Yes
State the nature of your problem: Initially, a 404 error because it can't find the install/install.php. When I uploaded the install folder, I got this error:


Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/**/public_html/drfa/install/install.php:148) in /home/**/public_html/drfa/config.php on line 52

Warning: Cannot modify header information - headers already sent by (output started at /home/**/public_html/drfa/install/install.php:148) in /home/**/public_html/drfa/config.php on line 60

Warning: Cannot modify header information - headers already sent by (output started at /home/**/public_html/drfa/install/install.php:148) in /home/**/public_html/drfa/config.php on line 61

Warning: Cannot modify header information - headers already sent by (output started at /home/**/public_html/drfa/install/install.php:148) in /home/**/public_html/drfa/config.php on line 62

Warning: Cannot modify header information - headers already sent by (output started at /home/**/public_html/drfa/install/install.php:148) in /home/**/public_html/drfa/config.php on line 71

I downloaded the latest 3.0.2 files, replaced all my old files with them, and uploaded them to my server. So far, so good, but when I went to my site, the above happened. I don't know why it needs the install folder, or why the error's coming up (maybe there's another file or folder I'm not supposed to upload when upgrading?), and I'm at a loss here. The only other post on here that seemed even remotely similar to this (with a slightly different error) didn't say what the problem solution was, and I don't know if they're even related or if the error just looked similar (headers sent error).


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 03/01/2007 4:34 am
(@tammy)
Posts: 2577
Member Moderator
 

Did you delete your config.php?


 
Posted : 03/01/2007 10:07 am
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

I have deleted it now, but it takes me to Step 1 of the install, as if I need a fresh install... which I don't. When I upgraded from 3.0 to 3.0.1, I could still just go to the Admin panel and go to Run Update, but now it keeps redirecting to this install folder/file.


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 03/01/2007 10:22 am
(@tammy)
Posts: 2577
Member Moderator
 

You weren't supposed to delete it.  It just seemed from your problem that that was what had happened.  You'll need to put it back.  Grab the empty one from the docs folder and re-create it by editing it in a text editor.


 
Posted : 03/01/2007 11:33 am
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

Hm, okay... but the config.php file in the main directory is very different from the short one with the variables to edit (for dbname, dbpassword, etc.) in the docs/ folder. What happens to the lengthy one that was originally in the main folder, or does it not matter after initial installation?

ETA: Even if the two config.php files were initially different, I get the same error (above) when I upload the edited config.php file (the one with my hostname, database info, and sitekey).


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 03/01/2007 11:40 am
(@tammy)
Posts: 2577
Member Moderator
 

2.0 had a long config.php file.  3.0 has the short one.  This is all that should be in the 3.0 config.php file:


<?php
$dbhost = "localhost";
$dbname = "dbname";
$dbuser= "dbuser";
$dbpass = "dbpass";
$sitekey = "sitekey";
$settingsprefix = "settingsprefix";

include_once("includes/dbfunctions.php");
if(!empty($sitekey)) $dbconnect = dbconnect($dbhost, $dbuser,$dbpass, $dbname);

?>

You MUST have a sitekey.  The site is acting as if you either don't have a sitekey or don't have a config.php file at all.


 
Posted : 03/01/2007 12:38 pm
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

That's odd. When I downloaded the 3.0.2 update, there was a config file in the package's main directory that was different from the one in the docs/ directory. Speaking of the latter, if that one is the one that's SUPPOSED to be in the main directory (the short one), then does a copy need to remain in the docs folder, or no?

Also, if there is some sort of mistake (either I accidentally moved an old folder, or something else), what is this file:

snipped this out as we solved this problem and it was making the page wonky.

Also, can I change my sitekey from what it was in the intial installation to a new one now? I can't remember what the one I used when I first installed was... But I do know I didn't use a prefix for the tables, so do I just leave that part blank?


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 03/01/2007 12:45 pm
(@tammy)
Posts: 2577
Member Moderator
 

That's your header.php file.  I don't know how it could have been renamed.  I opened up the .zip and there's no config.php in there that I could see.  Maybe something happened when you unzipped it. You need to use the same sitekey.  Look in phpMyAdmin.  There should be only one row in the settingstable.  You can grab your sitekey there.


 
Posted : 03/01/2007 1:04 pm
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

I think what happened was when I was uploading all the 3.0.2 files, I accidentally double-clicked on the header.php file and changed it to gibberish. Because that gibberish started with a d, and I didn't see a config.php file, I thought I'd renamed the config.php file by accident, when there was never one to begin with (in the main directory, anyway). Speaking of the configs in directories, if the config.php I grabbed from the docs/ folder is the same as the one used in the main directory, do I need the one in the docs/ folder anymore, or no? (I mean uploaded.)

Also, I grabbed my sitekey, and so far it seems to want me to continue as if this is a fresh install. It "knows" all my site settings and everything, but then I get to the part about the table installation, and I'm almost sure it would give me errors if I tried to reinstall the tables when they've already BEEN installed and have data in them. So what do I do?


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 03/01/2007 1:15 pm
(@tammy)
Posts: 2577
Member Moderator
 

Did you edit config.php to put the sitekey and other infomration into it?


 
Posted : 03/01/2007 1:23 pm
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

Yes, I did. I edited the config.php file (the short one) that was originally in the docs/ folder, moved it to the main directory, and uploaded it. When I tried to go to my index page, it redirected me to the install folder/file, and my information from the config.php was already filled in.


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 03/01/2007 1:26 pm
(@tammy)
Posts: 2577
Member Moderator
 

I take it you got this figured out?  It's coming up correctly for me at the following url: http://www.seventh-star.net/drfa/


 
Posted : 03/01/2007 1:43 pm
(@azurite)
Posts: 209
Reputable Member
Topic starter
 

Yeah, I think what happened was when I typed my address in my browser's address bar, it took the most recent one (being the install/install.php one), even though I'd only typed out to the /drfa/ part.
πŸ™‚ Thanks. I knew it would be something simple that I'd messed up... ^^;


Archive: Dragonfayth
eFiction: 3.5.5/6
Latest Patch(es): Yes
bridged?: No
modified?: Yes
PHP: 7.4.25
MySQL: 5.7.32-35-log

 
Posted : 03/01/2007 1:44 pm
Share: