Hallo zusammen,
wir erstellen gerade für einen Kunden ein Newsportal, bei dem spezielle News auch per Newsletter verschickt werden sollen.
Beim Einbinden von News in einen Newsletter erhalten wir folgende Warnings und es werden keine News angezeigt oder verschickt:
Code:
Warning: Illegal offset type in isset or empty in system/modules/core/library/Contao/Model/Registry.php on line 107
#0 system/modules/core/library/Contao/Model/Registry.php(107): __error(2, 'Illegal offset ...', '/var/www/vhosts...', 107, Array)
#1 system/modules/core/library/Contao/Model.php(775): Contao\Model\Registry->fetch('tl_news', Array)
#2 composer/vendor/avisota/contao-message/src/Renderer/MessageRenderer.php(188): Contao\Model::findByPk(Array)
#3 composer/vendor/avisota/contao-message/src/Renderer/MessageRenderer.php(156): Avisota\Contao\Message\Core\Renderer\MessageRenderer->handleMessageContent(Object(Avisota\Contao\Entity\MessageContent))
#4 composer/vendor/avisota/contao-message/src/Renderer/MessageRenderer.php(120): Avisota\Contao\Message\Core\Renderer\MessageRenderer->findMessageContentCustomTemplates(Object(Avisota\Contao\Entity\MessageContent))
#5 composer/vendor/avisota/contao-message/src/DataContainer/MessageContent.php(157): Avisota\Contao\Message\Core\Renderer\MessageRenderer->renderContent(Object(Avisota\Contao\Entity\MessageContent))
#6 [internal function]: Avisota\Contao\Message\Core\DataContainer\MessageContent->parentViewChildRecord(Object(ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ParentViewChildRecordEvent), 'dc-general.view...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#7 composer/vendor/symfony/event-dispatcher/EventDispatcher.php(184): call_user_func(Array, Object(ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ParentViewChildRecordEvent), 'dc-general.view...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#8 composer/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'dc-general.view...', Object(ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ParentViewChildRecordEvent))
#9 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/ParentView.php(181): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.view...', Object(ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Event\ParentViewChildRecordEvent))
#10 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/ParentView.php(567): ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ParentView->renderEntries(Object(ContaoCommunityAlliance\DcGeneral\Data\DefaultCollection), Array)
#11 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/ParentView.php(611): ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ParentView->viewParent(Object(ContaoCommunityAlliance\DcGeneral\Data\DefaultCollection), Object(Contao\Doctrine\ORM\DataContainer\General\EntityModel))
#12 [internal function]: ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\ParentView->showAll(Object(ContaoCommunityAlliance\DcGeneral\Action))
#13 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/BaseView.php(142): call_user_func_array(Array, Array)
#14 [internal function]: ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BaseView->handleAction(Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#15 composer/vendor/symfony/event-dispatcher/EventDispatcher.php(184): call_user_func(Array, Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#16 composer/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#17 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/Controller/DefaultController.php(131): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#18 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/DC/General.php(285): ContaoCommunityAlliance\DcGeneral\Controller\DefaultController->handle(Object(ContaoCommunityAlliance\DcGeneral\Action))
#19 composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/DC/General.php(381): ContaoCommunityAlliance\DcGeneral\DC_General->callAction()
#20 system/modules/core/classes/Backend.php(650): ContaoCommunityAlliance\DcGeneral\DC_General->showAll()
#21 system/modules/core/controllers/BackendMain.php(131): Contao\Backend->getBackendModule('avisota_newslet...')
#22 contao/main.php(20): Contao\BackendMain->run()
#23 {main}
Was machen wir falsch?
Contao 3.5.27
PHP 5.6.30
Avisota 3.2.0
Gruß Andy
Kleines Update:
Es werden News angezeigt (wenn das richtige Templates ausgewählt wurde) und es werden auch Newsletter verschickt (wenn die Mailkonfiguration stimmt)
Sobald Fehlermeldungen anzeigen ausgeschaltet ist, werden auch keine lästigen Warnings angezeigt.
Gruß Andy
Lesezeichen