Hi,
1) WordPress version 5.8.1
Current theme: X Pro DFX4 Hybrid (version 4.0.0)
Current plugin: WP Activity Log (version 4.3.3.1)
PHP version 7.2.34
2) This happens when certain events that have not been registered are encountered.
In the example above, it’s event code 6059 – Error message: Uncaught Exception: Event with code 6051 has not be registered.
When that happens, the function _CommitItem() in the /wp-content/plugins/wp-security-audit-log/classes/AlertManager.php(355): WSAL_AlertManager file throws an exception:
throw new Exception( sprintf( esc_html__( 'Event with code %d has not be registered.', 'wp-security-audit-log' ), $type ) );
This is not handled by any handler and causes the site to go down temporarily.
It seems there is no exception handler for this. So, would it be possible to implement an exception handler or add a try-catch block that will handle the exception and prevent the site from going down?
3) Yes, the3 plugin works but it brongs down the site from time to time when unregistered events are encountered.