Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain the whoops page #2260

Merged
merged 2 commits into from
Sep 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion user_guide_src/source/installation/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,29 @@ requests properly.
The solution: use Apache to serve your site, or else the built-in
CodeIgniter equivalent, ``php spark serve`` from your project root.

.. |CodeIgniter4 Welcome| image:: ../images/welcome.png
.. |CodeIgniter4 Welcome| image:: ../images/welcome.png

What's with an unhelpful "Whoops!" page?
------------------------------------------------------

You find that your app is displaying a page with "Whoops!" and
then the text line "We seem to have hit a snag. Please try again later...".

That is a sign that you are in production mode and have hit an
unrecoverable error, which we don't want to show to the viewer of
the webapp, for better security.

You can see the error in the debug toolbar display by setting your environment to
"development" (in `.env`), and reloading the page.

Don't forget to reset the environment to "production" once you fix the problem!

CodeIgniter Error Logs
-------------------------------------------------------

CodeIgniter logs error messages, according to the settings in `app/Config/Logger.php`.

You can adjust the error threshold to see more or fewer messages.

The default configuration has daily log files stored in `writable/logs`.
It would be a good idea to check them if things aren't working the way you expect!