-
Notifications
You must be signed in to change notification settings - Fork 4
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
Turn on error display for local server #177
Conversation
pdewouters
commented
Jul 6, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linting failed (1 error).
1 notice occurred in your codebase, but none on files/lines included in this PR.
It looks like this will mean display_errors will no longer be on for non-cli (as that line of code got removed?) Could we just set this for cli & fpm by setting the value in https://github.com/humanmade/altis-local-server/blob/master/docker/php.ini? |
Ah thanks for linking @pdewouters -- could you link the original issues in subsequent PRs too to give extra context. It looks like that acceptance criteria actually came from @roborourke! He edited my comment :D It does actually looked like we want to rmove display_errors from the web context per @rmccue 's response:
I guess that's fine, though I'm not entirely sure why we don't want to show errors in the web context! In which case anyway, judging by the notes on #123 then this PR is good to go. |
I think this should be set in the .ini rather than in wp-config FWIW |
@rmccue that will affect both web and cli though, which you comment specifically recommends against I think? |
Yeah; I think local-server might need to distinguish the two SAPIs and separate the configuration, the same way that e.g. Ubuntu PHP does. |