WBCE CMS – Way Better Content Editing.
You are not logged in.
Droplets 2.4.1 — PHP 8.x Fix
Stand: 27. März 2026
Hallo Florian, hallo Community,
kleiner aber wichtiger Fix für Droplets unter PHP 8.x.
Problem
Wenn mehrere Abschnitte auf einer Seite vorhanden sind erscheint im Errorlog:
[Warning] /modules/droplets/droplets.php:[73]
from /modules/droplets/opf_filter_droplets.php:[68]
evalDroplets "Undefined array key 1"PHP 8.x ist strenger bei undefined array keys — in PHP 7.x wurde das still ignoriert.
Ursache
In droplets.php Zeile 73 wird list() mit explode() verwendet.
Wenn kein '=' im Argument vorhanden ist liefert explode() nur ein Element
und list() greift auf den nicht vorhandenen Index [1] zu.
Fix
// VORHER
list( $variable, $value ) = explode('=', $argument, 2);
// NACHHER
$parts = explode('=', $argument, 2);
$variable = $parts[0] ?? '';
$value = $parts[1] ?? '';Umgebung
Droplets Version: 2.4.1
WBCE: 1.6.5
PHP: 8.5.2
Getestet: Mehrere Abschnitte auf einer Seite — kein Fehler im Errorlog
Last edited by Slugger (27.03.2026 20:25:28)
Hoster: ALL-INKL *** Grundsätzliche WBCE Konfig ***
WBCE: 1.6.5 • BE: 2.1.0 • PHP: 8.x * Alle • BE: Argos
Status Projekt 1-4: OK
Online
florian, giz, chap