terminal42 / contao-notification_center

The most popular notification configuration extension for the Contao Open Source CMS!
64 stars 38 forks source link

Undefined Array Key Warning in Version 1.6.5 #295

Closed ThomasKettner closed 11 months ago

ThomasKettner commented 11 months ago

We receive an error when editing notifications in version 1.6.5. Update to 1.7 is not an option due to other incompatibilities with haste 5.

https://github.com/inspiredminds/contao-event-registration/issues/21#issuecomment-1845316233

Contao 4.13./PHP 8.1

ErrorException: Warning: Undefined array key "tl_nc_language"

at vendor/terminal42/notification_center/classes/tl_nc_language.php:72 at NotificationCenter\tl_nc_language->generateWizardList() (vendor/terminal42/dcawizard/src/Widget/DcaWizard.php:183) at Terminal42\DcawizardBundle\Widget\DcaWizard->generate() (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Widget.php:661) at Contao\Widget->generateWithError() (vendor/contao/core-bundle/src/Resources/contao/templates/backend/be_widget.html5:3) at include('/.../c413clean/vendor/contao/core-bundle/src/Resources/contao/templates/backend/be_widget.html5') (vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateInheritance.php:108) at Contao\Widget->inherit() (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Widget.php:608) at Contao\Widget->parse() (vendor/contao/core-bundle/src/Resources/contao/classes/DataContainer.php:796) at Contao\DataContainer->row() (vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:1979) at Contao\DC_Table->edit() (vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:667) at Contao\Backend->getBackendModule() (vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:168) at Contao\BackendMain->run() (vendor/contao/core-bundle/src/Controller/BackendController.php:49) at Contao\CoreBundle\Controller\BackendController->mainAction() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (web/index.php:44)

planepix commented 11 months ago

Same here. Contao 4.13.36, PHP 8.1, Hosting allinkl.

Error message as mentioned above, direct by clicking in the backend the error is: Call to a member function next() on array

bildschirmartist commented 11 months ago

Hello everyone, I can confirm the problem. It is related to the changed implementation of the dcaWizard version 3.0.0 (https://github.com/terminal42/contao-dcawizard). As a workaround you can set the version in composer.json to e.g. 2.7.4.:

"require": {
    [...]
    "terminal42/dcawizard": "2.7.4"
}
aschempp commented 11 months ago

fixed in 5d2dee1c0b759f60fa265be693107e28ab81d292