Hmm... dabei bemühe ich mich immer meine Frage verständlich zu stellen.
Ich versuche es einfach nocheinmal:
***********************************************
Contao 3.5.27
metamodels/bundle_all 2.0.0
metamodels/core 2.0.x.dev
contao-community-alliance/dc-general-contao-frontend dev-master
contao-community-alliance/dc-general 2.0.0-beta40
***********************************************
Ich habe ein MM mit einem Textfeld-Attribut und einem Datei-Attribut.
In der Eingabemaske des FEE habe ich nur das Textfeld-Attribut definiert.
Trotzdem bekomme ich beim Aufruf der Seite mit dem FEE-Modul folgende Fehlermeldung.
Soweit ich ich die Fehlermeldung verstehe, bezieht sich diese auf das Attribut "bild_1".
Das Attribut "bild_1" ist ein Datei-Attribut.
PHP-Code:
[06-Nov-2017 14:12:57 Europe/Berlin] PHP Fatal error: Uncaught exception 'Error' with message 'Class name must be a valid object or a string' thrown in /html/contao/composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/View/DefaultWidgetBuilder.php on line 115
#0 /html/contao/composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/View/DefaultWidgetBuilder.php(51): ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\DefaultWidgetBuilder->buildWidget(Object(ContaoCommunityAlliance\DcGeneral\DefaultEnvironment), Object(ContaoCommunityAlliance\DcGeneral\DataDefinition\Definition\Properties\DefaultProperty), Object(MetaModels\DcGeneral\Data\Model))
#1 [internal function]: ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\DefaultWidgetBuilder->handleEvent(Object(ContaoCommunityAlliance\DcGeneral\ContaoFrontend\Event\BuildWidgetEvent), 'dc-general.cont...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#2 /html/contao/composer/vendor/symfony/event-dispatcher/EventDispatcher.php(184): call_user_func(Array, Object(ContaoCommunityAlliance\DcGeneral\ContaoFrontend\Event\BuildWidgetEvent), 'dc-general.cont...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#3 /html/contao/composer/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'dc-general.cont...', Object(ContaoCommunityAlliance\DcGeneral\ContaoFrontend\Event\BuildWidgetEvent))
#4 /html/contao/composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/View/WidgetManager.php(101): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.cont...', Object(ContaoCommunityAlliance\DcGeneral\ContaoFrontend\Event\BuildWidgetEvent))
#5 /html/contao/composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/View/WidgetManager.php(126): ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\WidgetManager->getWidget('bild_1', NULL)
#6 /html/contao/composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/View/EditMask.php(385): ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\WidgetManager->renderWidget('bild_1', false, NULL)
#7 /html/contao/composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/View/EditMask.php(179): ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\EditMask->buildFieldSet(Object(ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\WidgetManager), Object(ContaoCommunityAlliance\DcGeneral\DataDefinition\Palette\Palette), NULL)
#8 /html/contao/composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/View/ActionHandler/EditHandler.php(61): ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\EditMask->execute()
#9 /html/contao/composer/vendor/contao-community-alliance/dc-general/src/ContaoCommunityAlliance/DcGeneral/View/ActionHandler/AbstractHandler.php(54): ContaoCommunityAlliance\DcGeneral\ContaoFrontend\View\ActionHandler\EditHandler->process()
#10 /html/contao/system/modules/dc-general-contao-frontend/config/event_listeners.php(52): ContaoCommunityAlliance\DcGeneral\View\ActionHandler\AbstractHandler->handleEvent(Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#11 [internal function]: ContaoCommunityAlliance\Contao\EventDispatcher\EventDispatcherInitializer->{closure}(Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#12 /html/contao/composer/vendor/symfony/event-dispatcher/EventDispatcher.php(184): call_user_func(Object(Closure), Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#13 /html/contao/composer/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#14 /html/contao/composer/vendor/contao-community-alliance/dc-general-contao-frontend/src/FrontendEditor.php(78): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#15 /html/contao/composer/vendor/metamodels/contao-frontend-editing/src/FrontendEditHybrid.php(64): ContaoCommunityAlliance\DcGeneral\ContaoFrontend\FrontendEditor->editFor('mm_eintraege', 'create')
#16 /html/contao/system/modules/core/classes/Hybrid.php(239): MetaModels\Contao\FrontendEditing\FrontendEditHybrid->compile()
#17 /html/contao/composer/vendor/metamodels/core/src/MetaModels/FrontendIntegration/MetaModelHybrid.php(109): Contao\Hybrid->generate()
#18 /html/contao/system/modules/core/library/Contao/Controller.php(484): MetaModels\FrontendIntegration\MetaModelHybrid->generate()
#19 /html/contao/system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao\ContentModel), 'main')
#20 /html/contao/system/modules/core/modules/Module.php(287): Contao\ModuleArticle->compile()
#21 /html/contao/system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
#22 /html/contao/system/modules/core/library/Contao/Controller.php(417): Contao\ModuleArticle->generate(false)
#23 /html/contao/system/modules/core/library/Contao/Controller.php(277): Contao\Controller::getArticle(Object(Contao\ArticleModel), false, false, 'main')
#24 /html/contao/system/modules/core/pages/PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
#25 /html/contao/system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate(Object(Contao\PageModel), true)
#26 /html/contao/index.php(20): Contao\FrontendIndex->run()
#27 {main}
Gruß Bastian