Plugin Compatibility with PHP 8

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

lck
Posts: 2963
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Plugin Compatibility with PHP 8

Post by lck » Wed Apr 19, 2023 9:57 am

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.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

Berni
Posts: 132
Joined: Wed Feb 12, 2014 4:38 pm
Contact:

Re: Plugin Compatibility with PHP 8

Post by Berni » Wed Apr 19, 2023 7:18 pm

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 :)

Michael_G
Posts: 185
Joined: Thu Feb 18, 2016 11:01 pm
Contact:

Re: Plugin Compatibility with PHP 8

Post by Michael_G » Thu Jun 29, 2023 7:26 am

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
Ciao
Michael

Let's Encrypt!

olape
Posts: 2731
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: Plugin Compatibility with PHP 8

Post by olape » 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.
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

Michael_G
Posts: 185
Joined: Thu Feb 18, 2016 11:01 pm
Contact:

Re: Plugin Compatibility with PHP 8

Post by Michael_G » Thu Jun 29, 2023 8:45 am

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).
Ciao
Michael

Let's Encrypt!

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Plugin Compatibility with PHP 8

Post by frase » Thu Jun 29, 2023 9:31 am

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.

Berni
Posts: 132
Joined: Wed Feb 12, 2014 4:38 pm
Contact:

Re: Plugin Compatibility with PHP 8

Post by Berni » Sun Nov 19, 2023 11:38 am

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 ?

lck
Posts: 2963
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Plugin Compatibility with PHP 8

Post by lck » Sun Nov 19, 2023 1:57 pm

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.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

Berni
Posts: 132
Joined: Wed Feb 12, 2014 4:38 pm
Contact:

Re: Plugin Compatibility with PHP 8

Post by Berni » Sun Nov 19, 2023 5:31 pm

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.

lck
Posts: 2963
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Plugin Compatibility with PHP 8

Post by lck » Mon Nov 20, 2023 12:11 pm

Was funktioniert denn nicht? Kannst du das näher beschreiben.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

Post Reply