|
| 1 | +:navigation-title: Error pages |
| 2 | + |
| 3 | +.. include:: /Includes.rst.txt |
| 4 | + |
| 5 | +.. _troubleshooting-error-page: |
| 6 | + |
| 7 | +====================================== |
| 8 | +Reading and sharing a TYPO3 error page |
| 9 | +====================================== |
| 10 | + |
| 11 | +When TYPO3 runs into an error it cannot handle, it replaces the page or the |
| 12 | +backend module with an error page. Which error page you get depends on |
| 13 | +the configuration: |
| 14 | + |
| 15 | +* On your :ref:`local development installation <development-settings>`, you |
| 16 | + see the detailed error page described below. |
| 17 | +* On a production server, visitors see a short page titled |
| 18 | + **Oops, an error occurred!** without any details, so that they learn |
| 19 | + nothing about the inner workings of the site. The details are written to |
| 20 | + the log, which you can read in the backend module |
| 21 | + :guilabel:`Administration > Log`. |
| 22 | + |
| 23 | +The option |
| 24 | +:confval:`displayErrors <t3coreapi:globals-typo3-conf-vars-sys-displayerrors>` |
| 25 | +decides between the two pages. With its default value, only requests from an |
| 26 | +IP address listed in |
| 27 | +:confval:`devIPmask <t3coreapi:globals-typo3-conf-vars-sys-devipmask>` get |
| 28 | +the detailed one. |
| 29 | + |
| 30 | +.. _troubleshooting-error-page-details: |
| 31 | + |
| 32 | +The detailed error page |
| 33 | +======================= |
| 34 | + |
| 35 | +.. versionadded:: 14.2 |
| 36 | + :changelog: feature-106153-1770150965 |
| 37 | + |
| 38 | +The detailed error page shows the error message and its stack trace: the |
| 39 | +chain of PHP files and lines that led to the error. It is what you need when |
| 40 | +you ask for help, in a bug report or in a support channel. Send it as text |
| 41 | +rather than as a screenshot, which usually cuts the trace off. |
| 42 | + |
| 43 | +.. figure:: /Images/ManualScreenshots/ErrorHandling/exception-header-copy-path.png |
| 44 | + :alt: Error page with the heading "Whoops, looks like something went |
| 45 | + wrong.", the buttons Toggle details and Copy plaintext stack trace in |
| 46 | + its header, and a Copy path button beside the first file of the trace |
| 47 | + :zoom: lightbox |
| 48 | + |
| 49 | + The header and the first trace entry of the detailed error page |
| 50 | + |
| 51 | +The page offers three buttons: |
| 52 | + |
| 53 | +:guilabel:`Toggle details` |
| 54 | + Hides the file contents of every trace entry and brings them back, which |
| 55 | + turns the trace into a short overview. |
| 56 | + |
| 57 | +:guilabel:`Copy plaintext stack trace` |
| 58 | + Copies the whole trace as text, without the file contents. This is the |
| 59 | + text to paste into a bug report or a request for help. |
| 60 | + |
| 61 | +:guilabel:`Copy path` |
| 62 | + Sits beside every file in the trace and copies that file and its line as |
| 63 | + `path/to/File.php:42`, without the path of your project in front, so that |
| 64 | + you can paste it into your editor or IDE to open the file. |
| 65 | + |
| 66 | +Before you pass the copied trace on, read through it and remove anything |
| 67 | +sensitive, such as passwords, keys or personal data. The page reminds you of |
| 68 | +this at the end of the trace. |
| 69 | + |
| 70 | +.. note:: |
| 71 | + Copying to the clipboard needs a secure connection. If your site runs on |
| 72 | + `http://` instead of `https://`, a browser such as Firefox refuses to |
| 73 | + copy, and the buttons report that they could not copy. |
| 74 | + :guilabel:`Copy plaintext stack trace` then writes the text into a box on |
| 75 | + the page, already selected, so that you can copy it by hand. |
| 76 | + |
| 77 | +If the exception has a code, the box **Get help in the TYPO3 Documentation** |
| 78 | +links to the page about that code in the |
| 79 | +:ref:`TYPO3 exceptions reference <t3exceptions:start>`, where the community |
| 80 | +collects solutions. |
0 commit comments