Results 1 to 8 of 8

Thread: Maintenance mode

  1. #1
    User
    Join Date
    01-08-10.
    Posts
    30

    Default Maintenance mode

    Hi,

    We need to set a "maintenance page" on one of our contao websites. Is there such a mode in Contao? If not, how would you do it? Just a statical index.html file? Or together with some mod_rewrite rules?

    Regards,
    Raffael

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

    Default Re: Maintenance mode

    There is an extension in the extension repository: [maintenance]
    Contao Community Moderator
    → Support options

  3. #3
    User
    Join Date
    01-08-10.
    Posts
    30

    Default Re: Maintenance mode

    Thank you.

    According to the page is is usable till contao 2.7.2. Do you have it running with the newest version and does it work without any problems?

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

    Default Re: Maintenance mode

    No, unfortunately not myself. But I know some people in the German board that use this extension on the latest Contao version 2.10.3, too. Without any problems, AFAIK.

    Wiki article: http://de.contaowiki.org/Maintenance (in German but I'm sure you get the idea)
    Contao Community Moderator
    → Support options

  5. #5
    User
    Join Date
    01-08-10.
    Posts
    30

    Default Re: Maintenance mode

    Sweet. Danke dir. Ich rede auch deutsch. Ist darum kein Problem.

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

    Default Re: Maintenance mode

    Na dann. :D
    Contao Community Moderator
    → Support options

  7. #7
    User
    Join Date
    01-08-10.
    Posts
    30

    Default Re: Maintenance mode

    Just as an information for the others. This extension doesn't work with the current version. The error message is:
    Code:
    Notice: Using .tpl files (system/modules/maintenance/templates/view_maintenance.tpl) is deprecated. Please use the new .html5 and .xhtml files instead. in /var/www/clients/client24/web61/web/system/libraries/Controller.php on line 168
    
    #0 [internal function]: __error(1024, 'Using .tpl file...', '/var/www/client...', 168, Array)
    #1 /var/www/clients/client24/web61/web/system/libraries/Controller.php(168): trigger_error('Using .tpl file...', 1024)
    #2 /var/www/clients/client24/web61/web/system/libraries/Template.php(246): Controller->getTemplate('view_maintenanc...', 'html5')
    #3 /var/www/clients/client24/web61/web/system/modules/frontend/FrontendTemplate.php(49): Template->parse()
    #4 /var/www/clients/client24/web61/web/system/modules/frontend/Module.php(157): FrontendTemplate->parse()
    #5 /var/www/clients/client24/web61/web/system/libraries/Controller.php(343): Module->generate()
    #6 /var/www/clients/client24/web61/web/system/modules/frontend/PageRegular.php(100): Controller->getFrontendModule('40', 'main')
    #7 /var/www/clients/client24/web61/web/index.php(204): PageRegular->generate(Object(DB_Mysql_Result))
    #8 /var/www/clients/client24/web61/web/index.php(343): Index->run()
    #9 {main}
    I guess this is something that could be solved fairly easily. But I didn't have the time for it.

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

    Default Re: Maintenance mode

    FYI: This is not an error message, it's only a notice that the old template extension (*.tpl) is deprecated! By default, you get no notice when it is not enabled the option "Display error messages" in the system settings.

    Since this extension is not yet offically released and tagged for the latest minor version it is obviously clear that some things need to be adapted to the new version (for further information please refer to the official announcement)

    To do this, just rename the template "system/modules/maintenance/templates/view_maintenance.tpl" to "view_maintenance.html5" and all should be fine

    HTH
    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
  •