Open nickrandolph opened 5 years ago
It is working, but sometimes it throws this error:
Fatal error: Uncaught TypeError: Argument 1 passed to ApplicationInsights\WordPress\Server_Instrumentation::exceptionHandler() must be an instance of Exception, instance of Error given in
Can someone fix this please?
@korwinus Just remove \Exception
from that method declaration.
If I am not mistaken, older versions of PHP send Error
and newer Exception
(or the other way around) for exception handling... in any case, removing \Exception
fixes the issue.
FYI, PR #23 has that changed and some other small changes... you are welcome to try it :)
The plugin is currently appearing as "untested" against the last three major versions of WordPress. Before we use this plugin, it would be good to understand if it is still going to be supported by Microsoft?