Cannot share things

Hi there,

i cannot share anything anymore. i am running 24.0.6 on debian. as the user trying to get a shared file i get this message:

the settingsoverview does not show anything:

but in the logfiles i see this:


[index] Fehler: Exception: OCA\Files_Reader\Listeners\LoadViewerListener::__construct(): Argument #3 ($userId) must be of type string, null given in file '/web/nextcloud/apps/files_reader/lib/Listeners/LoadViewerListener.php' line 32 at <<closure>>

0. /web/nextcloud/lib/private/AppFramework/App.php line 172
   OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Sharin ... {}, "showShare")
1. /web/nextcloud/lib/private/Route/Router.php line 298
   OC\AppFramework\App::main("OCA\\Files_Shar ... r", "showShare", OC\AppFramework\ ... {}, ["ePeAc76pgGf4fT ... "])
2. /web/nextcloud/lib/base.php line 1030
   OC\Route\Router->match("/s/ePeAc76pgGf4fTP")
3. /web/nextcloud/index.php line 36
   OC::handleRequest()

GET /index.phppgGf4fTP
from 77.23.219.105 at 2022-10-31T06:40:58+00:00





{"reqId":"37RcUg5jQ6PAzG8IDzHF","level":3,"time":"2022-10-31T06:40:58+00:00","remoteAddr":"77.23.219.105","user":"--","app":"index","method":"GET","url":"/index.phppgGf4fTP","message":"OCA\\Files_Reader\\Listeners\\LoadViewerListener::__construct(): Argument #3 ($userId) must be of type string, null given in file '/web/nextcloud/apps/files_reader/lib/Listeners/LoadViewerListener.php' line 32","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15","version":"24.0.6.1","exception":{"Exception":"Exception","Message":"OCA\\Files_Reader\\Listeners\\LoadViewerListener::__construct(): Argument #3 ($userId) must be of type string, null given in file '/web/nextcloud/apps/files_reader/lib/Listeners/LoadViewerListener.php' line 32","Code":0,"Trace":[{"file":"/web/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareController"},"showShare"]},{"file":"/web/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareController","showShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},["ePeAc76pgGf4fTP","files_sharing.Share.showShare"]]},{"file":"/web/nextcloud/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/s/ePeAc76pgGf4fTP"]},{"file":"/web/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/web/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":165,"Previous":{"Exception":"TypeError","Message":"OCA\\Files_Reader\\Listeners\\LoadViewerListener::__construct(): Argument #3 ($userId) must be of type string, null given","Code":0,"Trace":[{"function":"__construct","class":"OCA\\Files_Reader\\Listeners\\LoadViewerListener","type":"->","args":[{"__class__":"OC\\AppFramework\\Services\\InitialState"},{"__class__":"OC\\AllConfig"},null]},{"file":"/web/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":108,"function":"newInstanceArgs","class":"ReflectionClass","type":"->","args":[[{"__class__":"OC\\AppFramework\\Services\\InitialState"},{"__class__":"OC\\AllConfig"},null]]},{"file":"/web/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"__class__":"ReflectionClass","name":"OCA\\Files_Reader\\Listeners\\LoadViewerListener"}]},{"file":"/web/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":133,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Files_Reader\\Listeners\\LoadViewerListener"]},{"file":"/web/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Files_Reader\\Listeners\\LoadViewerListener"]},{"file":"/web/nextcloud/lib/private/ServerContainer.php","line":145,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Files_Reader\\Listeners\\LoadViewerListener"]},{"file":"/web/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":71,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCA\\Files_Reader\\Listeners\\LoadViewerListener"]},{"file":"/web/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[{"__class__":"OCA\\Viewer\\Event\\LoadViewer"},"OCA\\Viewer\\Event\\LoadViewer",{"__class__":"Symfony\\Component\\EventDispatcher\\EventDispatcher"}]},{"file":"/web/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"}],"OCA\\Viewer\\Event\\LoadViewer",{"__class__":"OCA\\Viewer\\Event\\LoadViewer"}]},{"file":"/web/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":88,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\Viewer\\Event\\LoadViewer"},"OCA\\Viewer\\Event\\LoadViewer"]},{"file":"/web/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":100,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCA\\Viewer\\Event\\LoadViewer",{"__class__":"OCA\\Viewer\\Event\\LoadViewer"}]},{"file":"/web/nextcloud/apps/files_sharing/lib/Controller/ShareController.php","line":529,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\Viewer\\Event\\LoadViewer"}]},{"file":"/web/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"showShare","class":"OCA\\Files_Sharing\\Controller\\ShareController","type":"->","args":[""]},{"file":"/web/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareController"},"showShare"]},{"file":"/web/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareController"},"showShare"]},{"file":"/web/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareController","showShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},["ePeAc76pgGf4fTP","files_sharing.Share.showShare"]]},{"file":"/web/nextcloud/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/s/ePeAc76pgGf4fTP"]},{"file":"/web/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/web/nextcloud/apps/files_reader/lib/Listeners/LoadViewerListener.php","Line":32},"CustomMessage":"--"},"id":"635f6e08efd31"}

can anyone point me in the right direction what could be wrong here?

thanks a lot,

pcace

Try disabling the “files_reader” app.

1 Like

Hi it did not do the trick. i also realized, that when i go to settings and click on “System” i also get the blue error Page and this error in the Log:

[index] Fehler: Exception: Call to undefined function OCA\ServerInfo\OperatingSystems\shell_exec() in file '/web/nextcloud/apps/serverinfo/lib/OperatingSystems/DefaultOs.php' line 227 at <<closure>>

0. /web/nextcloud/lib/private/AppFramework/App.php line 172
   OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con ... {}, "index")
1. /web/nextcloud/lib/private/Route/Router.php line 298
   OC\AppFramework\App::main("OCA\\Settings\\ ... r", "index", OC\AppFramework\ ... {}, ["serverinfo","s ... "])
2. /web/nextcloud/lib/base.php line 1030
   OC\Route\Router->match("/settings/admin/serverinfo")
3. /web/nextcloud/index.php line 36
   OC::handleRequest()

GET /index.phpadmin/serverinfo
from 89.247.166.96 by user at 2022-10-31T12:38:53+00:00

So the Problem seems to be deeper than just an installed Plugin right? Any Idea where i could look for it?

Thanks a lot!!

I would try to ignore this error because it is only reporting that OS specific information cannot be fetched. Are yoju still unable to access Nextcloud?

Hi, yes - but ist quite strange. it was the plugin (i guess) but i have to delete it not only disable it.
It can also be the update to PHP8.1 wich i also wanted to do for a longer time…