Page 7 of 7

Re: Plugin Compatibility with PHP 8

Posted: Wed Apr 19, 2023 9:57 am
by lck
Berni wrote:
Wed Apr 19, 2023 5:02 am
Zu Quoteoftheday 1.1 habe ich allerdings eine Einschränkung zu vermelden:
Denn das Plugin läuft zwar, kann aber im Backend nicht mehr aufgerufen werden.
Da hast du eine alte Version. Die neueste Version 1.1.1 ist auf Github zu finden, da ist das Problem bereits gefixt.

Re: Plugin Compatibility with PHP 8

Posted: Wed Apr 19, 2023 7:18 pm
by Berni
Da hast du eine alte Version. Die neueste Version 1.1.1 ist auf Github zu finden, da ist das Problem bereits gefixt.
Danke für den Link. Wer lesen kann ist eben doch klar im Vorteil :)

Re: Plugin Compatibility with PHP 8

Posted: Thu Jun 29, 2023 7:26 am
by Michael_G
Hier mein Nachtrag für zwei Plug-ins, welche auf der ersten Seite bereits als angeblich kompatibel mit PHP 8.2 gelistet sind:

– Maintenance 2.0-rc.1 ist ohne Modifikation nur mit PHP 8.1 kompatibel.
– Pfw 0.2.0 ist ohne Modifikation nur mit PHP 8.0 kompatibel.

Test mit PHP-Version 8.1.20

System Info

Installed CMSimple Version
CMSimple_XH 1.7.6RC1 Released: 2023-06-27

Installed Plugins
Ckeditor 2.2.1
Fa 1.3
Filebrowser for CMSimple_XH 1.7.6RC1
Hi_updatecheck 1.5
Jquery 1.6.6
Maintenance 2.0-rc.1
Meta_tags_plus 1.4
Morepagedata 1.2.2
Moved 1.0
Pagemanager 3.7
Page_params for CMSimple_XH 1.7.6RC1
Pfw 0.2.0
Quoteoftheday 1.1.1
Sec_header 1.0b2
Switchdebug 1.0

Webserver
Apache

PHP-Version
8.1.20-udmedia

DEPRECATED: Return type of Pfw\View\ArrayViewValue::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/var/www/anonymisiert/html/example.de/plugins/pfw/classes/View/ArrayViewValue.php:31
DEPRECATED: Return type of Pfw\View\ArrayViewValue::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/var/www/anonymisiert/html/example.de/plugins/pfw/classes/View/ArrayViewValue.php:47
DEPRECATED: Return type of Pfw\View\ArrayViewValue::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/var/www/anonymisiert/html/example.de/plugins/pfw/classes/View/ArrayViewValue.php:39
DEPRECATED: Return type of Pfw\View\ArrayViewValue::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/var/www/anonymisiert/html/example.de/plugins/pfw/classes/View/ArrayViewValue.php:63
DEPRECATED: Return type of Pfw\View\ArrayViewValue::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/var/www/anonymisiert/html/example.de/plugins/pfw/classes/View/ArrayViewValue.php:55
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
Test mit PHP-Version 8.2.7

System Info

Installed CMSimple Version
CMSimple_XH 1.7.6RC1 Released: 2023-06-27

Installed Plugins
Ckeditor 2.2.1
Fa 1.3
Filebrowser for CMSimple_XH 1.7.6RC1
Hi_updatecheck 1.5
Jquery 1.6.6
Maintenance 2.0-rc.1
Meta_tags_plus 1.4
Morepagedata 1.2.2
Moved 1.0
Pagemanager 3.7
Page_params for CMSimple_XH 1.7.6RC1
Pfw 0.2.0
Quoteoftheday 1.1.1
Sec_header 1.0b2
Switchdebug 1.0

Webserver
Apache

PHP-Version
8.2.7-udmedia

DEPRECATED: Creation of dynamic property Maintenance\Plugin::$lang is deprecated
/var/www/anonymisiert/html/example.de/plugins/maintenance/classes/Plugin.php:54

DEPRECATED: Return type of Pfw\View\ArrayViewValue::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/var/www/anonymisiert/html/example.de/plugins/pfw/classes/View/ArrayViewValue.php:31
DEPRECATED: Return type of Pfw\View\ArrayViewValue::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/var/www/anonymisiert/html/example.de/plugins/pfw/classes/View/ArrayViewValue.php:47
DEPRECATED: Return type of Pfw\View\ArrayViewValue::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/var/www/anonymisiert/html/example.de/plugins/pfw/classes/View/ArrayViewValue.php:39
DEPRECATED: Return type of Pfw\View\ArrayViewValue::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/var/www/anonymisiert/html/example.de/plugins/pfw/classes/View/ArrayViewValue.php:63
DEPRECATED: Return type of Pfw\View\ArrayViewValue::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
/var/www/anonymisiert/html/example.de/plugins/pfw/classes/View/ArrayViewValue.php:55

Re: Plugin Compatibility with PHP 8

Posted: Thu Jun 29, 2023 8:32 am
by olape
Michael_G wrote:
Thu Jun 29, 2023 7:26 am
– Maintenance 2.0-rc.1 ist ohne Modifikation nur mit PHP 8.1 kompatibel.
– Pfw 0.2.0 ist ohne Modifikation nur mit PHP 8.0 kompatibel.
Ich sehe nur DEPRECATED-Meldungen, also Hinweise.
Das heißt, die Kompatibilität ist schon noch gegeben.
Aber es sollte alsbald überarbeitet werden.

Re: Plugin Compatibility with PHP 8

Posted: Thu Jun 29, 2023 8:45 am
by Michael_G
olape wrote:
Thu Jun 29, 2023 8:32 am
Michael_G wrote:
Thu Jun 29, 2023 7:26 am
– Maintenance 2.0-rc.1 ist ohne Modifikation nur mit PHP 8.1 kompatibel.
– Pfw 0.2.0 ist ohne Modifikation nur mit PHP 8.0 kompatibel.
Ich sehe nur DEPRECATED-Meldungen, also Hinweise.
Das heißt, die Kompatibilität ist schon noch gegeben.
Aber es sollte alsbald überarbeitet werden.
Ja, sorry, da hast Du natürlich Recht.
Kompatibel ist es noch, aber nicht mehr lange.
Seriöse ISPs werden PHP 8.0 schon bald nicht mehr nutzen und nur wenig später gilt auch für 8.1 EOL (End Of Life).

Re: Plugin Compatibility with PHP 8

Posted: Thu Jun 29, 2023 9:31 am
by frase
Michael_G wrote:
Thu Jun 29, 2023 7:26 am
PHP-Version
8.2.7-udmedia
Die DEPRECATED-Meldungen kannst du unterdrücken, wenn du jeweils in der angegebenen Datei eine Zeile vor der angegebenen Funktion einfügst:

Code: Select all

...
#[\ReturnTypeWillChange]
function xxx()
...
Das gilt nur für das Pfw-Plugin. Was man bei „maintenance“ tun muss, weiß ich nicht.

Re: Plugin Compatibility with PHP 8

Posted: Sun Nov 19, 2023 11:38 am
by Berni
Entweder mache ich was falsch, oder aber das Plugin Lightbox_XH - EASY, Version: 1.7
läuft unter PHP 8.1 (noch) nicht.

Läuft das o.g. Plugin bei Euch unter PHP 8.1 ?

Re: Plugin Compatibility with PHP 8

Posted: Sun Nov 19, 2023 1:57 pm
by lck
Berni wrote:
Sun Nov 19, 2023 11:38 am
Entweder mache ich was falsch, oder aber das Plugin Lightbox_XH - EASY, Version: 1.7
Mittlerweile gibt es die Version 1.9 (lt. version.nfo), allerdings steht unter Plugin Admin-Info immer noch 1.7.
Bei mir läuft Version 1.9 unter PHP 8.2.4.

Re: Plugin Compatibility with PHP 8

Posted: Sun Nov 19, 2023 5:31 pm
by Berni
Ja , auch in meiner version.info steht was von 1.9.
Dann muss ich also irgendwo beim Einbinden einen Denkfehler haben.
Danke für Deine Rückinfo.

Re: Plugin Compatibility with PHP 8

Posted: Mon Nov 20, 2023 12:11 pm
by lck
Was funktioniert denn nicht? Kannst du das näher beschreiben.