Skip to content

Commit 47a328d

Browse files
authored
[FEATURE] Describe the detailed error page and how to share its trace (#903)
Beginners meet the detailed error page on their local installation long before they know what a stack trace is for. Since TYPO3 14.2 the page copies its trace as text, which is what a bug report or a request for help needs. The new troubleshooting page explains when which error page shows, what its buttons do, and to check the trace for sensitive data before passing it on. References: TYPO3-Documentation/Changelog-To-Doc#1578 Releases: main, 14.3 Assisted-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lina Wolf Signed-off-by: Lina Wolf
1 parent cb31b27 commit 47a328d

3 files changed

Lines changed: 85 additions & 0 deletions

File tree

77.4 KB
Loading
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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.

‎Documentation/Troubleshooting/Index.rst‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,14 @@ Troubleshooting
2323

2424
Troubleshooting server and administration related topics.
2525

26+
.. card:: :ref:`Error pages <troubleshooting-error-page>`
27+
28+
Read an error page and pass its stack trace on when you ask for help.
29+
2630
.. toctree::
2731
:hidden:
2832
:titlesonly:
2933

3034
BackendLogin
3135
WebServer
36+
ErrorPage

0 commit comments

Comments
 (0)