Ich nutze php 8.1.10, habe con4gis erneut aktualisiert und wenn ich im Debug-Modus das Dashcenter aufrufen möchte bekomme ich folgende Meldung.
Code:
ErrorException:
Warning: Trying to access array offset on value of type bool
at G:\laragon\www\qizentrum\vendor\con4gis\core\src\Classes\Callback\C4gBrickCallback.php:422
at con4gis\CoreBundle\Classes\Callback\C4gBrickCallback->globalSettings('key=globalSettings', 'Einstellungen', 'Einstellungen', 'header_global_settings header_icon', ' style="background-image:url(\'bundles/con4giscore/images/be-icons/global_settings_16.svg\')"', 'tl_c4g_bricks', array())
(G:\laragon\www\qizentrum\vendor\contao\core-bundle\src\Resources\contao\classes\DataContainer.php:1103)
at Contao\DataContainer->generateGlobalButtons()
(G:\laragon\www\qizentrum\vendor\contao\core-bundle\src\Resources\contao\drivers\DC_Table.php:4977)
at Contao\DC_Table->listView()
(G:\laragon\www\qizentrum\vendor\contao\core-bundle\src\Resources\contao\drivers\DC_Table.php:313)
at Contao\DC_Table->showAll()
(G:\laragon\www\qizentrum\vendor\contao\core-bundle\src\Resources\contao\classes\Backend.php:667)
at Contao\Backend->getBackendModule('c4g_bricks', null)
(G:\laragon\www\qizentrum\vendor\contao\core-bundle\src\Resources\contao\controllers\BackendMain.php:168)
at Contao\BackendMain->run()
(G:\laragon\www\qizentrum\vendor\contao\core-bundle\src\Controller\BackendController.php:49)
at Contao\CoreBundle\Controller\BackendController->mainAction()
(G:\laragon\www\qizentrum\vendor\symfony\http-kernel\HttpKernel.php:163)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(G:\laragon\www\qizentrum\vendor\symfony\http-kernel\HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(G:\laragon\www\qizentrum\vendor\symfony\http-kernel\Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(G:\laragon\www\qizentrum\web\index.php:44)
Code:
*/
public function globalSettings($href, $label, $title, $class, $attributes)
{
$rt = Input::get('rt');
$result = Database::getInstance()->execute("SELECT id FROM tl_c4g_settings LIMIT 1")->fetchAssoc();
$href = '/contao?do=c4g_settings&id="' . $result['id'].'"&rt='.$rt.'&key=openSettings';
return $this->User->hasAccess('c4g_settings', 'modules') ? '<a href="' . $href . '" class="' . $class . '" title="' . StringUtil::specialchars($title) . '"' . $attributes . '>' . $label . '</a> ' : Image::getHtml(preg_replace('/\.svg$/i', '_.svg', $icon)) . ' ';
}
/**
* switchInstalled
Ich hoffe, ich muss nicht auf diese Erweiterung verzichten...