PHP-Code:
Uncaught PHP Exception Error: "Call to protected Contao\Backend::__construct() from scope CheckBoxVisual"
at /www/htdocs/xxxxxxxx/meinedomain.de/system/modules/yds_visualformfields/CheckBoxVisual.php line 55
{ "exception":
"[object] (Error(code: 0): Call to protected Contao\\Backend::__construct()
from scope
CheckBoxVisual at
/www/htdocs/xxxxxxxxxx/meinedomain.de/
system/modules/yds_visualformfields/CheckBoxVisual.php:55)"
} []
Habe das Plugin über Google gefunden (https://www.your-d-sign.de/de/leistu...ual-formfields) und meine Änderungen sind ungetestet.
Folgende Fehler können unter PHP 8.1 auftreten und müssen in folgenden Klassen folgendermaßen geändert werden:
In yds_visualformfields/CheckBoxVisual.php - Zeile 54
von:
PHP-Code:
$strImage = VisualFormFields::createImage('mod_visual_formfields_img', $this, $this->singleSRC, $this->strLabel, $this->strLabel);
zu:
PHP-Code:
$strImage = (new VisualFormFields)->createImage('mod_visual_formfields_img', $this, $this->singleSRC, $this->strLabel, $this->strLabel);
___
In yds_visualformfields/ImageVisual.php - Zeile 54
von:
PHP-Code:
$strImage = VisualFormFields::createImage('mod_visual_formfields_img', $this, $this->singleSRC, $this->strLabel, $this->strLabel);
zu:
PHP-Code:
$strImage = (new VisualFormFields)->createImage('mod_visual_formfields_img', $this, $this->singleSRC, $this->alt, $this->title);
___
In yds_visualformfields/RadioVisual.php - Zeile 55
von:
PHP-Code:
$strImage = (new VisualFormFields)->createImage('mod_visual_formfields_img', $this, $this->singleSRC, $this->strLabel, $this->strLabel);
zu:
PHP-Code:
$strImage = (new VisualFormFields)->createImage('mod_visual_formfields_img', $this, $this->singleSRC, $this->strLabel, $this->strLabel);
Eine Weitere Info: Das Plugin ist nicht auf GitHub und wird mit Contao 5.0 definitiv nicht funktionieren.
Diese Änderungen müssen erfolgen, damit die Errors nicht mehr auftreten (ungetestet)
___
Aufgrund keiner vorhandenen Lizenz müsste man diese Änderungen (als eigene Person) manuell durchführen.
Die Extension scheint auch veraltet zu sein, ein Update wird es demnach eventuell auch nicht geben.
Lesezeichen