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:
Problem was resolved.
json_decode() gave null as result, but this data put on function with array type variable. I don't know why PHP didn't give any errors.
Problem solved via inline checking lines step-by-step.