{"action":"created","issue":{"url":"https://api.github.com/repos/MetaModels/core/issues/836","labels_url":"https://api.github.com/repos/MetaModels/core/issues/836/labels{/name}","comments_url":"https://api.github.com/repos/MetaModels/core/issues/836/comments","events_url":"https://api.github.com/repos/MetaModels/core/issues/836/events","html_url":"https://github.com/MetaModels/core/issues/836","id":94657073,"number":836,"title":"Recoverable error: Argument 2 passed to Symfony\\Component\\EventDispatcher\\EventDispatcher::dispatch() must be an instance of Symfony\\Component\\EventDispatcher\\Event","user":{"login":"Hauge","id":1571133,"avatar_url":"https://avatars.githubusercontent.com/u/1571133?v=3","gravatar_id":"","url":"https://api.github.com/users/Hauge","html_url":"https://github.com/Hauge","followers_url":"https://api.github.com/users/Hauge/followers","following_url":"https://api.github.com/users/Hauge/following{/other_user}","gists_url":"https://api.github.com/users/Hauge/gists{/gist_id}","starred_url":"https://api.github.com/users/Hauge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hauge/subscriptions","organizations_url":"https://api.github.com/users/Hauge/orgs","repos_url":"https://api.github.com/users/Hauge/repos","events_url":"https://api.github.com/users/Hauge/events{/privacy}","received_events_url":"https://api.github.com/users/Hauge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-13T07:27:36Z","updated_at":"2015-07-13T08:08:55Z","closed_at":null,"body":"System: Contao 3.4.4\r\nnightly:\r\n```\r\nName                                             Version              Last modification\r\n=========================================================================================\r\nhttp://c-c-a.org/\r\ncontao-community-alliance/dc-general             dev-develop @ e432a9 2015-07-08 19:03:39\r\ncontao-community-alliance/dependency-container   dev-develop @ 5f35ec 2015-07-07 21:25:05\r\ncontao-community-alliance/event-dispatcher       dev-develop @ d2da54 2014-11-28 14:49:59\r\ncontao-community-alliance/events-contao-bindings dev-master @ 18772d  2015-07-11 09:31:43\r\ncontao-community-alliance/translator             dev-master @ 70f446  2015-07-01 15:29:54\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttp://bit3.de\r\ncontao-community-alliance/meta-palettes          dev-develop @ 922eb3 2015-01-26 17:45:44\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttps://www.cyberspectrum.de\r\ndiscordier/justtextwidgets                       0.5.4                2014-02-05 22:52:54\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttp://www.doctrine-project.org\r\ndoctrine/cache                                   dev-master @ e7b77e  2015-06-29 15:03:18\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttp://leafo.net/scssphp/\r\nleafo/scssphp                                    v0.1.7               2015-07-02 01:33:11\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttp://www.leo-unglaub.net\r\nleounglaub/contao-simple-ajax                    1.0.2                2014-02-07 22:35:55\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttp://www.men-at-work.de\r\nmenatwork/contao-multicolumnwizard               dev-dev @ 875720     2015-05-18 09:39:00\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttp://now.metamodel.me/\r\nmetamodels/attribute_alias                       dev-master @ 39da09  2015-07-11 00:15:53\r\nmetamodels/attribute_checkbox                    dev-master @ a4c575  2015-07-11 06:00:49\r\nmetamodels/attribute_combinedvalues              dev-master @ 6c2b4e  2015-07-11 00:20:19\r\nmetamodels/attribute_country                     dev-master @ f5aab4  2015-07-11 00:20:56\r\nmetamodels/attribute_decimal                     dev-master @ 9bf9cf  2015-07-11 00:21:48\r\nmetamodels/attribute_file                        dev-tng @ 6b5842     2015-07-06 17:39:25\r\nmetamodels/attribute_langcode                    dev-master @ 49b6db  2015-07-11 00:22:34\r\nmetamodels/attribute_longtext                    dev-master @ 19a66b  2015-07-11 05:52:14\r\nmetamodels/attribute_numeric                     dev-master @ 7de2be  2015-07-11 00:39:31\r\nmetamodels/attribute_rating                      dev-master @ 1c525a  2015-07-11 06:03:09\r\nmetamodels/attribute_select                      dev-master @ 9f1151  2015-07-11 06:12:45\r\nmetamodels/attribute_tabletext                   dev-master @ e8ce98  2015-07-11 01:07:52\r\nmetamodels/attribute_tags                        dev-master @ 4be245  2015-07-11 06:01:35\r\nmetamodels/attribute_text                        dev-master @ ddab6c  2015-07-11 01:24:14\r\nmetamodels/attribute_timestamp                   dev-master @ 198665  2015-07-11 02:17:11\r\nmetamodels/attribute_translatedalias             dev-master @ fd3f28  2015-07-11 01:41:27\r\nmetamodels/attribute_translatedcheckbox          dev-master @ 63bfd0  2015-07-11 06:03:30\r\nmetamodels/attribute_translatedcombinedvalues    dev-master @ 9a6186  2015-07-11 02:00:38\r\nmetamodels/attribute_translatedfile              dev-master @ 02133c  2015-07-11 02:08:25\r\nmetamodels/attribute_translatedlongtext          dev-master @ 3f103e  2015-07-11 02:22:38\r\nmetamodels/attribute_translatedselect            dev-tng @ 34d102     2015-07-09 20:25:23\r\nmetamodels/attribute_translatedtabletext         dev-master @ f602ca  2015-07-11 10:56:19\r\nmetamodels/attribute_translatedtags              dev-master @ 1e2765  2015-07-11 02:41:54\r\nmetamodels/attribute_translatedtext              dev-master @ a69c0b  2015-07-11 02:52:04\r\nmetamodels/attribute_url                         dev-master @ 9da51a  2015-07-11 03:12:36\r\nmetamodels/bundle_all                            dev-master @ f58927  2013-10-01 20:03:31\r\nmetamodels/bundle_attributes                     dev-master @ 058e26  2014-02-03 14:19:34\r\nmetamodels/bundle_filter                         dev-master @ 45d9cf  2013-05-03 07:16:44\r\nmetamodels/bundle_nontranslated                  dev-master @ 5f2b3f  2014-02-17 14:37:26\r\nmetamodels/bundle_translated                     dev-master @ 4bc0c1  2014-02-17 14:34:39\r\nmetamodels/core                                  dev-tng @ cc6c80     2015-07-11 07:47:58\r\nmetamodels/filter_checkbox                       dev-master @ 448ca6  2015-07-11 03:21:41\r\nmetamodels/filter_fromto                         dev-master @ 91fcdd  2015-07-11 06:02:21\r\nmetamodels/filter_range                          dev-master @ d6015e  2015-07-11 06:02:28\r\nmetamodels/filter_select                         dev-master @ 29a063  2015-07-11 05:27:05\r\nmetamodels/filter_tags                           dev-master @ 45a13e  2015-07-11 05:36:07\r\nmetamodels/filter_text                           dev-master @ 6b6322  2015-07-11 05:50:19\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttps://michelf.ca/projects/php-markdown/\r\nmichelf/php-markdown                             1.5.0                2015-03-01 12:03:08\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttp://lessphp.gpeasy.com\r\noyejorge/less.php                                1.7.x-dev @ 8f77f1   2014-03-04 18:49:54\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttp://pimple.sensiolabs.org\r\npimple/pimple                                    1.1.x-dev @ bc2fc1   2014-04-20 07:24:09\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttp://simplepie.org/\r\nsimplepie/simplepie                              1.3.1                2012-10-30 17:54:03\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttp://swiftmailer.org\r\nswiftmailer/swiftmailer                          5.x-dev @ 0a6e90     2015-06-28 17:20:48\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttps://symfony.com\r\nsymfony/event-dispatcher                         2.8.x-dev @ d72468   2015-06-24 15:32:32\r\nsymfony/expression-language                      2.8.x-dev @ eccfd6   2015-05-12 15:16:46\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttp://www.tcpdf.org/\r\ntecnick.com/tcpdf                                6.2.9                2015-06-18 09:12:38\r\n-----------------------------------------------------------------------------------------\r\n\r\nhttps://github.com/true/php-punycode\r\ntrue/punycode                                    1.1.0                2015-03-12 16:49:35\r\n-----------------------------------------------------------------------------------------\r\n\r\nother\r\ncontao-community-alliance/url-builder            dev-develop @ 5f8997 2014-09-20 03:38:06\r\ncontao-components/compass                        0.12.2               2014-11-18 08:30:16\r\nphpspec/php-diff                                 v1.0.2               2013-11-01 13:02:21\r\n\r\n\r\n```\r\nFehler beim Click auf das Metamodel:\r\n```\r\n\r\nRecoverable error: Argument 2 passed to Symfony\\Component\\EventDispatcher\\EventDispatcher::dispatch() must be an instance of Symfony\\Component\\EventDispatcher\\Event, instance of MetaModels\\Events\\ParseItemEvent given, called in /home/www/bb-waldeck-2015-07-09/system/modules/metamodels/classes/src/MetaModels/Item.php on line 390 and defined in system/modules/symfony-event-dispatcher/classes/EventDispatcher.php on line 40\r\n\r\n#0 system/modules/symfony-event-dispatcher/classes/EventDispatcher.php(40): __error(4096, 'Argument 2 pass...', '/home/www/bb-wa...', 40, Array)\r\n#1 system/modules/metamodels/classes/src/MetaModels/Item.php(390): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch('metamodels.pars...', Object(MetaModels\\Events\\ParseItemEvent))\r\n#2 system/modules/metamodels/classes/src/MetaModels/DcGeneral/Events/MetaModel/RenderItem.php(105): MetaModels\\Item->parseValue('html5', Object(MetaModels\\Render\\Setting\\Collection))\r\n#3 [internal function]: MetaModels\\DcGeneral\\Events\\MetaModel\\RenderItem::render(Object(ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\Event\\ModelToLabelEvent), 'dc-general.view...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\r\n#4 system/modules/symfony-event-dispatcher/classes/EventDispatcher.php(168): call_user_func(Array, Object(ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\Event\\ModelToLabelEvent), 'dc-general.view...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\r\n#5 system/modules/symfony-event-dispatcher/classes/EventDispatcher.php(53): Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch(Array, 'dc-general.view...', Object(ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\Event\\ModelToLabelEvent))\r\n#6 system/modules/dc-general/classes/src/ContaoCommunityAlliance/DcGeneral/Contao/Subscriber/FormatModelLabelSubscriber.php(87): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch('dc-general.view...', Object(ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\Event\\ModelToLabelEvent))\r\n#7 [internal function]: ContaoCommunityAlliance\\DcGeneral\\Contao\\Subscriber\\FormatModelLabelSubscriber->handleFormatModelLabel(Object(ContaoCommunityAlliance\\DcGeneral\\Event\\FormatModelLabelEvent), 'dc-general.mode...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\r\n#8 system/modules/symfony-event-dispatcher/classes/EventDispatcher.php(168): call_user_func(Array, Object(ContaoCommunityAlliance\\DcGeneral\\Event\\FormatModelLabelEvent), 'dc-general.mode...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\r\n#9 system/modules/symfony-event-dispatcher/classes/EventDispatcher.php(53): Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch(Array, 'dc-general.mode...', Object(ContaoCommunityAlliance\\DcGeneral\\Event\\FormatModelLabelEvent))\r\n#10 system/modules/dc-general/classes/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/TreeView.php(253): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch('dc-general.mode...', Object(ContaoCommunityAlliance\\DcGeneral\\Event\\FormatModelLabelEvent))\r\n#11 system/modules/dc-general/classes/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/TreeView.php(317): ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\TreeView->parseModel(Object(MetaModels\\DcGeneral\\Data\\Model), 'mm_tagespost_tr...')\r\n#12 system/modules/dc-general/classes/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/TreeView.php(474): ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\TreeView->generateTreeView(Object(ContaoCommunityAlliance\\DcGeneral\\Data\\DefaultCollection), 'tree_xtnd')\r\n#13 system/modules/dc-general/classes/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/TreeView.php(582): ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\TreeView->viewTree(Object(ContaoCommunityAlliance\\DcGeneral\\Data\\DefaultCollection))\r\n#14 [internal function]: ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\TreeView->showAll(Object(ContaoCommunityAlliance\\DcGeneral\\Action))\r\n#15 system/modules/dc-general/classes/src/ContaoCommunityAlliance/DcGeneral/Contao/View/Contao2BackendView/BaseView.php(145): call_user_func_array(Array, Array)\r\n#16 [internal function]: ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\BaseView->handleAction(Object(ContaoCommunityAlliance\\DcGeneral\\Event\\ActionEvent), 'dc-general.acti...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\r\n#17 system/modules/symfony-event-dispatcher/classes/EventDispatcher.php(168): call_user_func(Array, Object(ContaoCommunityAlliance\\DcGeneral\\Event\\ActionEvent), 'dc-general.acti...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\r\n#18 system/modules/symfony-event-dispatcher/classes/EventDispatcher.php(53): Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch(Array, 'dc-general.acti...', Object(ContaoCommunityAlliance\\DcGeneral\\Event\\ActionEvent))\r\n#19 system/modules/dc-general/classes/src/ContaoCommunityAlliance/DcGeneral/Controller/DefaultController.php(121): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch('dc-general.acti...', Object(ContaoCommunityAlliance\\DcGeneral\\Event\\ActionEvent))\r\n#20 system/modules/metamodels/classes/src/MetaModels/BackendIntegration/Module.php(77): ContaoCommunityAlliance\\DcGeneral\\Controller\\DefaultController->handle(Object(ContaoCommunityAlliance\\DcGeneral\\Action))\r\n#21 system/modules/core/classes/Backend.php(406): MetaModels\\BackendIntegration\\Module->generate()\r\n#22 system/modules/core/controllers/BackendMain.php(126): Contao\\Backend->getBackendModule('metamodel_mm_ta...')\r\n#23 contao/main.php(20): Contao\\BackendMain->run()\r\n#24 {main}\r\n\r\n\r\nFatal error: Call to undefined method MetaModels\\Events\\ParseItemEvent::setDispatcher() in /home/www/der-totale-ordner/system/modules/symfony-event-dispatcher/classes/EventDispatcher.php on line 46\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/MetaModels/core/issues/comments/120844239","html_url":"https://github.com/MetaModels/core/issues/836#issuecomment-120844239","issue_url":"https://api.github.com/repos/MetaModels/core/issues/836","id":120844239,"user":{"login":"psren","id":1016798,"avatar_url":"https://avatars.githubusercontent.com/u/1016798?v=3","gravatar_id":"","url":"https://api.github.com/users/psren","html_url":"https://github.com/psren","followers_url":"https://api.github.com/users/psren/followers","following_url":"https://api.github.com/users/psren/following{/other_user}","gists_url":"https://api.github.com/users/psren/gists{/gist_id}","starred_url":"https://api.github.com/users/psren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psren/subscriptions","organizations_url":"https://api.github.com/users/psren/orgs","repos_url":"https://api.github.com/users/psren/repos","events_url":"https://api.github.com/users/psren/events{/privacy}","received_events_url":"https://api.github.com/users/psren/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T08:08:55Z","updated_at":"2015-07-13T08:08:55Z","body":"Kann ich bestätigen.\r\n\r\n```php\r\n// Trigger event to allow other extensions to manipulate the parsed data.\r\n$event = new ParseItemEvent($objSettings, $this, $strOutputFormat, $arrResult);\r\n$this->getMetaModel()->getServiceContainer()->getEventDispatcher()->dispatch(\r\n    MetaModelsEvents::PARSE_ITEM,\r\n    $event\r\n);\r\n```\r\n\r\nParseItemEvent ist einfach kein Symfony\\Component\\EventDispatcher\\Event"}}