Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: Cpt_Starfox on May 15, 2023, 11:38:06 AM

Title: upgrading from 1.1.11 - Yeah, scary I know
Post by: Cpt_Starfox on May 15, 2023, 11:38:06 AM
Hello everyone! I'm new and wasn't sure where to post, so I'm trying here first.

So, I've been using 1.1.11 for soooo many years. I didn't even know this community existed or that updates had been made! Well, the host went to PHP 5.6 and the forums broke. I've created a hacky way to at least make the forums readable for now although you still can't post or even log out it seems lol. So, yeah, it's still very broken.

I was told there were actually newer versions of the forums! Well, this was good news! I then looked into trying to update to the latest version, but the instructions I found refer to a file called upgrade.php which doesn't seem to exist. Well, I started looking for more help and found this community!

I really need some help to get my forums upgraded to something that will function again. It doesn't have to be the latest version but hopefully a version that will be compatible with at least PHP 5.6 as that seems to be the oldest PHP the host will support. I'd prefer to upgrade as much as possible so that I don't have to mess with this again for another long time lol, but I'll take what I can get at this point :)

If anyone has the knowledge and patience to give me a nice step by step, that would be fantastic. If I've missed this already existing somewhere, please forgive me and point me to it :)
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Sesquipedalian on May 15, 2023, 11:44:00 AM
This should tell you all you need to know. https://wiki.simplemachines.org/smf/Upgrading

Upgrading isn't hard. :)
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Cpt_Starfox on May 15, 2023, 11:53:03 AM
That looks like the guide I tried to follow which referred to the upgrade.php which I could not find. Maybe I'm just overlooking it or misunderstanding?
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Aleksi "Lex" Kilpinen on May 15, 2023, 12:02:18 PM
It is included in the large upgrade package, so if you've followed the instructions you should have the file in the same folder as your forum's index.php
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Cpt_Starfox on May 15, 2023, 12:05:32 PM
Oh my, now I feel silly. I downloaded the wrong thing apparently. Well, I can try again to follow the guide now, and hopefully all will go smoothly  :D  Thanks!
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Cpt_Starfox on May 15, 2023, 12:39:01 PM
I'm getting two warnings:

Warning! Avatar directory not found. Continuing may be unsafe. Please confirm folder settings before proceeding.

Warning! One or more attachment directories not found. Continuing may be unsafe. Please confirm folder settings before proceeding.

The directories "attachments" and "avatars" seem to be there with the 775 permissions set. Is there something else wrong or can I simply ignore this warning? Maybe these directories should be renamed to "Avatar" and "attachment" or something?
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Aleksi "Lex" Kilpinen on May 15, 2023, 12:53:36 PM
You shouldn't continue without looking in to this, or you may end up losing attachments and avatars.
Since you can't access the forum directly, try to look at smf_settings in your database.
It's been a long while since I've had to play with 1.1, but I think you should find both paths in smf_settings.
If you find them, double check that those folders exist, have contents, and are accessible ( and writable for PHP ).
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Sir Osis of Liver on May 15, 2023, 01:02:09 PM
1.1.11 is the version I started with in 2010. :)   You can try upgrading in steps.  Download the 1.1.21 upgrade package (find it here (https://download.simplemachines.org/index.php?archive)).  If it runs without errors, you should be able to upgrade directly to 2.1.3. 
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Cpt_Starfox on May 15, 2023, 02:15:04 PM
I strangely don't see a smf_settings table but instead a backup_smf_settings table. In that table there is are entries having to do with attachments including the upload directory. I didn't see anything having to do with avatars. There is also a smf_attachments table if that helps at all.

Also as I stated, the attachments and avatars directories are there with permissions set to 775, so I'm not sure what else the upgrade script is looking for.

I'm not sure I can patch upward since I can't seem to really access the forums directly very well. My hacky attempt at making 1.1.11 work on PHP 5.6 made it readable and sort of able to log in I guess, but that's about it.
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Sir Osis of Liver on May 15, 2023, 09:16:51 PM
The backup_ tables are created by the upgrader prior to upgrading the database.  If you don't have an smf_settings table in the db, see if there are any other smf_ tables missing.  Forum really shouldn't work at all without a _settings table.  What is smfVersion in the backup table?
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Cpt_Starfox on May 18, 2023, 06:21:24 PM
I've been delayed trying to get to this and finish the upgrade. I've been busy at work. So anyway, I'm not sure how to tell what the smfVersion the backup tables are.
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Sir Osis of Liver on May 18, 2023, 06:40:26 PM
Ok, first it appears you have an incomplete set of smf_ tables.  If you're missing smf_settings, there may be other tables missing.  1.1.21 installs with 41 tables.  Am unable to install 1.1.11, but should be same.  How many smf_ tables do you have?  How many backup_smf_ tables?

smfVersion is at top of smf_settings or backup_smf_settings table.
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Sesquipedalian on May 18, 2023, 06:44:55 PM
Quote from: Sir Osis of Liver on May 18, 2023, 06:40:26 PMsmfVersion is at top of smf_settings or backup_smf_settings table.

Not necessarily.
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Sir Osis of Liver on May 18, 2023, 06:50:49 PM
Hmm, well it is in 1.1.21 and 2.0.19, but not in 2.1.3.  In any event it must be in _settings table.
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Cpt_Starfox on May 19, 2023, 11:40:42 AM
Found the SMFversion in the backup tables: 1.0.7

It looks like the backup tables are from even before 1.1.11 like maybe from when whoever had the forums before me upgraded from 1.0.7 to 1.1.11. Yep, this is some old stuff lol.

I also found the settings table, yay! The SMFversion in it is 1.1.4. Strange, but at least I have a settings table. For some reason I didn't see it in the navigation for phpMyAdmin but did finally find it anyway. It's been so long since I've messed with phpMyAdmin, I toss it up to me being rusty.

Anyway, having found that it looked like various directory settings are wrong in there, so I reset them manually and started the upgrade. It's running now, and here's hoping for the best!
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Cpt_Starfox on May 19, 2023, 11:51:41 AM
It seems to have all gone well! Thank you all so much for your patience and help! Now if only I can find a way to make it look like it used to. I'm not extra fond of the new look, so any ideas hehe?  ;D
Title: Re: upgrading from 1.1.11 - Yeah, scary I know
Post by: Aleksi "Lex" Kilpinen on May 19, 2023, 12:09:49 PM
Well, there's always this https://custom.simplemachines.org/index.php?action=themes :)