Ergebnis 1 bis 2 von 2

Thema: Parameter "_locale" for route "contao_frontend" must match "[a-z]{2}(?:\-[A-Z]{2})?"

  1. #1
    Contao-Nutzer
    Registriert seit
    31.03.2020.
    Beiträge
    25

    Standard Parameter "_locale" for route "contao_frontend" must match "[a-z]{2}(?:\-[A-Z]{2})?"

    Hallo,

    ich bekomme, wenn ich einen Artikel bearbeiten möchte folgenden Fehler:
    Code:
    Symfony\Component\Routing\Exception\InvalidParameterException:
    Parameter "_locale" for route "contao_frontend" must match "[a-z]{2}(?:\-[A-Z]{2})?" ("" given) to generate a corresponding URL.
    Stacktrace ist
    Code:
    Symfony\Component\Routing\Exception\InvalidParameterException:
    Parameter "_locale" for route "contao_frontend" must match "[a-z]{2}(?:\-[A-Z]{2})?" ("" given) to generate a corresponding URL.
    
      at vendor/symfony/routing/Generator/UrlGenerator.php:193
      at Symfony\Component\Routing\Generator\UrlGenerator->doGenerate(array('_locale' => 0, 'alias' => 1), array('_token_check' => true, '_controller' => 'Contao\\CoreBundle\\Controller\\FrontendController::indexAction', '_scope' => 'frontend'), array('alias' => '.+', '_locale' => '[a-z]{2}(\\-[A-Z]{2})?'), array(array('variable', '/', '.+', 'alias'), array('variable', '/', '[a-z]{2}(?:\\-[A-Z]{2})?', '_locale')), array('alias' => '/do/article/table/tl_content/id/83/rt/RzMQkPXTE1BNf-ONdlml4k956HvXD25F8wEYpojvwgc/ref/uPcfOmui/act/edit', '_locale' => null), 'contao_frontend', 1, array())
         (vendor/symfony-cmf/routing/src/ProviderBasedGenerator.php:79)
      at Symfony\Cmf\Component\Routing\ProviderBasedGenerator->generate('contao_frontend', array('alias' => '/do/article/table/tl_content/id/83/rt/RzMQkPXTE1BNf-ONdlml4k956HvXD25F8wEYpojvwgc/ref/uPcfOmui/act/edit', '_locale' => null), 1)
         (vendor/symfony-cmf/routing/src/DynamicRouter.php:189)
      at Symfony\Cmf\Component\Routing\DynamicRouter->generate('contao_frontend', array('alias' => '/do/article/table/tl_content/id/83/rt/RzMQkPXTE1BNf-ONdlml4k956HvXD25F8wEYpojvwgc/ref/uPcfOmui/act/edit', '_locale' => null), 1)
         (vendor/symfony-cmf/routing/src/ChainRouter.php:248)
      at Symfony\Cmf\Component\Routing\ChainRouter->generate('contao_frontend', array('alias' => '/do/article/table/tl_content/id/83/rt/RzMQkPXTE1BNf-ONdlml4k956HvXD25F8wEYpojvwgc/ref/uPcfOmui/act/edit', '_locale' => null))
         (vendor/contao/core-bundle/src/Resources/contao/classes/Frontend.php:462)
      at Contao\Frontend::addToUrl('act=edit&id=83')
         (vendor/hofff/contao-recursive-download-folder/src/Frontend/RecursiveDownloadFolderTrait.php:68)
      at Hofff\Contao\RecursiveDownloadFolder\Frontend\Module\RecursiveDownloadFolderModule->generate()
         (vendor/contao/core-bundle/src/Resources/contao/elements/ContentModule.php:76)
      at Contao\ContentModule->generate()
         (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:580)
      at Contao\Controller::getContentElement(object(ContentModel))
         (vendor/contao/core-bundle/src/Resources/contao/dca/tl_content.php:1293)
      at tl_content->addCteType(array('id' => '5516', 'pid' => '222', 'ptable' => 'tl_article', 'sorting' => '60', 'tstamp' => '1591803544', 'type' => 'module', 'headline' => '', 'text' => null, 'addImage' => '', 'overwriteMeta' => '', 'singleSRC' => null, 'alt' => '', 'imageTitle' => '', 'size' => '', 'imagemargin' => '', 'imageUrl' => '', 'fullsize' => '', 'caption' => '', 'floating' => 'above', 'html' => null, 'listtype' => '', 'listitems' => null, 'tableitems' => null, 'summary' => '', 'thead' => '', 'tfoot' => '', 'tleft' => '', 'sortable' => '', 'sortIndex' => '0', 'sortOrder' => 'ascending', 'mooHeadline' => '', 'mooStyle' => '', 'mooClasses' => '', 'highlight' => '', 'code' => null, 'url' => '', 'target' => '', 'titleText' => '', 'linkTitle' => '', 'embed' => '', 'rel' => '', 'useImage' => '', 'multiSRC' => null, 'orderSRC' => null, 'useHomeDir' => '', 'perRow' => '4', 'perPage' => '0', 'numberOfItems' => '0', 'sortBy' => '', 'metaIgnore' => '', 'galleryTpl' => '', 'customTpl' => '', 'playerSRC' => null, 'youtube' => '', 'vimeo' => '', 'posterSRC' => null, 'playerSize' => '', 'sliderDelay' => '0', 'sliderSpeed' => '300', 'sliderStartSlide' => '0', 'sliderContinuous' => '', 'cteAlias' => '0', 'articleAlias' => '0', 'article' => '0', 'form' => '0', 'module' => '83', 'protected' => '1', 'groups' => 'a:1:{i:0;s:1:"6";}', 'guests' => '', 'cssID' => 'a:2:{i:0;s:0:"";i:1;s:0:"";}', 'invisible' => '', 'start' => '', 'stop' => '', 'com_order' => 'ascending', 'com_perPage' => '0', 'com_moderate' => '', 'com_bbcode' => '', 'com_disableCaptcha' => '', 'com_requireLogin' => '', 'com_template' => 'com_default', 'rsce_data' => null, 'news_categoryImgSize' => '', 'news_module' => '0', 'news_categoryFilterPage' => '0', 'news_filterPreserve' => '0', 'news_filterDefault' => null, 'news_includeSubcategories' => '0', 'news_relatedCategories' => '0', 'news_filterCategories' => '0', 'juiTabDropdownLabel' => '', 'juiTabShowDropdown' => '', 'juiTabAlias' => '', 'juiTabHeadline' => '', 'recursiveDownloadFolderVisibleRoot' => '', 'recursiveDownloadFolderTpl' => '', 'recursiveDownloadFolderAllowAll' => '', 'recursiveDownloadFolderAllowFileSearch' => '', 'recursiveDownloadFolderShowAllLevels' => '', 'recursiveDownloadFolderHideEmptyFolders' => '', 'recursiveDownloadFolderMode' => 'toggleable', 'folderSRC' => null, 'youtubeOptions' => null, 'overwriteLink' => '', 'playerOptions' => null, 'vimeoOptions' => null, 'playerStart' => '0', 'playerStop' => '0', 'playerColor' => '', 'playerPreload' => '', 'splashImage' => '', 'playerAspect' => '', 'playerCaption' => '', 'inline' => ''))
         (vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:4572)
      at Contao\DC_Table->parentView()
         (vendor/contao/core-bundle/src/Resources/contao/drivers/DC_Table.php:364)
      at Contao\DC_Table->showAll()
         (vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php:644)
      at Contao\Backend->getBackendModule('article', null)
         (vendor/contao/core-bundle/src/Resources/contao/controllers/BackendMain.php:167)
      at Contao\BackendMain->run()
         (vendor/contao/core-bundle/src/Controller/BackendController.php:48)
      at Contao\CoreBundle\Controller\BackendController->mainAction()
         (vendor/symfony/http-kernel/HttpKernel.php:158)
      at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
         (vendor/symfony/http-kernel/HttpKernel.php:80)
      at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
         (vendor/symfony/http-kernel/Kernel.php:201)
      at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
         (web/index.php:31)
      at require('/var/www/clients/client3/web163/web/v2/web/index.php')
         (web/app.php:4)
    Ich habe schon in der Datenbank direkt geschaut unter der tl_content id=220 nachgeschaut, konnte aber nichts Auffälliges finden.

    Habt ihr eine Idee, wie man den Article wieder bearbeitbar bekommt.

    Kann es mit dem kürzlich erfolgten Update auf 4.9 zusammen hängen?

    Viele Grüße,
    Meike

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.207
    Partner-ID
    10107

    Standard

    Die tl_content ID aus der Fehlermeldung wäre 83, nicht 220.

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •