0

In my PHP.ini, I have it set to log errors to a file, and display_errors is OFF.

However, my errors are NEVER being logged... anyone know what common issues are, or what could be preventing them from being logged?

There's definitely no overwritting issues in my code (I wrote the code, and I've never changed anything related to errors via the code...).

Thanks.

Shackrock
  • 208
  • 6
  • 16

1 Answers1

1
  • Be sure you modify the proper php.ini file (this may sound silly but I've had this problem many times). phpinfo() is your friend here to tell you which ini file is used.
  • Be sure the folder where the log file should be written is writable
  • Post your configuration (don't forget to hide secure information) and which OS you run.
Olivier Pons
  • 622
  • 1
  • 5
  • 22
  • Also check what your error_reporting levels are. Set them low enough and you'll never report an error... – OldTroll Jun 06 '11 at 21:40
  • You may have said "**if** you set them too low you'll never report an error" because if some foreign people like me read you answer it might be confusing ("set them" = could be and advice to do so). – Olivier Pons Jun 07 '11 at 07:16