Skip to content

Commit a398e4f

Browse files
committed
Explain the whoops page
1 parent 064d85b commit a398e4f

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

user_guide_src/source/installation/troubleshooting.rst

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,19 @@ requests properly.
5252
The solution: use Apache to serve your site, or else the built-in
5353
CodeIgniter equivalent, ``php spark serve`` from your project root.
5454

55-
.. |CodeIgniter4 Welcome| image:: ../images/welcome.png
55+
.. |CodeIgniter4 Welcome| image:: ../images/welcome.png
56+
57+
What's with an unhelpful "Whoops!" page?
58+
------------------------------------------------------
59+
60+
You find that your app is displaying a page with "Whoops!" and
61+
then the text line "We seem to have hit a snag. Please try again later...".
62+
63+
That is a sign that you are in production mode and have hit an
64+
unrecoverable error, which we don't want to show to the viewer of
65+
the webapp, for better security.
66+
67+
You can see the error in the debug toolbar display by setting your environment to
68+
"development" (in `.env`), and reloading the page.
69+
70+
Don't forget to reset the environment to "production" once you fix the problem!

0 commit comments

Comments
 (0)