User-Plugin fails completely

I am relatively new to October CMS and am currently supporting the upgrade from v1 to v3 for an existing system.

The v3 is now running for the most part, but the user plugin is causing us problems:

When submitting the user registration form:
‘Call to undefined method RainLab\User\Models\User::getActivationCode()’ on line 71 of /app/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php

If you want to log in via the form using correct credentials:
‘Unauthenticated.’ on line 40 of /app/vendor/laravel/framework/src/Illuminate/Auth/GuardHelpers.php

If you want to perform the password lookup via the form.
‘Call to undefined method RainLab\User\Models\User::findByEmail()’ on line 71 of /app/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php

We have already upgraded the user plugin to v3.2, but unfortunately without success.

Our Env:
laravel/framework 9.52
rainlab/user-plugin 3.2
october 3.7.10

Does anyone happen to know about this problem and how to fix it?
Thx!

Hi, sorry to hear about that.
Upgrading to the user plugin v3 will require update of your current code.
The logic is little bit different, and the components are also little bit different.
If you are not using the user plugin components out of the box, it is likely taht you need to look and revise your overriding code. Mostly twig page and partials I am guessing.

Hi chris,

actually, the update of the user plugin to v3 was only carried out because it had not worked before. Until then it was not even listed in the composer.json…

Would it make sense to downgrade the plugin in this case and how should this be done?

Hi @Punga,

If you have to choose between reverting to an older version or moving forward, it’s likely more worthwhile to follow Chris’s advice—adjust the broken partials and code now. That way, you’ll be able to keep the plugin updated going forward.