Sharing app not working

Hello guys !

I’ve got a problem on my nextcloud Server since I upgraded to v12.
The sharing app aint working anymore…
I’ve this result when I use this occ command : sudo -u www-data php occ integrity:check-app --path=apps/files_sharing/ files_sharing

Result :

Analysing /opt/nextcloud/apps/files_sharing/lib/ShareBackend/File.php
5 errors
line 126: == - is discouraged
line 136: == - is discouraged
line 159: == - is discouraged
line 165: == - is discouraged
line 210: OCP\DB - Static method of deprecated class must not be called
Analysing /opt/nextcloud/apps/files_sharing/lib/ShareBackend/Folder.php
6 errors
line 51: OCP\User::getDisplayName - Method of deprecated class must not be called
line 52: OCP\User::getDisplayName - Method of deprecated class must not be called
line 72: OCP\DB - Static method of deprecated class must not be called
line 83: OCP\DB - Static method of deprecated class must not be called
line 92: OCP\DB - Static method of deprecated class must not be called
line 99: == - is discouraged
Analysing /opt/nextcloud/apps/files_sharing/lib/Cache.php
1 errors
line 130: OC_User - Static method of private class must not be called
Analysing /opt/nextcloud/apps/files_sharing/lib/Controller/RemoteController.php
2 errors
line 112: OC_User - Static method of private class must not be called
line 175: OC_User - Static method of private class must not be called
Analysing /opt/nextcloud/apps/files_sharing/lib/Controller/ShareController.php
10 errors
line 36: OC_Files - private class must not be imported with a use statement
line 37: OC_Util - private class must not be imported with a use statement
line 244: OC_Hook - Static method of private class must not be called
line 278: OC_User - Static method of private class must not be called
line 435: OC_User - Static method of private class must not be called
line 499: OC_Util - Static method of private class must not be called
line 500: OC_Util - Static method of private class must not be called
line 517: == - is discouraged
line 530: OC_Files - Static method of private class must not be called
line 535: OC_Files - Static method of private class must not be called
Analysing /opt/nextcloud/apps/files_sharing/lib/Helper.php
15 errors
line 54: OC_User - Static method of private class must not be called
line 61: OC_Response - Static method of private class must not be called
line 66: OCP\JSON - Static method of deprecated class must not be called
line 67: OC_Util - Static method of private class must not be called
line 68: OC_Util - Static method of private class must not be called
line 75: OC_Response - Static method of private class must not be called
line 76: OCP\JSON - Static method of deprecated class must not be called
line 82: OC_Response - Static method of private class must not be called
line 83: OCP\JSON - Static method of deprecated class must not be called
line 135: != - is discouraged
line 135: User::getUser - Method of deprecated class must not be called
line 159: OCP\DB - Static method of deprecated class must not be called
line 183: User::getUser - Method of deprecated class must not be called
line 186: != - is discouraged
line 186: User::getUser - Method of deprecated class must not be called
Analysing /opt/nextcloud/apps/files_sharing/lib/External/Manager.php
2 errors
line 201: OC_Util - Static method of private class must not be called
line 215: OC_Hook - Static method of private class must not be called
Analysing /opt/nextcloud/apps/files_sharing/lib/Updater.php
3 errors
line 93: OCP\User::getUser - Method of deprecated class must not be called
line 94: OCP\User::getUser - Method of deprecated class must not be called
line 97: OCP\User::getUser - Method of deprecated class must not be called
Analysing /opt/nextcloud/apps/files_sharing/templates/public.php
2 errors
line 76: == - is discouraged
line 123: OCP\Util::linkTo - Method of deprecated class must not be called
Analysing /opt/nextcloud/apps/files_sharing/ajax/shareinfo.php
5 errors
line 30: OCP\JSON - Static method of deprecated class must not be called
line 33: OC_Response - Static method of private class must not be called
line 41: OC_Response - Static method of private class must not be called
line 78: OCP\JSON - Static method of deprecated class must not be called
line 111: OCP\JSON - Static method of deprecated class must not be called
Analysing /opt/nextcloud/apps/files_sharing/public.php
1 errors
line 31: OC_Response - Static method of private class must not be called
App is not compliant

I’ve tried to redo the upgrade from start but it aint change anything… :sweat:

PS : sorry I’m not fluent in english

Edit : Résolu sans trop d’explications…

Hi,
How did you solve the problem?

Solution: