Results 1 to 3 of 3

Thread: (solved) Issue depending on the url ?

  1. #1
    User
    Join Date
    04-01-10.
    Posts
    268

    Frage (solved) Issue depending on the url ?

    Hi everyone,

    A website with Contao 4.4.57 (with changelanguage for fr and en)

    And 2 hosts :
    - o2switch where the dev version is hosted at http://sitev3.bxcf3586.odns.fr
    - ovh which manages our domain terea.net and where our former website was hosted.

    First time.
    We tried to move our website with contao-manager to our host at ovh. But the page terea.net/actualites.html or terea.net/news.html (dns ovh) generated a Contao error message. These pages have a newslist module.

    Second time.
    So we decided to redirect terea.net (dns ovh) to the dev version hosted at o2switch.

    http://terea.net/actualite.html (dns ovh) still generates Contao error message.
    http://sitev3.bxcf3586.odns.fr/actualites.html (dns o2switch) works fine.

    The problem is with the page /actualites.html or /news.html where there is a news module.

    What can be the problem ?

    Here are the last lines of /var/log
    Code:
    [2021-09-03 23:24:26] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
    [2021-09-03 23:24:26] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Page not found: http://www.terea.net/robots.txt" at /home/bxcf3586/sitev3/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php line 112 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): Page not found: http://www.terea.net/robots.txt at /home/bxcf3586/sitev3/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:112, Contao\\CoreBundle\\Exception\\PageNotFoundException(code: 0): Page not found: http://www.terea.net/robots.txt at /home/bxcf3586/sitev3/vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:63)"} []
    [2021-09-03 23:38:37] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"robots.txt","_route":"contao_catch_all"},"request_uri":"http://terea.net/robots.txt","method":"GET"} []
    [2021-09-03 23:38:37] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} []
    [2021-09-03 23:38:37] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Page not found: http://terea.net/robots.txt" at /home/bxcf3586/sitev3/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php line 112 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): Page not found: http://terea.net/robots.txt at /home/bxcf3586/sitev3/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:112, Contao\\CoreBundle\\Exception\\PageNotFoundException(code: 0): Page not found: http://terea.net/robots.txt at /home/bxcf3586/sitev3/vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:63)"} []
    Thanks for your help.
    Last edited by charled; 09/06/2021 at 11:22. Reason: Problem solved

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,283

    Default

    Quote Originally Posted by charled View Post
    But the page terea.net/actualites.html or terea.net/news.html (dns ovh) generated a Contao error message.
    Seems like it works now. Right?
    Contao Community Moderator
    → Support options

  3. #3
    User
    Join Date
    04-01-10.
    Posts
    268

    Default

    Hi xchs,

    Yes, this is now working fine.
    First, there was probably a bug in the db (bad dump ?). I reinstalled the site.
    Second : the dns cache didn't autoupdate so the url was pointing to the right host but wrong path. So people coming for the first time did see the right and well working site. But not us... ;-)

    Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •