News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Need to Upgrade from 2.0 to 2.1.3

Started by Greyhound, November 25, 2022, 09:47:09 AM

Previous topic - Next topic

Sir Osis of Liver

Quote from: Sir Osis of Liver on November 27, 2022, 01:32:57 PMIf you uploaded the 2.1 install package instead of upgrade package, Settings.php has been overwritten with a scratch file, upgrader won't be able to connect to database.

Did you upload the upgrade or install package?  If you used the install package, just upload 2.0 Settings.php from backup, or manually edit the scratch file to add your db credentials.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Greyhound


Greyhound


Sir Osis of Liver

Going offline shortly, two things you can do:

- Look in Settings.php, check if database info is correct.

- Try the 2.1.2 upgrade package, there were a couple of changes made to upgrader in 2.1.3.  If it works you can patch up to 2.1.3 in package manager.

Good luck.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Doug Heffernan

Quote from: Greyhound on November 27, 2022, 01:48:37 PMIt's the upgrade package. 

What is the php version set to? Can you check the server error log and post here the most recent messages?


Greyhound

Server PHP version is 8.1.12.  But the PHP version showing in phpmyadmin is 7.4.30.

The 2.0 forum was on an older version of php.  One of the reasons I wanted to upgrade because my I felt at some point the older version of php my forum was on may not be compatible in the future.  About a year ago I had an issue with this but the host rolled their update back. 

Greyhound

Errors are below.  Not sure if this is related as the file transfer was at 1:02.  The same errors showing yesterday and I hadn't started this then.

Sun Nov 27 11:39:51.747772 2022] [cgid:error] [pid 561723:tid 22665599092480] [client 103.153.183.106:0] AH01273: invalid CGI ref "/cgi-sys/fourohfour.cgi" in /home2/famelico/public_html/404.shtml
[Sun Nov 27 11:39:51.621607 2022] [cgid:error] [pid 561723:tid 22665693648640] [client 103.153.183.106:0] AH01273: invalid CGI ref "/cgi-sys/fourohfour.cgi" in /home2/famelico/public_html/404.shtml
[Sun Nov 27 11:39:51.619117 2022] [cgid:error] [pid 561723:tid 22665693648640] [client 103.153.183.106:0] AH01264: script not found or unable to stat: /home2/famelico/public_html/cgi-bin/mt6
[Sun Nov 27 11:39:51.516631 2022] [cgid:error] [pid 561723:tid 22665699952384] [client 103.153.183.106:0] AH01273: invalid CGI ref "/cgi-sys/fourohfour.cgi" in /home2/famelico/public_html/404.shtml
[Sun Nov 27 11:39:51.415560 2022] [cgid:error] [pid 561723:tid 22665655826176] [client 103.153.183.106:0] AH01273: invalid CGI ref "/cgi-sys/fourohfour.cgi" in /home2/famelico/public_html/404.shtml
[Sun Nov 27 11:39:51.413334 2022] [cgid:error] [pid 561723:tid 22665655826176] [client 103.153.183.106:0] AH01264: script not found or unable to stat: /home2/famelico/public_html/cgi-bin/mt
[Sun Nov 27 11:39:51.305716 2022] [cgid:error] [pid 561723:tid 22665607497472] [client 103.153.183.106:0] AH01273: invalid CGI ref "/cgi-sys/fourohfour.cgi" in /home2/famelico/public_html/404.shtml
            

Greyhound

I made multiple backups and my host can also restore from a backup they made yesterday.  I'd like to know the issue because I really do want to upgrade to 2.1.  If I just go back to 2.0 and do this again and it happens again, I'm right back here. 

Doug Heffernan

Quote from: Greyhound on November 27, 2022, 02:08:23 PMI made multiple backups and my host can also restore from a backup they made yesterday.  I'd like to know the issue because I really do want to upgrade to 2.1.  If I just go back to 2.0 and do this again and it happens again, I'm right back here.

Please don't keep bumping unless 24 hours have passed.

That being said, looking at the error, it looks like you are attempting to include a CGI script within the 404 error page. Have you ensured the "fourohfour.cgi" page exists? If so, are you using the full path to it in your 404 error page?

Alternatively, can you make a backup of the 404.shtml file, then delete it and give it another go?


Greyhound

#29
For some reason the 404.shtml shows the below code:

<!-- SHTML Wrapper - 404 Not Found --> <!--#exec cgi="/cgi-sys/fourohfour.cgi" -->

This file is from 2017 so I don't think that's the issue with this upgrade.

The issue still is, after I transferred the files from the upgrade package (2.1.3), the site stopped populating in the browser and upgrade.php file won't connect.

Steve

Quote from: Greyhound on November 27, 2022, 02:36:37 PMSorry, wasn't trying to bump, was just posting in the thread.
You have several minutes in which you can edit your previous post. Makes it easier for us to read. :)
DO NOT pm me for support!

Greyhound

I made edits to my previous post.  However, I don't believe 404 page is the issue.  That was just brought up because one of the replies asked for recent error logs. 

The real issue is after I transferred the upgrade files (2.1.3) via FTP to the forum directory and overwrote the previous files, the website now won't populate in the browser and the upgrade.php won't come up for me to run it.

I'm assuming there is a connection issue with the database but the database username/password are still in the settings.php file.  The settings.php files in the directory is from 2018 (it is not new). 

I have done nothing at this point but transfer and overwrite files that were prompted.

Doug Heffernan

Quote from: Greyhound on November 27, 2022, 02:59:16 PMThe real issue is after I transferred the upgrade files (2.1.3) via FTP to the forum directory and overwrote the previous files, the website now won't populate in the browser and the upgrade.php won't come up for me to run it.

Why would that be an issue? That is the correct upgrade procedure.

Quote from: Greyhound on November 27, 2022, 02:59:16 PMI'm assuming there is a connection issue with the database but the database username/password are still in the settings.php file. 

If there would have been an issue with the database details, you would have gotten a different error and not the one that you posted.

Greyhound

So should assume nobody knows why this happening?   If nobody knows I'll have to revert back to the old files.

Edit:  Is there a support member that could take a look at this if there isn't an obvious issue noticeable?

Doug Heffernan

Quote from: Greyhound on November 27, 2022, 05:14:27 PMSo should assume nobody knows why this happening?

The error you posted in one of your previous posts says:

Quote from: Greyhound on November 27, 2022, 01:10:51 PM[an error occurred while processing this directive]

This type of error occurs almost always when the server has no access to files and folders. Maybe the overwrite messed up somehow the files/folders permissions. Can you check them and see what they are set to?

What about my previous post, which was based on the errors you posted from the server error log. Did you look into it?

Quote from: Doug Heffernan on November 27, 2022, 02:10:37 PMThat being said, looking at the error, it looks like you are attempting to include a CGI script within the 404 error page. Have you ensured the "fourohfour.cgi" page exists? If so, are you using the full path to it in your 404 error page?

Quote from: Greyhound on November 27, 2022, 05:14:27 PMEdit:  Is there a support member that could take a look at this if there isn't an obvious issue noticeable?

This is an issue with your server set up, and not Smf. It would be better if you talked to your host about this.

Kindred

You navigate to yoursite.com/upgrade.php?
There is no .before the upgrade word
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Greyhound

The folder permissions are 755 and files are 644.  

I didn't do anything with the 404 page error because the file is from 2018 and those errors were happening before I did this upgrade so I believe it's not related and didn't want to complicate things. 

Greyhound

Quote from: Kindred on November 27, 2022, 05:53:39 PMYou navigate to yoursite.com/upgrade.php?
There is no .before the upgrade word
Yes, I used that path.  

See attached pic of the url path. 

Kindred

With that error, it suggests that the upgrade.php file does not exist in your forum root.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Kindred

Right...
http://www.paintingtheblack.com/ssi_examples.php

Works -- but shows the 2.0 ssi

That means that you didn't overwrite files.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: