stayallive / wp-sentry

A (unofficial) WordPress plugin reporting PHP and JavaScript errors to Sentry.
https://wordpress.org/plugins/wp-sentry-integration/
MIT License
300 stars 48 forks source link

ExcimerProfiler not found when enabling profiling #198

Closed rieschl closed 1 month ago

rieschl commented 1 month ago

It seems that there is some issue with autoloading all classes. When setting the WP_SENTRY_PROFILES_SAMPLE_RATE constant everytime a profile is to be made the application generates an error: Uncaught Error: Class "WPSentry\\ScopedVendor\\ExcimerProfiler" not found in [...]/wp-content/plugins/wp-sentry-integration/build/vendor/sentry/sentry/src/Profiling/Profiler.php:66

Thanks for your help!

stayallive commented 1 month ago

Ah, another fun prefix bug 🙈

I've pushed https://github.com/stayallive/wp-sentry/releases/tag/v7.20.0, let me know if that solves it correctly!

rieschl commented 1 month ago

Ah, another fun prefix bug 🙈

I've pushed https://github.com/stayallive/wp-sentry/releases/tag/v7.20.0, let me know if that solves it correctly!

ah it seems that 7.20 works now as expected. Thanks for the quick fix!

stayallive commented 1 month ago

Cool, thanks for the quick test!