Wanted to test 404 error page on our beta site. Set devMode to "false" in general.php. When I do this and try to view inner pages on the website, we receive an "internal server error". All inner pages fail and report "internal server error". The homepage works fine. Any ideas?
1 Answer
Cleared the log files found at /storage/logs/web.log
.
Tried to view an inner page on the website which threw a Craft "Internal Server Error".
Inside the log, I saw "Twig\Error\SyntaxError: Unknown "dump" function".
Googled that message and found the solution.
For other newcomers, when you set devMode to true, the dump() function is available in your templates. When you set devMode to false, dump() is not available and Craft throws an internal server error.
That is why my inner pages would not load.
[error]
in the Craft logs and see what comes up.