1

Today I noticed that for some reason, my PHP dev environment is not displaying any errors, for syntax or otherwise.

Was working on a WordPress plugin (with debug on for WordPress), and tested it by putting in a file

Nothing. No errors, no warnings, nothing. I know the file is being called, because I manually went to that file. Still nothing. Any ideas?

2
  • 4
    Have you tried error_reporting(E_ALL); and checking the php.ini settings for display_errors? Commented May 29, 2013 at 20:45
  • 1
    @tftd Can you post as answer so I can accept it? Commented May 29, 2013 at 20:48

3 Answers 3

2

Try setting error_reporting(E_ALL); and check php.ini settings for display_errors

Sign up to request clarification or add additional context in comments.

Comments

1

As tftd pointed out, the display_errors php.ini option was set to off.

2 Comments

Can you please accept this answer so people who find this question in the future see it quickly?
You can't accept your own answer for 48 hours after posting a question.
0

use echo error_reporting(); in php code of your dev env and compare it to error_reporting settings in phpinfo() (also in php dev env).

If equal, then check php.ini as it was told above.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.