You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As long as I can remember I have always had a little pop-up error message (below) when attempting to permanently delete a post. The post appears to delete perfectly fine, but an error message is received.
Today I installed and set-up Sentry using the fof/Sentry extension and a new issue is automatically created in Sentry whenever I try to delete a post forever:
Symfony\Component\Debug\Exception\FatalThrowableError Argument 1 passed to FoF\Gamification\Listeners\RemoveVoteHandler::handle() must be an instance of Flarum\Post\Event\Deleting, instance of Flarum\Post\Event\Deleted given, called in /var/www/html/flarum/vendor/illuminate/events/Dispatcher.php on line 389
I think Deleted is the one that makes the most sense, since another extension could still cancel the deletion in Deleting, while Deleted happens after it was already deleted for sure.
clarkwinkelmann
changed the title
Error when permanently deleting a post (potential bug with gamification extension)
Error when permanently deleting a post
Mar 12, 2021
Hello there,
As long as I can remember I have always had a little pop-up error message (below) when attempting to permanently delete a post. The post appears to delete perfectly fine, but an error message is received.
Today I installed and set-up Sentry using the fof/Sentry extension and a new issue is automatically created in Sentry whenever I try to delete a post forever:
Symfony\Component\Debug\Exception\FatalThrowableError
Argument 1 passed to FoF\Gamification\Listeners\RemoveVoteHandler::handle() must be an instance of Flarum\Post\Event\Deleting, instance of Flarum\Post\Event\Deleted given, called in /var/www/html/flarum/vendor/illuminate/events/Dispatcher.php on line 389
I created a support post on the Flarum forum about this, and was advised to report this as an issue on your Github. (https://discuss.flarum.org/d/26138-error-when-permanently-deleting-a-post)
Many Thanks.
The text was updated successfully, but these errors were encountered: