Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
With devel.module on, all php errors are printed to screen, and not to the logs, despite my settings in admin/settings.
I didn't see any devel setting to change that behaviour.
This happens both for the admin and for an anonymous user.
Is this a feature or a bug?
I was using devel module on my live site to see each page's computing time, but now I have to turn it off when I am not working with it.
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedseems like a bug to me. patches welcome.
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedwell, drupal's error handling is skipped so your site will behave with whatever php settings are in place for log messages. i think this should be fixed with a note in the README. perhpas someone will suggest language.
Comment #3
beginner CreditAttribution: beginner commentedWhich php settings? You mean php.ini?
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedyes, the display_errors setting.
Comment #5
JohnAlbinI wouldn't mind patching this, but I'd like to understand the purpose of calling restore_error_handler() on line 132. I don't see drupal calling set_error_handler() anywhere.
Anyone have some enlightenment?
Comment #6
moshe weitzman CreditAttribution: moshe weitzman commentederror handling is improved in 5.0 and head
Comment #7
(not verified) CreditAttribution: commented