Exception: Class 'OCP\User' not found

hi, After installing some applications on my nextcloud, I get an error message when I try to view my files. The message says that the server is not able to access my request and asks me to look at the logs.

I found this in the logs:

Exception: Class 'OCP\User' not found
/var/www/html/lib/private/AppFramework/App.php - line 156:

OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files\Co ... {}, "index")

/var/www/html/lib/private/Route/Router.php - line 301:

OC\AppFramework\App::main("OCA\\Files\ ... r", "index", OC\AppFramew ... {}, { _route: "files.view.index"})

/var/www/html/lib/base.php - line 1000:

OC\Route\Router->match("/apps/files/")

/var/www/html/index.php - line 36:

OC::handleRequest()

Causé par Error: Class 'OCP\User' not found
/var/www/html/apps/files/lib/Controller/ViewController.php - line 136:

include()

/var/www/html/apps/files/lib/Controller/ViewController.php - line 276:

OCA\Files\Controller\ViewController->renderScript("dropit", "list.php")

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 217:

OCA\Files\Controller\ViewController->index("", "", null, false, null)

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 126:

OC\AppFramework\Http\Dispatcher->executeController(OCA\Files\Co ... {}, "index")

/var/www/html/lib/private/AppFramework/App.php - line 156:

OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files\Co ... {}, "index")

/var/www/html/lib/private/Route/Router.php - line 301:

OC\AppFramework\App::main("OCA\\Files\ ... r", "index", OC\AppFramew ... {}, { _route: "files.view.index"})

/var/www/html/lib/base.php - line 1000:

OC\Route\Router->match("/apps/files/")

/var/www/html/index.php - line 36:

OC::handleRequest()

please help

1 Like

finally ! It the “dropit” app the problem. Just uninstall and here we go again

4 Likes