Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: delahoc on September 23, 2018, 09:34:59 PM

Title: I have an old version of SMF and upgrades aren't working.
Post by: delahoc on September 23, 2018, 09:34:59 PM
I had a forum using v1.0.16. When it recently died (PHP deprecation issue) I tried to upgrade to v1.0.17 with a view to continuing to upgrade until I got a working version. Bad idea. Even the upgrade to v1.0.17 is dead, so now I'm stuck with a mixture of files and no working forum.

Is there a way to skip multiple versions? That is, is there a converter to take an old version of SMF and update it to one of the shiny new versions?

I'm desperate. If I can't find a solution I'm just going to either shut the whole thing down or start again from scratch (meaning everything so far is lost).
Title: Re: I have an old version of SMF and upgrades aren't working.
Post by: vbgamer45 on September 23, 2018, 10:04:12 PM
Can you downgrade your php version to 5.4? then try the 1.1.x upgrade in cpanel?
I
Title: Re: I have an old version of SMF and upgrades aren't working.
Post by: delahoc on September 23, 2018, 10:38:29 PM
I can downgrade the PHP version easily enough, but the forum doesn't appear in the cPanel list of installations. It was installed manually (copied from a previous server), not via cPanel.
Title: Re: I have an old version of SMF and upgrades aren't working.
Post by: Sir Osis of Liver on September 23, 2018, 11:38:00 PM
You don't do upgrades in cpanel.  If you downgrade php to 5.4, you should be able to patch to 1.1.21, then upgrade php to 5.6, and upgrade forum to 2.0.15 using upgrade package via ftp.
Title: Re: I have an old version of SMF and upgrades aren't working.
Post by: Aleksi "Lex" Kilpinen on September 24, 2018, 12:07:56 AM
Is there a way to skip multiple versions? That is, is there a converter to take an old version of SMF and update it to one of the shiny new versions?
Upgrading SMF (https://wiki.simplemachines.org/smf/Upgrading)
Title: Re: I have an old version of SMF and upgrades aren't working.
Post by: delahoc on September 24, 2018, 12:37:28 AM
Thanks Sir Osis. I was replying to vbgamer45 who clearly suggested upgrading in cPanel.

As I originally said, I was upgrading manually, through the patches, but it died on the very first attempt. I manually uploaded all the v1.0.17 files from the patch zip file, then went to run the upgrade.php. It died saying I had outdated language files .... I'd much rather just jump straight to the latest possible version, rather than run 20 patch updates ... I'll try your suggestion of jumping ahead to v1.1.21.
Title: Re: I have an old version of SMF and upgrades aren't working.
Post by: Sir Osis of Liver on September 24, 2018, 12:44:10 AM
Are you really running 1.0.16?  Thought that was a typo for 1.1.16.  Believe I've upgraded one 1.0.x forum to 2.0.15, but it takes some doing.  You have to upgrade in steps, and play with php versions along the way.  You can try upping to 1.1.21 in php 5.4 with upgrade package, but don't think it will work.

Title: Re: I have an old version of SMF and upgrades aren't working.
Post by: Aleksi "Lex" Kilpinen on September 24, 2018, 01:27:18 AM
I'd much rather just jump straight to the latest possible version, rather than run 20 patch updates ... I'll try your suggestion of jumping ahead to v1.1.21.
Take a look at the link I gave you, that is what it is for.
Is there a way to skip multiple versions? That is, is there a converter to take an old version of SMF and update it to one of the shiny new versions?
Upgrading SMF (https://wiki.simplemachines.org/smf/Upgrading)
Title: Re: I have an old version of SMF and upgrades aren't working.
Post by: delahoc on September 24, 2018, 05:30:59 AM
Yes, thanks Aleksi, I did see it and I've been following it as best I can (it's not all that clearly written). I have managed to get the installation up to v1.1 now, but it wasn't easy and took hours. The data all seems to have survived, but just about every step of the installation presented either PHP or SQL errors (mostly SQL now).
Title: Re: I have an old version of SMF and upgrades aren't working.
Post by: Antechinus on September 24, 2018, 05:44:48 AM
If you've managed to get it working on 1.1.x (I assume 1.1.21) then going the rest of the way to 2.0.15 should be pretty easy. The 2.0.15 large upgrade pack is designed for the job.

Is the thing running without errors on 1.1.x now?
Title: Re: I have an old version of SMF and upgrades aren't working.
Post by: Sir Osis of Liver on September 24, 2018, 12:27:59 PM
The older upgrade scripts will not run correctly on some server configurations, you need to be sure database is intact before proceeding to next step.  If you had a lot of errors, db may be damaged.  Which 1.1 version are you at now?  Which php version did you use to run the upgrade?
Title: Re: I have an old version of SMF and upgrades aren't working.
Post by: GigaWatt on September 24, 2018, 10:16:32 PM
Sir Osis of Liver is right, the database might not be fully converted or it may be damaged. Check and see if everything in the database survived.

Also, did you empty out the error log before doing the upgrade?