terminal42 / contao-changelanguage

ChangeLanguage is an extension for the Contao CMS which allows visitors to switch between different languages of your website.
44 stars 35 forks source link

Error mit 404 und anderen Error seiten. #210

Closed kico closed 2 years ago

kico commented 2 years ago

Hallo.

Ich habe von eine woche mit die Seite www.ai-trading.co online gegangen. Mein Server provider hat dann auch die "weiterleitung" von "public_html" auf "public_html/web" gemacht. Somit funktioniert die Seite, alle formulare und alles ganz richtig.

Aber ich habe ein Problem mit die Sonder Seiten: 404, 401, 403, 503. Nämlich wenn ich als URL https://www.ai-trading.co/de/sollte-404-sein aufrufe, sollte die weiterleitung auf 404 seite passieren.

Ich bekomme diesen Standard Contao Fehler.

Ich vervende Contao CMS.

Hier ist der ein teil der Stack trace:

Symfony\Component\Routing\Exception\RouteNotFoundException:
None of the chained routers were able to generate route: Route 'cmf_routing_object' not found, Route 'Route 'cmf_routing_object' not found' not found

  at vendor/symfony-cmf/routing/src/ChainRouter.php:265
  at Symfony\Cmf\Component\Routing\ChainRouter->generate('cmf_routing_object', array('_content' => object(PageModel), 'parameters' => ''))
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:1297)
  at Contao\Controller::generateFrontendUrl(array('id' => '183', 'newsCategories_param' => '', 'pid' => '145', 'sorting' => '2048', 'tstamp' => '1652451451', 'title' => '404 - Error', 'type' => 'error_404', 'alias' => '', 'requireItem' => '', 'routePriority' => '0', 'pageTitle' => '???? 404 - Die gesuchte Seite existiert nicht', 'language' => 'de', 'robots' => 'noindex,follow', 'description' => '???? 404 - Die gesuchte Seite existiert nicht! Bitte überprüfen Sie die URL oder gehen Sie auf unsere Homepage, um die Informationen zu finden, nach denen Sie suchen, und beginnen Sie zu investieren ??', 'redirect' => 'permanent', 'jumpTo' => '0', 'redirectBack' => '', 'url' => '', 'target' => '', 'dns' => '', 'staticFiles' => '', 'staticPlugins' => '', 'fallback' => '', 'disableLanguageRedirect' => '', 'favicon' => null, 'robotsTxt' => null, 'maintenanceMode' => '', 'mailerTransport' => '', 'enableCanonical' => '1', 'canonicalLink' => '', 'canonicalKeepParams' => '', 'adminEmail' => 'info@ai-trading.co', 'dateFormat' => 'd.m.Y', 'timeFormat' => 'H:i', 'datimFormat' => 'd.m.Y H:i', 'validAliasCharacters' => '', 'useFolderUrl' => '', 'urlPrefix' => 'de', 'urlSuffix' => '.html', 'useSSL' => '', 'autoforward' => '', 'protected' => false, 'groups' => array(), 'includeLayout' => '1', 'layout' => '1', 'subpageLayout' => '1', 'includeCache' => '', 'cache' => '604800', 'alwaysLoadFromCache' => '1', 'clientCache' => '604800', 'includeChmod' => '', 'cuser' => '0', 'cgroup' => '0', 'chmod' => 'a:9:{i:0;s:2:"u1";i:1;s:2:"u2";i:2;s:2:"u3";i:3;s:2:"u4";i:4;s:2:"u5";i:5;s:2:"u6";i:6;s:2:"g4";i:7;s:2:"g5";i:8;s:2:"g6";}', 'noSearch' => '', 'cssClass' => '', 'sitemap' => 'map_default', 'hide' => '1', 'guests' => '', 'tabindex' => '0', 'accesskey' => '', 'published' => '1', 'start' => '', 'stop' => '', 'enforceTwoFactor' => '', 'twoFactorJumpTo' => '0', 'pageImage' => null, 'pageImageOrder' => null, 'pageImageUrl' => '', 'pageImageOverwriteMeta' => '', 'pageImageAlt' => '', 'pageImageTitle' => '', 'languageMain' => '37', 'languageRoot' => '0', 'languageQuery' => '', 'canonicalWebsite' => '', 'canonicalJumpTo' => '0', 'canonicalType' => '', 'cookiebar_analyticsLabel' => '', 'cookiebar_analyticsCheckbox' => '', 'cookiebar_ttl' => '', 'cookiebar_includeCss' => '1', 'cookiebar_combineAssets' => '', 'cookiebar_link' => '', 'cookiebar_button' => '', 'cookiebar_placement' => '', 'cookiebar_position' => '', 'cookiebar_url' => '', 'cookiebar_message' => null, 'cookiebar_enable' => '', 'hofff_shariff_facebook_secret' => '', 'hofff_shariff_facebook_app_id' => '', 'hofff_shariff_cache_ttl' => null, 'hofff_shariff_share_counts' => '', 'mainAlias' => '', 'mainTitle' => '404 - Error', 'mainPageTitle' => '???? 404 - Die gesuchte Seite existiert nicht', 'parentAlias' => 'ai-trading-de', 'parentTitle' => 'AI Trading [DE]', 'parentPageTitle' => 'AI Trading', 'folderUrl' => '', 'rootId' => '145', 'rootAlias' => 'ai-trading-de', 'rootTitle' => 'AI Trading [DE]', 'rootPageTitle' => 'AI Trading', 'rootSorting' => '32', 'domain' => 'www.ai-trading.co', 'rootLanguage' => 'de', 'useAutoItem' => true, 'rootIsPublic' => true, 'rootIsFallback' => false, 'rootUseSSL' => '1', 'rootFallbackLanguage' => 'en', 'trail' => array('145', '183'), 'isPublic' => true), '', 'de')
     (vendor/terminal42/contao-changelanguage/ModuleChangeLanguage.php:243)
  at ModuleChangelanguage->compile()
     (vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:214)
  at Contao\Module->generate()
     (vendor/terminal42/contao-changelanguage/ModuleChangeLanguage.php:72)
  at ModuleChangelanguage->generate()
     (vendor/contao/core-bundle/src/Resources/contao/elements/ContentModule.php:98)
  at Contao\ContentModule->generate()
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:615)
  at Contao\Controller::getContentElement(object(ContentModel), 'main')
     (vendor/contao/core-bundle/src/Resources/contao/modules/ModuleArticle.php:197)
  at Contao\ModuleArticle->compile()
     (vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:214)
  at Contao\Module->generate()
     (vendor/contao/core-bundle/src/Resources/contao/modules/ModuleArticle.php:70)
  at Contao\ModuleArticle->generate(true)
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:543)
  at Contao\Controller::getArticle('189', false, true)
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/InsertTags.php:628)
  at Contao\InsertTags->executeReplace('<!-- TEMPLATE START: templates/fe_page.html5 --><!DOCTYPE html>

     (vendor/contao/core-bundle/src/Resources/contao/classes/FrontendTemplate.php:128)
  at Contao\FrontendTemplate->compile()
     (vendor/contao/core-bundle/src/Resources/contao/library/Contao/Template.php:322)
  at Contao\Template->getResponse()
     (vendor/contao/core-bundle/src/Resources/contao/classes/FrontendTemplate.php:85)
  at Contao\FrontendTemplate->getResponse(false)
     (vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:62)
  at Contao\PageRegular->getResponse(object(PageModel))
     (vendor/contao/core-bundle/src/Resources/contao/pages/PageError404.php:80)
  at Contao\PageError404->getResponse(object(PageModel), true)
     (vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:316)
  at Contao\FrontendIndex->renderPage(object(PageModel))
     (vendor/symfony/http-kernel/HttpKernel.php:152)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:74)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/index.php:44)

Und hier ist Error aus der Log File:

[2022-05-31T06:23:31.951770+02:00] request.INFO: Matched route "tl_page.141.error_404.locale". {"route":"tl_page.141.error_404.locale","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"sl","_format":"html","_canonical_route":"tl_page.141","pageModel":{"Contao\\PageModel":[]},"_url_fragment":"seite-existiert-nicht","_route":"tl_page.141.error_404.locale","_route_object":{"Symfony\\Component\\Routing\\Route":[]}},"request_uri":"https://www.ai-trading.co/sl/seite-existiert-nicht","method":"GET"} []
[2022-05-31T06:23:31.982519+02:00] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2022-05-31T06:23:32.095431+02:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "None of the chained routers were able to generate route: Route 'cmf_routing_object' not found, Route 'Route 'cmf_routing_object' not found' not found" at /home/iw24345/domains/ai-trading.co/public_html/vendor/symfony-cmf/routing/src/ChainRouter.php line 265 {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\RouteNotFoundException(code: 0): None of the chained routers were able to generate route: Route 'cmf_routing_object' not found, Route 'Route 'cmf_routing_object' not found' not found at /home/iw24345/domains/ai-trading.co/public_html/vendor/symfony-cmf/routing/src/ChainRouter.php:265)"} []
kico commented 2 years ago

mein composer.json file schaut es so aus:

mein composer.json file schaut es so aus:

Code:
{
    "type": "project",
    "require": {
        "bugbuster/contao-botdetection-bundle": "^1.7",
        "bugbuster/contao-visitors-bundle": "^1.6",
        "christianbarkowsky/contao-tiny-compress-images": "^2.1",
        "christianbarkowsky/rel-canonical": "^3.3",
        "codefog/contao-cookiebar": "^2.3",
        "codefog/contao-news_categories": "^3.4",
        "contao-components/installer": "^1.4",
        "contao/calendar-bundle": "4.13.*",
        "contao/comments-bundle": "4.13.*",
        "contao/conflicts": "*@dev",
        "contao/faq-bundle": "4.13.*",
        "contao/listing-bundle": "4.13.*",
        "contao/manager-bundle": "^4.13",
        "contao/news-bundle": "4.13.*",
        "contao/newsletter-bundle": "4.13.*",
        "derhaeuptling/contao-lazy-images": "^3.0",
        "felixpfeiffer/subcolumns": "^3.1",
        "hofff/contao-shariff": "^3.0",
        "inspiredminds/contao-extended-form-fields": "^2.3",
        "jrgregory/m17-sticky-backend-footer": "^2.0",
        "madeyourday/contao-rocksolid-antispam": "^2.0",
        "madeyourday/contao-rocksolid-custom-elements": "^2.3",
        "madeyourday/contao-rocksolid-frontend-helper": "^2.1",
        "menatwork/selectmodule": "^2.0",
        "menatwork/semantic_html5": "^2.1",
        "richardhj/contao-childlayouts": "^1.1",
        "terminal42/contao-changelanguage": "^2.2",
        "terminal42/contao-leads": "^1.4",
        "terminal42/contao-mailusername": "^2.0",
        "terminal42/contao-news_newsletter": "^1.0",
        "terminal42/contao-newslanguage": "^2.1",
        "terminal42/contao-pageimage": "^4.1",
        "terminal42/contao-url-rewrite": "^1.6",
        "terminal42/notification_center": "^1.6"
    },
    "extra": {
        "public-dir": "web",
        "contao-component-dir": "assets"
    },
    "scripts": {
        "post-install-cmd": [
            "@php vendor/bin/contao-setup"
        ],
        "post-update-cmd": [
            "@php vendor/bin/contao-setup"
        ]
    },
    "config": {
        "allow-plugins": {
            "contao-community-alliance/composer-plugin": true,
            "contao-components/installer": true,
            "contao/manager-plugin": true
        }
    }
}
aschempp commented 2 years ago

Dieses Problem hat nichts mit der ChangeLanguage-Erweiterung zu tun. Bitte wende dich an die Contao Community (https://to.contao.org/support) für Fragen zur Einrichtung deiner Installation.