Results 1 to 20 of 20

Thread: update 2.11.3 and language to URL

  1. #1
    User
    Join Date
    09-15-09.
    Location
    France
    Posts
    98

    Default update 2.11.3 and language to URL

    Hello,
    I just made an update to 2.11.3 and 2.11.2 Contao obviously navigation is not correct because I get an error message "page not found"

    This error appears when I activate:
    - Rewrite URLs
    - Add language to the URL
    I have set up. Htaccess

    Another question, why the check reveals the following (check see below)
    http://xx.xxx.xxx.xx/meca-denyfontaine/contao-check.php

    thank you for your help ...

  2. #2
    User
    Join Date
    09-15-09.
    Location
    France
    Posts
    98

    Default Re: update 2.11.3 and language to URL

    Hello,

    I am the first to experience this problem? ? :?

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

    Default Re: update 2.11.3 and language to URL

    Hi,

    how looks your ".htaccess" file? Are there at the end the following directives:

    Code:
      ##
      # The following rules are required if you want to pass the language as first
      # URL parameter (added in Contao 2.11). The first rule rewrites an empty URL
      # to the front end controller, the second one adds a missing trailing slash.
      ##
      RewriteRule ^[a-z]{2}/$ index.php [L]
      RewriteRule ^([a-z]{2})$ $1/ [R=301,L]
    Contao Community Moderator
    → Support options

  4. #4
    User
    Join Date
    09-15-09.
    Location
    France
    Posts
    98

    Default Re: update 2.11.3 and language to URL

    Yes I have at the end the following directives..

    My site is installed in a directory ! is ti a problem ? ?

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

    Default Re: update 2.11.3 and language to URL

    Quote Originally Posted by tom-over
    My site is installed in a directory ! is ti a problem ? ?
    No, this is not a problem. You need only ensure that

    • the RewriteBase in the ".htaccess" file is set to the respective installation directory, i.e. "RewriteBase /your_install_dir". That is, if you have to specify the subfolder name in the URL (http://www.domain.com/your_install_dir/) then you have to set the RewriteBase properly (as mentioned before)
      [/*:m:377pgthm]
    • On the other side, if the corresponding domain name is mapped directly to the subfolder with the Contao installation, then your RewriteBase must point to "RewriteBase /"[/*:m:377pgthm]
    Contao Community Moderator
    → Support options

  6. #6
    User
    Join Date
    09-15-09.
    Location
    France
    Posts
    98

    Default Re: update 2.11.3 and language to URL

    The RewriteBase is OK to http://91.188.65.244/meca-denyfontaine

    Code:
     RewriteBase /meca-denyfontaine
    but I still have the same problem...

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

    Default Re: update 2.11.3 and language to URL

    First of all, have you already seen that there are some "Corrupt" template files in your installation: http://91.188.65.244/meca-denyfontaine/ ... php?hide=1 You should fix that!
    Moreover, did you set-up the Safe Mode Hack (SMH) as suggested be the Contao-Check? Then, you should also enable the option "Rewrite URLs" in the back end "Settings". However, my concern is that you cannot save any settings there as long as the SMH is not working properly.
    Contao Community Moderator
    → Support options

  8. #8
    User
    Join Date
    09-15-09.
    Location
    France
    Posts
    98

    Default Re: update 2.11.3 and language to URL

    They are my personal template... it's OK

    What should I do with Safe Mode Hack ? The localconfig.php file ?

    Code:
    $GLOBALS['TL_CONFIG']['websitePath'] = '/meca-denyfontaine';

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

    Default Re: update 2.11.3 and language to URL

    Quote Originally Posted by tom-over
    They are my personal template... it's OK
    Sorry, it's not okay! You should never never never (!) modify the original templates. There is a special back end module "Templates" where you can create a template copy of the corresponding templates. There you can make your changes, which are then update-safe.

    Quote Originally Posted by tom-over
    What should I do with Safe Mode Hack ? The localconfig.php file ?
    Yes, the SMH is configured in the "system/config/localconfig.php" file. Further information on how this is can be done you find here: http://www.contao.org/en/using-the-safe-mode-hack.html
    Contao Community Moderator
    → Support options

  10. #10
    User
    Join Date
    09-15-09.
    Location
    France
    Posts
    98

    Default Re: update 2.11.3 and language to URL

    I need to change some template ... where do I copy to what can be integrated with Contao? ?
    In my templates files ?
    I guess I need to copy them into the template folder ... But Contao can't read my template !

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

    Default Re: update 2.11.3 and language to URL

    The procedure is as follows:

    • Open the back end module "Templates"[/*:m:1ux3wlu2]
    • Click on "New template" and choose the original template (e.g. "mod_breadcrumb.html5")[/*:m:1ux3wlu2]
    • Click "Create template" to copy the original template into the Contao templates folder "/templates"[/*:m:1ux3wlu2]
    • For the mentioned breadcrumb template: don't rename the template copy[/*:m:1ux3wlu2]
    • Edit the template copy by clicking on the respective edit icon (the second from the right)[/*:m:1ux3wlu2]
    • Then, do all the desired modifications in the source editor. After that, save the template.[/*:m:1ux3wlu2]
    • Open the back end module "Maintenance" and perform a data purge in "system/tmp"[/*:m:1ux3wlu2]

    What about the SMH? Did you managed to get it running? If you are unsure if the SMH is configured correctly or if it works, then you could check this with the script [smhcheck].
    Contao Community Moderator
    → Support options

  12. #12
    User
    Join Date
    09-15-09.
    Location
    France
    Posts
    98

    Default Re: update 2.11.3 and language to URL

    I did not know this extension!
    My Safe Mode Hack is enabled and appears to be working. :D

    But I have always the problem with rewrite URL and add LanguageTo Url ! !


    For the template : I do this but my templates are don't not used by Contao ? !!

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

    Default Re: update 2.11.3 and language to URL

    The ftpPath is that path or subdirectory that you have to follow if you establish a FTP connection with the given FTP credentials. For example, when you connect to your webspace using a FTP client and you have to change there the directory to open the Contao installation directory, then exactly this followed path is the ftpPath in question. In your case, if you establish a FTP connection to the webspace and you have to change the directory to the subdirectory "meca-denyfontaine/" to open the root folder of the Contao installation, then this should be the ftpPath

    Code:
    $GLOBALS['TL_CONFIG']['ftpPath'] = 'meca-denyfontaine/';
    But you have to check this on your own. I actually do not know what is going on there, since I have no crystal ball.


    EDIT: Fine, you managed to get it running meanwhile.
    Contao Community Moderator
    → Support options

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

    Default Re: update 2.11.3 and language to URL

    Quote Originally Posted by tom-over
    For the template : I do this but my templates are don't not used by Contao ? !!
    What steps have you done so far? Can you write this down on detail?
    Contao Community Moderator
    → Support options

  15. #15
    User
    Join Date
    09-15-09.
    Location
    France
    Posts
    98

    Default Re: update 2.11.3 and language to URL

    yes I managed to make it work
    But I have always the problem with rewrite URL and add LanguageTo Url ! !

    EDIT : I was wrong in my version of template ... excuse me ... the templates are true :? there ok thank for your Help.

    We can return to my original problem if it pleases you

    PS: excuse me for my bad english... :?

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

    Default Re: update 2.11.3 and language to URL

    Have you already tried to enable the option "Rewrite URLs" in the back end "Settings" as I suggested here? Hopefully, the option "Add the language to the URL" is enabled, isn't it?
    Contao Community Moderator
    → Support options

  17. #17
    User
    Join Date
    09-15-09.
    Location
    France
    Posts
    98

    Default Re: update 2.11.3 and language to URL

    I don't understand because when I test the SMH with [smhcheck] I have : the Safe Mode Hack is enabled and appears to be working.

    And when I test with Contao Check I have : You will most likely not be able to run Contao without the Safe Mode Hack.
    http://91.188.65.244/meca-denyfontaine/ ... php?hide=1

    My Safe Mode Hack is OK or NOT ?
    Why Rewrite URLs do not work? ?

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

    Default Re: update 2.11.3 and language to URL

    Quote Originally Posted by tom-over
    And when I test with Contao Check I have : You will most likely not be able to run Contao without the Safe Mode Hack. http://91.188.65.244/meca-denyfontaine/ ... php?hide=1
    Yes, that's right. The Contao-Check does not check if you have configured the SMH at all.

    Quote Originally Posted by tom-over
    Why Rewrite URLs do not work? ?
    I do not know. Perhaps still configured something wrong?

    If you enabled the two options "Rewrite URLs" and "Add the language to the URL" in the back end "Settings" then there should be the following two additional entries in the "system/config/localconfig.php" configuration file:

    Code:
    $GLOBALS['TL_CONFIG']['rewriteURL'] = true;
    $GLOBALS['TL_CONFIG']['addLanguageToUrl'] = true;
    The RewriteBase in the ".htaccess" file is still set to "RewriteBase /meca-denyfontaine", right?

    Furthermore, in order to get the URL rewriting mechanism to work there must be enabled the Apache module "mod_rewrite". Please check this in the PHP configuration or by executing the "phpinfo()" function.
    Contao Community Moderator
    → Support options

  19. #19
    User
    Join Date
    09-15-09.
    Location
    France
    Posts
    98

    Default Re: update 2.11.3 and language to URL

    my localconfig is ok :
    Code:
    $GLOBALS['TL_CONFIG']['websitePath'] = '/meca-denyfontaine';
    $GLOBALS['TL_CONFIG']['addLanguageToUrl'] = true;
    $GLOBALS['TL_CONFIG']['rewriteURL'] = true;
    My backend config is ok

    My htaccess is .. Ooops !
    I add :
    Code:
    RewriteBase /meca-denyfontaine
    Now the "rewriteURL" and "addLanguageToUrl" it works ! :P

    Thank you very very very very much ! ! !!

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

    Default Re: update 2.11.3 and language to URL

    Glad to hear it.
    Contao Community Moderator
    → Support options

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
  •