SMF 2.0.17 and upgrading to PHP 8.2

Started by probeman, June 25, 2024, 01:52:29 PM

Previous topic - Next topic

probeman

We are running SMF 2.0.17 and our network provider sent an email that they were updating to PHP 8.2 over the next few weeks.

Now my SMF site isn't responding.  Edge gives an "HTTP error 500, can't currently handle this request".  Firefox just shows a completely blank page.

Did I screw up by not updating to the latest SMF?   How can I fix this?

vbgamer45

See if they can downgrade to PHP
SMF 2.0.x works up to PHP 8.0 I believe
For higher PHP versions you need SMF 2.1
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Diego Andrés

https://download.simplemachines.org/requirements.php
2.0.17 only supports up to 7.3. You could patch up to 2.0.19 so you can at least have support for PHP 8.0

There won't be a 2.0.20 so your best option is what vbgamer suggested, upgrading to SMF 2.1.x

SMF Tricks - Free & Premium Responsive Themes for SMF.

probeman

I am not an expert at this.  I used the SMF GUI interface to upgrade previously, but now with the GUI interface down how to I upgrade to SMF 2.1.x?

probeman

Quote from: probeman on June 25, 2024, 02:02:08 PMI am not an expert at this.  I used the SMF GUI interface to upgrade previously, but now with the GUI interface down how to I upgrade to SMF 2.1.x?

Looks like my network provider can handle this for us.

Thanks for the info.

probeman

So my network provider downgraded my PHP from 8.2 to 7.x and now my forum is back up, but when I went to upgrade my SMF package from 2.0.17 to 2.0.18, I get this error in the attached image below.

My provider said "Unfortunately, the Open Source Application is Out of Scope for MyTime Support. We have had multiple tenured agents try to take a look at this and none have been able to see why it is giving you an issue with upgrading the version."

Does anyone have any idea how I can fix this error so I can upgrade from 2.0.17 to 2.0.18?   Or should I just give up and leave my forum at 2.0.17?

Sir Osis of Liver

Click on the edit icon, left of error, it will display target code and new code.  Package manager is not finding exact match, probably because it's been edited by a mod, but you should be able to find it.  Then make the change manually.  Back up the file first.
When in Emor, do as the Snamors.
                              - D. Lister

Aleksi "Lex" Kilpinen

You need to upgrade to 2.1, so you can keep the forum working when the PHP version is updated, and you can not do that through the package manager.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Kindred

See the faq on the full major upgrade.

You can upgrade directly from 2.0.17 to 2.1.4
Сл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."

probeman

#9
Below are what I see when I click the edit icons.

I will check the FAQ but I'm not sure I qualified to do a manual upgrade. 

Also we are using the Gallery feature (v. 5.6) and the Recapthca feature (v. 1.0.1). Will these also need to be upgraded manually if I do a full upgrade to v. 2.1.4??


Kindred

You absolutely must do the major upgrade to 2.1.4.
Smf 2.0.x does not support php 8.2

There is no other way to upgrade between major versions.
Сл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."

probeman

Quote from: Kindred on June 27, 2024, 11:17:45 AMYou absolutely must do the major upgrade to 2.1.4.
Smf 2.0.x does not support php 8.2

There is no other way to upgrade between major versions.

OK, thanks.   Also we are using the Gallery feature (v. 5.6) and the Recapthca feature (v. 1.0.1). Will these also need to be upgraded manually if I do a full upgrade to v. 2.1.4??

I read a little about using FTP to do this. So I downloaded the 2.1.4 package zip and I can extract it on my desktop. 

Then I read that I upload it to the Packages folder on my site and then what do I do?  Are there step by step directions for this?

I'm scared...

Aleksi "Lex" Kilpinen

All your mods and customizations will be lost in the process, as you need to actually overwrite your current install:
Upgrading SMF
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Doug Heffernan

Quote from: probeman on June 27, 2024, 12:18:07 PMAlso we are using the Gallery feature (v. 5.6) and the Recapthca feature (v. 1.0.1). Will these also need to be upgraded manually if I do a full upgrade to v. 2.1.4??

If they are compatible with 2.1.x you can simply install them from the Package Manager. Otherwise you can't use them.

Sir Osis of Liver

Quote from: probeman on June 27, 2024, 12:18:07 PMThen I read that I upload it to the Packages folder on my site and then what do I do?  Are there step by step directions for this?
No, after you unzip the upgrade package you have to upload it to forum root (the main forum directory).  The package includes upgrade.php, you run that with a direct link.  You must back up all the forum files and your database before running the upgrade.

If you are running this gallery mod, the current v7.1a has been updated for 2.1, it should retain content from the older version you're currently using.  If you're using this recaptcha mod, it hasn't been updated beyond 2.0, but may work in 2.1.  You'd have to try it.


QuoteI'm scared...
So am I, but not by upgrades.  :(
When in Emor, do as the Snamors.
                              - D. Lister

Sesquipedalian

ReCaptcha support is an included feature in SMF 2.1. There is no need for a mod to add it.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Steve

Quote from: Sir Osis of Liver on June 27, 2024, 04:46:27 PM
QuoteI'm scared...
So am I, but not by upgrades.  :(
I hope it's not the same thing that scares me.
My pet rock is not feeling well. I think it's stoned.

probeman

Quote from: Sesquipedalian on June 27, 2024, 05:12:56 PMReCaptcha support is an included feature in SMF 2.1. There is no need for a mod to add it.

Great to know, thank-you!

Advertisement: