Could not upload on a shared a link

As soon as I upload a file on a shared link, Next cloud is indicating the following error:

Could not upload [filename]

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:


Nextcloud version (eg, 18.0.2): 20.0.0
Operating system and version (eg, Ubuntu 20.04): Linux 5.4.66-gentoo-x86_64 x86_64
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1): PHP 7.4

Error log files found in Nextcloud:

webdav] Fatal: Error: Call to a member function getUsersFavoritingObject() on null at <>

  1. /home_pr6/s/t/ line 242
    OCA\Activity\FilesHooks->getFileChangeActivitySettings(572, [“k9moq2”])
  2. /home_pr6/s/t/ line 158
    OCA\Activity\FilesHooks->addNotificationsForFileAction("/Upload/halterwechsel (3).pdf", “file_created”, “”, “created_public”)
  3. /home_pr6/s/t/ line 47
    OCA\Activity\FilesHooks->fileCreate("/Upload//halterwechsel (3).pdf")
  4. /home_pr6/s/t/ line 110
    OCA\Activity\FilesHooksStatic::fileCreate({path: “/Upload//halterwechsel (3).pdf”})
  5. /home_pr6/s/t/ line 407
    OC_Hook::emit(“OC_Filesystem”, “post_create”, {path: “/Upload//halterwechsel (3).pdf”})
  6. /home_pr6/s/t/ line 340
  7. /home_pr6/s/t/ line 155
  8. /home_pr6/s/t/ line 1104
    OCA\DAV\Connector\Sabre\Directory->createFile(“halterwechsel (3).pdf”, null)
  9. /home_pr6/s/t/ line 527
    Sabre\DAV\Server->createFile(“halterwechsel (3).pdf”, null, null)
  10. /home_pr6/s/t/ line 89
    Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
  11. /home_pr6/s/t/ line 474
    Sabre\DAV\Server->emit(“method:PUT”, [Sabre\HTTP\Requ … }])
  12. /home_pr6/s/t/ line 251
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
  13. /home_pr6/s/t/ line 319
  14. /home_pr6/s/t/ line 113
  15. /home_pr6/s/t/ line 81
    require_once("/home_pr6/s/t/s … p")

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:


The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):


The output of your Apache/nginx/system log in /var/log/____:


There was a bug in 20.0.0
Deactivate Activity App or update to 20.0.1

1 Like

Thank you so much devnull the problem is solved by updating to 20.0.1