Hallo Zusammen,
Ich habe eine Fehlermeldung, um die ich einfach nicht drum rum komme. Wenn ich im Backend das von mir erstellte Metamodel "Leistungen" öffne, erhalte ich folgende Meldung:
Code:
Fatal error: Uncaught exception Exception with message Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*Bochum*) AND att_id = '6'' at line 3 (SELECT item_id as id FROM tl_metamodel_tag_relation WHERE value_id IN (*Bochum*) AND att_id = '6') thrown in system/modules/core/library/Contao/Database/Statement.php on line 295
#0 system/modules/core/library/Contao/Database/Statement.php(264): Contao\Database\Statement->query()
#1 system/modules/metamodelsattribute_tags/classes/src/MetaModels/Filter/Rules/FilterRuleTags.php(180): Contao\Database\Statement->execute('6')
#2 system/modules/metamodelsattribute_tags/classes/src/MetaModels/Attribute/Tags/AbstractTags.php(296): MetaModels\Filter\Rules\FilterRuleTags->getMatchingIds()
#3 system/modules/metamodels/classes/src/MetaModels/Filter/Rules/SearchAttribute.php(80): MetaModels\Attribute\Tags\AbstractTags->searchFor('*Bochum*')
#4 system/modules/metamodels/classes/src/MetaModels/Filter/Filter.php(116): MetaModels\Filter\Rules\SearchAttribute->getMatchingIds()
#5 system/modules/metamodels/classes/src/MetaModels/Filter/Rules/Condition/ConditionAnd.php(61): MetaModels\Filter\Filter->getMatchingIds()
#6 system/modules/metamodels/classes/src/MetaModels/Filter/Filter.php(116): MetaModels\Filter\Rules\Condition\ConditionAnd->getMatchingIds()
#7 system/modules/metamodels/classes/src/MetaModels/MetaModel.php(251): MetaModels\Filter\Filter->getMatchingIds()
#8 system/modules/metamodels/classes/src/MetaModels/MetaModel.php(687): MetaModels\MetaModel->getMatchingIds(Object(MetaModels\Filter\Filter))
#9 system/modules/metamodels/classes/src/MetaModels/MetaModel.php(677): MetaModels\MetaModel->getIdsFromFilter(Object(MetaModels\Filter\Filter), 'sorting', 0, 0, 'ASC')
#10 system/modules/metamodels/classes/src/MetaModels/DcGeneral/Data/Driver.php(399): MetaModels\MetaModel->findByFilter(Object(MetaModels\Filter\Filter), 'sorting', 0, 0, 'ASC', Array)
#11 system/modules/metamodels/classes/src/MetaModels/DcGeneral/Data/Driver.php(420): MetaModels\DcGeneral\Data\Driver->getItemsFromFilter(Object(MetaModels\Filter\Filter), Object(ContaoCommunityAlliance\DcGeneral\Data\DefaultConfig))
#12 system/modules/dc-general/classes/src/ContaoCommunityAlliance/DcGeneral/Controller/TreeCollector.php(382): MetaModels\DcGeneral\Data\Driver->fetchAll(Object(ContaoCommunityAlliance\DcGeneral\Data\DefaultConfig))
#13 system/modules/dc-general/classes/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/TreeView.php(170): ContaoCommunityAlliance\DcGeneral\Controller\TreeCollector->getChildrenOf('mm_leistungen', 0, NULL)
#14 system/modules/dc-general/classes/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/TreeView.php(578): ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\TreeView->loadCollection()
#15 [internal function]: ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\TreeView->showAll(Object(ContaoCommunityAlliance\DcGeneral\Action))
#16 system/modules/dc-general/classes/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/BaseView.php(149): call_user_func_array(Array, Array)
#17 [internal function]: ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\BaseView->handleAction(Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#18 system/modules/symfony-event-dispatcher/classes/EventDispatcher.php(181): call_user_func(Array, Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent), 'dc-general.acti...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#19 system/modules/symfony-event-dispatcher/classes/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#20 system/modules/dc-general/classes/src/ContaoCommunityAlliance/DcGeneral/Controller/DefaultController.php(131): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('dc-general.acti...', Object(ContaoCommunityAlliance\DcGeneral\Event\ActionEvent))
#21 system/modules/metamodels/classes/src/MetaModels/BackendIntegration/Module.php(74): ContaoCommunityAlliance\DcGeneral\Controller\DefaultController->handle(Object(ContaoCommunityAlliance\DcGeneral\Action))
#22 system/modules/core/classes/Backend.php(423): MetaModels\BackendIntegration\Module->generate()
#23 system/modules/core/controllers/BackendMain.php(131): Contao\Backend->getBackendModule('metamodel_mm_le...')
#24 contao/main.php(20): Contao\BackendMain->run()
#25 {main}
Zuletzt wurde auch nichts weder an der Datenbank noch am Metamodel verändert.
Es gibt einen ähnlichen Thread (https://community.contao.org/de/show...-von-Metamodel), hier wird der Fehler jedoch behoben, in dem der letzte bzw. fehlerhafte/leere Datensatz in der Datenbank gelöscht wird. Dergleichen existiert jedoch in meinem Fall nicht. Wisst ihr hier weiter?
Vielen Dank schonmal!
Grüße,
Raphael