Answers.Body: <p>Cleared the log files found at <code>/storage/logs/web.log</code>.</p>
  
  <p>Tried to view an inner page on the website which threw a Craft "Internal Server Error". </p>
  
  <p>Inside the log, I saw "Twig\Error\SyntaxError: Unknown "dump" function". </p>
  
  <p>Googled that message and found the solution.</p>
  
  <p>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.</p>
  
  <p>That is why my inner pages would not load.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-27T15:38:06.100Z
Answers.LastActivityDate: 2019-09-28T03:47:31.967Z
Answers.LastEditDate: 2019-09-28T03:47:31.967Z
Answers.UserDisplayName: BrianMc
Body: <p>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?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-24T22:42:27.497Z
Comments.Text: Is it a Craft-styled Internal Server Error page or a web server styled one? If it's Craft, then the underlying error message should be in the Craft log files. Otherwise, it should be in your web server's error logs.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-25T17:46:23.853Z
Comments.Text: Looks like a Craft-styled error page (white box in the center of the page). I'm not even sure what to look for in the Craft log files if it is indeed a Craft error. And, curiously, why would Craft throw a server error when switching devMode to false, but work just fine when set to true?
Comments.UserDisplayName: BrianMc
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-25T19:43:02.873Z
Comments.Text: Nuke the Craft logs, reproduce the issue, then search for `[error]` in the Craft logs and see what comes up.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-26T18:51:27.793Z
Comments.Text: Glad you're sorted, @BrianMc - would you mind adding that as an official answer instead of a comment? Might end up helping someone in the future.
Comments.UserDisplayName: Brad Bell
Tags: <error-message><devmode><404-page>
Title: devMode false, Internal Server Error
ThreadText: # devMode false, Internal Server Error
  
  (Asked by: username_0 on 2019-09-24)
  
  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?
  
  **Tags:** error-message, devmode, 404-page
  
  > **Comments:**
  > **username_1**: Is it a Craft-styled Internal Server Error page or a web server styled one? If it's Craft, then the underlying error message should be in the Craft log files. Otherwise, it should be in your web server's error logs.  
  > **username_0**: Looks like a Craft-styled error page (white box in the center of the page). I'm not even sure what to look for in the Craft log files if it is indeed a Craft error. And, curiously, why would Craft throw a server error when switching devMode to false, but work just fine when set to true?  
  > **username_1**: Nuke the Craft logs, reproduce the issue, then search for `[error]` in the Craft logs and see what comes up.  
  > **username_1**: Glad you're sorted, @username_0 - would you mind adding that as an official answer instead of a comment? Might end up helping someone in the future.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-09-27. Score: 3
  
  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.
  
  
  ---
  
  