-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exception in 2.0.1 #7
Comments
Ran into this issue - if the edit can be made to the Craft 4.0 version (heads up that the README title needs to be updated on that branch too ... it says its for the 3.0 version) that would be awesome to ensure we have no future issues. With Craft 4 still being an active release it makes sense to patch :) |
Yes, makes sense to patch - I'll have a look and try to get a fix out asap! |
@justinholtweb that might remove the error but it will break the plugin I think. The initial code ( |
Hey @justinholtweb @cherrykoda, I pushed an update with some changes related to this (2.1.1) but couldn't reproduce the issue myself. We recently started adding the plugin to all are builds and haven't seen this error there either... Can you try the latest release and see if that changes anything? |
@janhenckens has 2.1.1 been released? I don't see it in releases and can't install that version locally. I do see 2.1.0, is that the proper release? |
@janhenckens Installing 2.1.0 results in the following error: Exception 'Error' with message 'Call to a member function getSettings() on null' in /var/www/html/vendor/statikbe/craft-sentry/src/Sentry.php:76 Stack trace: |
While I am seeing a 2.1.1 tag here on github, its not findable in composer.
I did make the edit manually (the one on 2.1.1 compared to 2.1.0) with no effect to the outcome. The System is on:
Other Notable Plugins:
|
Forgot to push 2.1.1, sorry about that - should be available now! Are you seeing the error when an exception happens or on any page? |
@janhenckens this is on throwing an exception, and 2.1.1 is still not installing via composer (sorry!) Edited to add exception code (from README example):
|
Hey @justinholtweb @cherrykoda, I was any from the office for a couple of weeks and sort of forgot about this issue - if this is still happening in your project(s), would you be open to sharing the composer.json, composer.lock & database so we can try to reproduce it on our end? |
In the 2.0.1 version on Craft 4.12.1 - the main plugin file throws an exception on the
handleException
method --PHP Warning ‘yii\base\ErrorException’ with message ‘Attempt to read property “sentry” on null’ in /var/www/html/vendor/statikbe/craft-sentry/src/Sentry.php:74
Editing the main plugin class method
handleException
to call the main class withself::$plugin->handleException($exception);
instead ofSentry::$plugin->sentry->handleException($exception);
fixes this issue, but since yourmain
anddevelop
branches are both on 5.0.0 I don't know how to submit a PR for 2.0.1 which is used on Craft 4.The text was updated successfully, but these errors were encountered: