Closed saas786 closed 4 months ago
Quick troubleshooting: It appears the issue is caused by unprefixed references to code, while Composer loads prefixed vendors due to PHP-Scoper.
That's not good. Let me see what is going on there and how we can work around it.
Thanks for your detailed report, found it quickly and added a fix.
https://github.com/stayallive/wp-sentry/releases/tag/v7.17.1 is out and should fix the issue!
I can see your workaround.
However, you should properly prefix your code instead of using conditional prefixes.
If you are interested, I can update PHP-Scoper to the latest version and ensure your code is properly prefixed, eliminating the need for conditional checks.
This plugin can also be installed without prefix using composer for projects that do that and also local development is easier this way. I agree this isn't optimal but it also isn't too bad (yet).