I have strange error on activate my own plugin for WordPress.
On activate plugin I get only message "Plugin could not be activated because it triggered a fatal error." And that's all (see http://prntscr.com/snxdkw ). I don't get more errors, after enable debug mode I get only errors with level E_NOTICE, that's no critical.
That error showing only on live server, locally all ok. Googling has no effects
Local:
PHP: 7.3.16
WordPress: 5.4.1
Server:
PHP: 7.3.16
WordPress: 5.4.1
I tried:
- Enabled debug log on local and server (result: no critical errors)
- Fixed all errors
- Reactivate plugin on my local WordPress (result: locally no same error)
- Looked in PHP log on server (result: no critical errors)
- Tryed follow from error message to error handler in WP core for understanding error initiator (result: not found error initiator)
- Wrote debug messages to debug.log in register_activation_hook and register_deactivation_hook (result: I don't get my debug messages, I think WordPress doesn't reach to register_activation_hook() )