Skip to content

Instantly share code, notes, and snippets.

@harikt
Created March 1, 2014 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harikt/9291323 to your computer and use it in GitHub Desktop.
Save harikt/9291323 to your computer and use it in GitHub Desktop.
apigility error on update
Zend\Mvc\Router\Exception\RuntimeException
File:
/var/www/apigility/vendor/zendframework/zendframework/library/Zend/Mvc/Router/Http/TreeRouteStack.php:317
Message:
Route with name "zf-apigility-welcome" not found
Stack trace:
#0 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Plugin/Url.php(99): Zend\Mvc\Router\Http\TreeRouteStack->assemble(Array, Array)
#1 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Plugin/Redirect.php(48): Zend\Mvc\Controller\Plugin\Url->fromRoute('zf-apigility-we...', Array, Array, false)
#2 /var/www/apigility/module/Application/src/Application/Controller/IndexController.php(16): Zend\Mvc\Controller\Plugin\Redirect->toRoute('zf-apigility-we...')
#3 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractActionController.php(83): Application\Controller\IndexController->indexAction()
#4 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#5 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#6 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#7 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractController.php(117): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#8 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/Mvc/DispatchListener.php(114): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#9 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#10 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#11 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(310): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 /var/www/apigility/public/index.php(39): Zend\Mvc\Application->run()
#14 {main}
@harikt
Copy link
Author

harikt commented Mar 1, 2014

/var/www/apigility/vendor/zendframework/zendframework/library/Zend/Mvc/Router/Http/TreeRouteStack.php:317

Message:

Route with name "swagger" not found

Stack trace:

#0 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/Mvc/Router/Http/Part.php(202): Zend\Mvc\Router\Http\TreeRouteStack->assemble(Array, Array)
#1 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/Mvc/Router/Http/TreeRouteStack.php(351): Zend\Mvc\Router\Http\Part->assemble(Array, Array)
#2 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/View/Helper/Url.php(100): Zend\Mvc\Router\Http\TreeRouteStack->assemble(Array, Array)
#3 [internal function]: Zend\View\Helper\Url->__invoke('zf-apigility/sw...')
#4 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php(399): call_user_func_array(Object(Zend\View\Helper\Url), Array)
#5 /var/www/apigility/vendor/zfcampus/zf-apigility-welcome/view/zf-apigility-welcome/welcome.phtml(43): Zend\View\Renderer\PhpRenderer->__call('url', Array)
#6 /var/www/apigility/vendor/zfcampus/zf-apigility-welcome/view/zf-apigility-welcome/welcome.phtml(43): Zend\View\Renderer\PhpRenderer->url('zf-apigility/sw...')
#7 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php(506): include('/var/www/apigil...')
#8 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/View/View.php(205): Zend\View\Renderer\PhpRenderer->render(Object(Zend\View\Model\ViewModel))
#9 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/View/View.php(233): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#10 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/View/View.php(198): Zend\View\View->renderChildren(Object(Zend\View\Model\ViewModel))
#11 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/Mvc/View/Http/DefaultRenderingStrategy.php(102): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#12 [internal function]: Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
#13 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#14 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('render', Object(Zend\Mvc\MvcEvent), Array)
#15 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(349): Zend\EventManager\EventManager->trigger('render', Object(Zend\Mvc\MvcEvent))
#16 /var/www/apigility/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(324): Zend\Mvc\Application->completeRequest(Object(Zend\Mvc\MvcEvent))
#17 /var/www/apigility/public/index.php(39): Zend\Mvc\Application->run()
#18 {main}

@harikt
Copy link
Author

harikt commented Mar 2, 2014

<?php
/**
 * Configuration file generated by ZF Apigility Admin
 *
 * The previous config file has been stored in application.config.old
 */
return array(
    'modules' => array(
        'Application',
        'ZF\DevelopmentMode',
        'ZF\Apigility',
        'ZF\Apigility\Provider',
        'ZF\Apigility\Welcome',
        'AssetManager',
        'ZF\ApiProblem',
        'ZF\MvcAuth',
        'ZF\OAuth2',
        'ZF\Hal',
        'ZF\ContentNegotiation',
        'ZF\ContentValidation',
        'ZF\Rest',
        'ZF\Rpc',
        'ZF\Versioning',
        'ZF\Apigility\Documentation',
        'ZF\Apigility\Documentation\Swagger',
        'Test'
        ),
    'module_listener_options' => array(
        'module_paths' => array(
            './module',
            './vendor'
            ),
        'config_glob_paths' => array('config/autoload/{,*.}{global,local}.php')
        )
    );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment