Results 1 to 5 of 5

Thread: Change the error page

  1. #1
    New user
    Join Date
    07-03-09.
    Posts
    15

    Default Change the error page

    Hi,

    When TL fails while processing a request one is likely to get the TL "An error occurred when executing this script". I would like to change this (at least in the frontend) since it doesn't really help my visitors, especially "non technical" people will get very confused. I think it would be better to have an error page that looks like the site and contains an message like "site temporarily unavailable". Optionally it would be nice to get an error email.

    Would it be sufficient to edit system/modules/backend/templates/be_error.tpl to accomplish this in the fronend?

  2. #2
    User
    Join Date
    06-19-09.
    Posts
    328

    Default Re: Change the error page

    Quote Originally Posted by davidn
    Hi,

    When TL fails while processing a request one is likely to get the TL "An error occurred when executing this script". I would like to change this .

    Would it be sufficient to edit system/modules/backend/templates/be_error.tpl to accomplish this in the fronend?
    no this is the wrong way.

    login to backend -> go to Template -> new template -> select the be_error from the dropdown. -> click again on template the be_error will appear there -> click on edit button near the be_error entry.

    the above will create a copy of be_error.tpl into your TL_ROOT.'/templates/' directory this means that you can avoid the above steps and just create a file named be_error.tpl into your templates/ dir.
    Consulenza Contao CMS https://www.intco.it

  3. #3
    New user
    Join Date
    07-03-09.
    Posts
    15

    Default Re: Change the error page

    Thank you ga.n

  4. #4
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Change the error page

    Is there a quick way to activate this page, so that you can view it to style it. I don't really know where to "trick" it into an error so that this page is displayed.

  5. #5
    User
    Join Date
    06-19-09.
    Posts
    328

    Default Re: Change the error page

    Quote Originally Posted by thyon
    Is there a quick way to activate this page, so that you can view it to style it. I don't really know where to "trick" it into an error so that this page is displayed.
    if it is not a "live" website just turn "display errors" to off and change the database password so Contao cannot connect to the database
    Consulenza Contao CMS https://www.intco.it

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
  •