Error while trying to create a new user

Nextcloud version : 20.0.14
Operating system and version: Debian 9
PHP version : 7.2
Hello,
I’m getting an error (bad request) while trying to create a new user.
Thanks for your help.

Is this the first time you’ve seen this error? (Y)

Nextcloud 20 is unsupported. Also your Debian and PHP versions are very old. Change to new versions. At some point you will have to upgrade or completely reinstall on a new software basis.

Can you post some logs? Then maybe we can help you.

Thanks @devnull . I’m getting this error while trying to create a new user via CLI:
“Could not resolve UserHooks! Class UserHooks does not exist”