Guite / MostGenerator

Transformation cartridges for generating Symfony bundles from ModuleStudio models.
https://modulestudio.de
23 stars 2 forks source link

ContextErrorException in MetaData.php line 203: #769

Closed robbrandt closed 8 years ago

robbrandt commented 8 years ago

Catchable Fatal Error: Argument 1 passed to Zikula\Bundle\CoreBundle\Bundle\MetaData::formatDependencies() must be of the type array, boolean given, called in /Users/robbrandt/Documents/htdocs/Conference/lib/Zikula/Bundle/CoreBundle/Bundle/MetaData.php on line 65 and defined

in MetaData.php line 203
at ErrorHandler->handleError('4096', 'Argument 1 passed to Zikula\Bundle\CoreBundle\Bundle\MetaData::formatDependencies() must be of the type array, boolean given, called in /Users/robbrandt/Documents/htdocs/Conference/lib/Zikula/Bundle/CoreBundle/Bundle/MetaData.php on line 65 and defined', '/Users/robbrandt/Documents/htdocs/Conference/lib/Zikula/Bundle/CoreBundle/Bundle/MetaData.php', '203', array()) in MetaData.php line 203
at MetaData->formatDependencies(false) in MetaData.php line 65
at MetaData->__construct(false) in AbstractBundle.php line 210
at AbstractBundle->getMetaData() in ZikulaPatternGenerationStrategy.php line 143
at ZikulaPatternGenerationStrategy->getModUrlString('BotanyorgConferenceModule') in ZikulaPatternGenerationStrategy.php line 89
at ZikulaPatternGenerationStrategy->generateI18nPatterns('botanyorgconferencemodule_address_adminindex', object(Route)) in I18nLoader.php line 59
at I18nLoader->load(object(RouteCollection)) in I18nRouter.php line 159
at I18nRouter->getRouteCollection() in RoutingDataCollector.php line 49
at RoutingDataCollector->collect(object(Zikula_Request_Http), object(Response), object(ContextErrorException)) in Profiler.php line 223
at Profiler->collect(object(Zikula_Request_Http), object(Response), object(ContextErrorException)) in ProfilerListener.php line 128
at ProfilerListener->onKernelResponse(object(FilterResponseEvent), 'kernel.response', object(TraceableEventDispatcher))
at call_user_func(array(object(ProfilerListener), 'onKernelResponse'), object(FilterResponseEvent), 'kernel.response', object(TraceableEventDispatcher)) in WrappedListener.php line 61
at WrappedListener->__invoke(object(FilterResponseEvent), 'kernel.response', object(Zikula_EventManager))
at call_user_func(object(WrappedListener), object(FilterResponseEvent), 'kernel.response', object(Zikula_EventManager)) in EventDispatcher.php line 184
at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.response', object(FilterResponseEvent)) in EventDispatcher.php line 46
at EventDispatcher->dispatch('kernel.response', object(FilterResponseEvent), null) in EventManager.php line 95
at Zikula_EventManager->dispatch('kernel.response', object(FilterResponseEvent)) in TraceableEventDispatcher.php line 140
at TraceableEventDispatcher->dispatch('kernel.response', object(FilterResponseEvent)) in HttpKernel.php line 184
at HttpKernel->filterResponse(object(Response), object(Zikula_Request_Http), '2') in HttpKernel.php line 166
at HttpKernel->handleRaw(object(Zikula_Request_Http), '2') in HttpKernel.php line 64
at HttpKernel->handle(object(Zikula_Request_Http), '2', false) in ContainerAwareHttpKernel.php line 69
at ContainerAwareHttpKernel->handle(object(Zikula_Request_Http), '2', false) in ExceptionListener.php line 50
at ExceptionListener->onKernelException(object(GetResponseForExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
at call_user_func(array(object(ExceptionListener), 'onKernelException'), object(GetResponseForExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher)) in WrappedListener.php line 61
at WrappedListener->__invoke(object(GetResponseForExceptionEvent), 'kernel.exception', object(Zikula_EventManager))
at call_user_func(object(WrappedListener), object(GetResponseForExceptionEvent), 'kernel.exception', object(Zikula_EventManager)) in EventDispatcher.php line 184
at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(GetResponseForExceptionEvent)) in EventDispatcher.php line 46
at EventDispatcher->dispatch('kernel.exception', object(GetResponseForExceptionEvent), null) in EventManager.php line 95
at Zikula_EventManager->dispatch('kernel.exception', object(GetResponseForExceptionEvent)) in TraceableEventDispatcher.php line 140
at TraceableEventDispatcher->dispatch('kernel.exception', object(GetResponseForExceptionEvent)) in HttpKernel.php line 221
at HttpKernel->handleException(object(ContextErrorException), object(Zikula_Request_Http), '1') in HttpKernel.php line 75
at HttpKernel->handle(object(Zikula_Request_Http), '1', true) in ContainerAwareHttpKernel.php line 69
at ContainerAwareHttpKernel->handle(object(Zikula_Request_Http), '1', true) in Kernel.php line 193
at Kernel->handle(object(Zikula_Request_Http)) in index.php line 23
Guite commented 8 years ago

Please paste the content of composer.json and zikula.manifest.json.

robbrandt commented 8 years ago

composer.json:

{
    "name": "botanyorg/conference-module",
    "version": "1.0.0",
    "description": "BotanyorgConferenceModule module generated by ModuleStudio 0.7.0.",
    "type": "zikula-module",
    "license": "LGPL-3.0+",
    "authors": [
        {
            "name": "Rob Brandt",
            "email": "rbrandt@botany.org",
            "homepage": "http://botany.org",
            "role": "owner"
        }
    ],
    "autoload": {
        "psr-4": { "Botanyorg\\ConferenceModule\\": "" }
    },
    "require": {
        "php": ">=5.4.1"
    },
    "suggest": {
    },
    "extra": {
        "zikula": {
            "core-compatibility": "~1.4.3",
            "class": "Botanyorg\\ConferenceModule\\BotanyorgConferenceModule",
            "displayname": "Conference",
            "url": "conference",
            "capabilities": {
                "user": {"route": "botanyorgconferencemodule_user_index"},
                "admin": {"route": "botanyorgconferencemodule_admin_index"},
                "searchable": {"class": "Botanyorg\\ConferenceModule\\Helper\\SearchHelper"},
                , "hook_subscriber": {"class": "Botanyorg\\ConferenceModule\\Container\\HookContainer"}
            },
            "securityschema": {
                "BotanyorgConferenceModule::": "::",
                "BotanyorgConferenceModule:ItemListBlock:": "Block title::",
                "BotanyorgConferenceModule:ModerationBlock:": "Block title::",
                "BotanyorgConferenceModule:Event:": "Event ID::",
                "BotanyorgConferenceModule:Eventitem:Event": "Eventitem ID:Event ID:",
                "BotanyorgConferenceModule:Location:Event": "Location ID:Event ID:",
                "BotanyorgConferenceModule:Eventitem:": "Eventitem ID::",
                "BotanyorgConferenceModule:Presentation:Eventitem": "Presentation ID:Eventitem ID:",
                "BotanyorgConferenceModule:Topic:": "Topic ID::",
                "BotanyorgConferenceModule:Event:Topic": "Event ID:Topic ID:",
                "BotanyorgConferenceModule:Author:": "Author ID::",
                "BotanyorgConferenceModule:Eventitem:Author": "Eventitem ID:Author ID:",
                "BotanyorgConferenceModule:Address:Author": "Address ID:Author ID:",
                "BotanyorgConferenceModule:Address:": "Address ID::",
                "BotanyorgConferenceModule:Eventitem:Address": "Eventitem ID:Address ID:",
                "BotanyorgConferenceModule:Organization:": "Organization ID::",
                "BotanyorgConferenceModule:Address:Organization": "Address ID:Organization ID:",
                "BotanyorgConferenceModule:Society:": "Society ID::",
                "BotanyorgConferenceModule:Topic:Society": "Topic ID:Society ID:",
                "BotanyorgConferenceModule:Keyword:": "Keyword ID::",
                "BotanyorgConferenceModule:Eventitem:Keyword": "Eventitem ID:Keyword ID:",
                "BotanyorgConferenceModule:Location:": "Location ID::",
                "BotanyorgConferenceModule:Area:Location": "Area ID:Location ID:",
                "BotanyorgConferenceModule:Area:": "Area ID::",
                "BotanyorgConferenceModule:Presentation:": "Presentation ID::",
                "BotanyorgConferenceModule:Weblink:": "Weblink ID::",
                "BotanyorgConferenceModule:Eventitem:Weblink": "Eventitem ID:Weblink ID:",
                "BotanyorgConferenceModule:Award:": "Award ID::",
                "BotanyorgConferenceModule:Society:Award": "Society ID:Award ID:",
                "BotanyorgConferenceModule:Eventitem:Award": "Eventitem ID:Award ID:",
                "BotanyorgConferenceModule::Ajax": "::"
            }
        }
    }
}
robbrandt commented 8 years ago

zikula.manifest.json

{
    "vendor": {
        "title": "Botanyorg",
        "url": "http://botany.org",
        "logo": ""
    },
    "extension": {
        "name": "Conference",
        "url": "http://botany.org",
        "icon": ""
    },
    "version": {
        "semver": "1.0.0",
        "compatibility": ">=1.4.1 <2.0",
        "composerpath": "composer.json",
        "description": "BotanyorgConferenceModule module generated by ModuleStudio 0.7.0.",
        "keywords": [
        ]
    },
    "urls": {
        "version": "",
        "docs": "",
        "demo": "",
        "download": "",
        "issues": ""
    },
    "dependencies": [
    ]
}
Guite commented 8 years ago

Did you see there is still the double comma present in the composer file?

                "searchable": {"class": "Botanyorg\\ConferenceModule\\Helper\\SearchHelper"},
                , "hook_subscriber": {"class": "Botanyorg\\ConferenceModule\\Container\\HookContainer"}

By accident?

robbrandt commented 8 years ago

Indeed! I was sure I reapplied all the previous fixes after my last generate, but I guess I missed this one.