After replacing 'url(' to '\Drupal::url(', and trying to install xmlsitemap, this error/warning shows up above the Drupal message: "The website has encountered an error. Please try again later."
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 149 of core/lib/Drupal/Core/Routing/RouteProvider.php).
Drupal\Core\Routing\RouteProvider->getRouteByName(NULL)
Drupal\Core\Routing\UrlGenerator->getRoute(NULL)
Drupal\Core\Routing\UrlGenerator->generateFromRoute(NULL, [Array], [Array])
Drupal::url(NULL, [Array])
xmlsitemap_install()
call_user_func_array(xmlsitemap_install, [Array])
Drupal\Core\Extension\ModuleHandler->invoke(xmlsitemap, install)
Drupal\Core\Extension\ModuleInstaller->install([Array])
Drupal\system\Form\ModulesListForm->submitForm([Array], Drupal\Core\Form\FormState)
call_user_func_array([Array], [Array])
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers([Array], Drupal\Core\Form\FormState)
Drupal\Core\Form\FormSubmitter->doSubmitForm([Array], Drupal\Core\Form\FormState)
Drupal\Core\Form\FormBuilder->processForm(system_modules, [Array], Drupal\Core\Form\FormState)
Drupal\Core\Form\FormBuilder->buildForm(Drupal\system\Form\ModulesListForm, Drupal\Core\Form\FormState)
Drupal\Core\Controller\FormController->getContentResult(Symfony\Component\HttpFoundation\Request)
call_user_func_array([Array], [Array])
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Symfony\Component\HttpFoundation\Request, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Symfony\Component\HttpFoundation\Request, 1, TRUE)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Symfony\Component\HttpFoundation\Request, 1, TRUE)
Drupal\Core\StackMiddleware\PageCache->handle(Symfony\Component\HttpFoundation\Request, 1, TRUE)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Symfony\Component\HttpFoundation\Request, 1, TRUE)
Stack\StackedHttpKernel->handle(Symfony\Component\HttpFoundation\Request, 1, TRUE)
Drupal\Core\DrupalKernel->handle(Symfony\Component\HttpFoundation\Request)
Comments
Comment #1
michelleThe install was fixed with the patch in #2427509: Installation fails on Drupal 8 beta 6. Could you see if that fixes the error you are getting here? If so, this can be marked as a dupe.
Comment #2
swentel commentedNo activity, and I have no problems with installing with latest 8.x either.