2

I have php v5.3.2 on ubuntu 10.04. i changed the reporting options in /etc/php5/apache2/php.ini to these:

display_errors = 1
error_reporting = E_ALL

I also added these lines to the top of my php files and restarted apache but im still not able to see the errors/warnings,

ini_set('display_errors',1);
error_reporting(E_ALL);

Is there anything else in the way that prevents the errors from showing up?

Edit 1: According to phpinfo(), both display_errors and display_startup_errors are on. The value of error_reporting is also 30719 which i'm not quite sure what it means.

6
  • 3
    Did you check the actual values of these configuration directives using ini_get? Commented Feb 16, 2011 at 18:54
  • run phpinfo() and see local values. what are they? Commented Feb 16, 2011 at 18:55
  • 2
    may be you're editing wrong php.ini. phpifo() could help with that too - see ini file location Commented Feb 16, 2011 at 18:57
  • Yes i checked phpinfo and the display_errors is on. Commented Feb 16, 2011 at 19:02
  • As quick test try set_error_handler("var_dump"); to find out if display_errors=0 is still the problem. Commented Feb 16, 2011 at 19:02

1 Answer 1

1

Could you try error_reporting(-1); ?

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

8 Comments

@Col. Shrapnel it's worth a try. According to the manual, it's the same as setting E_ALL.
wow it started working, Thanks alot man. Is there any logic behind why E_ALL was not working?
@Erfan nope, it worked because of other your moves and you still be able to see most of errors under E_ALL if it's really set
@optimystique nope it's not. nothing is worth to try if coming from ignorance and guess work
I am of romantic kind and if I help to born one programmer out of 100 000 lamers here, I'll be statisfied
|

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.