Partial fix PHP 8.2: Collection of issues

For what it's worth, my staging forum copy works fine.

Xenforo 2.2.15 (latest official update at the time of writing), and PHP 8.3 (also latest at the time of writing).

As a man falling from a skyscraper says: "so far so good." :)

Tested it with PHP 8.2 as well - all looked good.

Will try to update the "production" forum in a day or two and see how it fares.

In case it's relevant:
I ran the update with PHP 8.0 (what the forum was running on until then).
Only after the update looked to have went well did I start testing the newer PHP versions.

Shared (technically reseller) hosting (cPanel + LiteSpeed).

Do I understand correctly that PHP 8.2 is the officially recommended version for XenForo 2.2.15?

Relja
 
PHP 7.0 or newer (PHP 8.2 recommended)

And as is said, your mileage may vary... :unsure:

I have been unable to move the PHP needle forward from v8.1 for a year now. Moving to 8.1 was an achievement in it own right. That was under XF v2.2.15. Here is what breaks the ideal:

Deprecated: Use of "self" in callables is deprecated in/home/editedout/editdomainname/src/addons/XFAws/_vendor/aws/aws-sdk-php/src/S3/RegionalEndpoint/ConfigurationProvider.phpon line83

Yup. There are a series of about a dozen of these errors spawned for various lines in that PHP file. As an outcome, nearly every member-posted image on the site goes away; being they are served by S3. So I decided to leave this penultimate version behind and update to v2.2.16. That sort of thing should certainly be fixed on this update, right?

Nope, it was 'wash, rinse, and repeat' and the same error.

Any thoughts on this, as it is the only roadblock I have to 8.2... 🙏:rolleyes:
 
You do need that add-on if you're still on XF 2.2. It's only no longer required if you're upgrading to XF 2.3.

As noted, @PapaTango, it is technically an add-on issue that isn't related to the fixes discussed in this thread. But I believe if you download the latest version that was made available here then it should resolve the issue. If it doesn't, post in the thread here and I'll push another update.

But, yeah, strongly recommend upgrading to XenForo 2.3 at this point. That has full compatibility with PHP 8.2 and 8.3 and will also support the upcoming PHP 8.4 in the near future.
 
@Chris D Thanks for the reply. I thought that as the addon was little more than an Amazon SDK extension developed by XF to flesh out the core this thread might be the right place. But I will post this in the other one and see if anyone else experiences this error.

I am running the last addon v2.3.0 (r07/16/22) version, and have reloaded it twice with no joy. As to making the jump to XF 2.3, that will not happen until late next year. I have too many third-party add-ons and my own customizations that are not ready for PHP 8.3/4 or XF 2.3. I simply want to get to v8.2 and up and running now.

Last night, I loaded and provisioned new Apache 4 PHP profiles on both my VPS and workstation Laragon server. There are lots of things to do and no real hurry to make jumps while I see what newer 8.x versions offer.

If it ain't broken and it's a production site that makes money--don't "improve it" by dancing on the cutting edge. 30 years of website development on many platforms has taught me the wisdom of waiting a bit for the world to catch up...

Off to the other thread!
 
Back
Top Bottom