XF 2.2 after my isp updated to php 8.4 i got this error...

Deprecated: League\Flysystem\EventableFilesystem\EventableFilesystem::__construct(): Implicitly marking parameter $emitter as nullable is deprecated, the explicit nullable type must be used instead in/usr/www/dcu/public_html/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.phpon line30

Deprecated
: League\Flysystem\EventableFilesystem\EventableFilesystem::get(): Implicitly marking parameter $handler as nullable is deprecated, the explicit nullable type must be used instead in/usr/www/dcu/public_html/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.phpon line98

Deprecated
: Use of "parent" in callables is deprecated in/usr/www/dcu/public_html/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.phpon line431



how to fix?
 
it was 2.2.4 so i guess i have to upgrade it to 2.3.6 to support php 8.4 right?
Well, even 2.3.6 recommends PHP 8.3 but people have been running PHP 8.4 without too much issue it seems.
Jumping from 2.2.4 to even just the 2.3 branch is going to be a big move if you have any sort of addons or custom styles.
2.2.4 was released in March 2021 and recommended PHP 7.4+...

Personally, I'd suggest getting up to 2.2.17 first, that runs well with even with PHP 8.3.x. -- then sort out addon issues before moving to 2.3.x

The less painful route is definitely getting your host to allow you to use PHP 8.3 and upgrade xf 2.2.17 at a minimum.

If you aren't using any addons, then you can probably march onward to 2.3.6... directly.
Just make sure you back stuff up, you can't go backwards once you start upgrading.
 
Well, even 2.3.6 recommends PHP 8.3 but people have been running PHP 8.4 without too much issue it seems.
Jumping from 2.2.4 to even just the 2.3 branch is going to be a big move if you have any sort of addons or custom styles.
2.2.4 was released in March 2021 and recommended PHP 7.4+...

Personally, I'd suggest getting up to 2.2.17 first, that runs well with even with PHP 8.3.x. -- then sort out addon issues before moving to 2.3.x

The less painful route is definitely getting your host to allow you to use PHP 8.3 and upgrade xf 2.2.17 at a minimum.

If you aren't using any addons, then you can probably march onward to 2.3.6... directly.
Just make sure you back stuff up, you can't go backwards once you start upgrading.
@internetking425 I hope you're reading this.
 
Back
Top Bottom