# Waarom werkte mijn plugin na maanden niet meer?

**URL:** <https://meta.discourse.org/t/why-did-my-plugin-stop-working-after-months/216149>\
**Category:** Product Support\
**Created:** [27 januari 2022 om 00:27 UTC](https://meta.discourse.org/t/why-did-my-plugin-stop-working-after-months/216149 "2022-01-27T00:27:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [30 januari 2022 om 15:29 UTC](https://meta.discourse.org/t/why-did-my-plugin-stop-working-after-months/216149/2 "2022-01-30T15:29:36Z")

</div>

> [@wilson29thid](#):
>
> `uninitialized constant Auth::DefaultCurrentUserProvider`

I just found this topic while looking for a solution for the same issue, and in the meanwhile I have found a solution.

The include for the class definitiion should now be within the `after_initialize` block, otherwise it does not work anymore.

---

_[View the full topic](https://meta.discourse.org/t/why-did-my-plugin-stop-working-after-months/216149)._
