Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1381

Create special template for fatal error page

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Needs Review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.2.2
    • Component/s: System Log
    • Labels:
      None
    • Change Log Group:
      Added
    • Change Log Message:
      In case, when a Fatal Error/Exception happens during page generation a nice error page will be displayed back to user.
    • Story Points:
      2
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Plan:

      1. rename "ErrorTemplate" system setting to "NotFoundErrorTemplate" to avoid confusion - 0.3h
      2. create new "FatalErrorTemplate" that will have "error_fatal" value by default - 0.2h
      3. create "error_fatal" template in Front-End theme with most basic tags (the more static the better) - we can start with just showing "Opps, something went wrong ..." text with "default_design.tpl" - 1h
      4. create "error_fatal" template in Admin Console (similar to "no_permission") - 0.5h
      5. when Catchable Fatal Error is discovered and we're not in Debug Mode, then: - 1h
        • store error message text in session
        • redirect to that template (url would be /error_fatal.html)
        • admin's template version will display error text from session, while Front-End template version won't
      6. Dmitry suggested placing "Back" link/button on that template so user can go back where he hit the fatal error in case if it is fixed at some point - 0.5h

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                glebs Gleb Sinkovskiy [Intechnic]
                Developer:
                Gleb Sinkovskiy [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: