trigger_error does not work when plugin active
-
When this plugin is active (and, for notices,
WP_DEBUG
set totrue
),trigger_error
does not log anything in the expected location.I see the reason is
\stcr\stcr_utils::__construct()
callsset_error_handler()
to set its own error handler.There does not seem to be any mechanism to prevent that from happening. Is there one? Also, with your overridden error handler, where do the messages actually get logged (I can’t find any log file)?
May I suggest the error handler be removed. It should not be down to individual plugins to control and change global error handling and reporting (for which there are already well-defined mechanisms via
php.ini
andWP_DEBUG
-related constants – with the exception of plugins specifically for that purpose).The page I need help with: [log in to see the link]
- The topic ‘trigger_error does not work when plugin active’ is closed to new replies.