# Nextcloud 18, maps prevents deletion of shares

**URL:** <https://help.nextcloud.com/t/nextcloud-18-maps-prevents-deletion-of-shares/70069>\
**Category:** ℹ️ Support\
**Tags:** maps-app\
**Created:** [February 3, 2020, 2:26pm UTC](https://help.nextcloud.com/t/nextcloud-18-maps-prevents-deletion-of-shares/70069 "2020-02-03T14:26:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vbec](https://help.nextcloud.com/letter_avatar/vbec/32/5_5575768a8748004e209b776fc1b2916d.png) [@vbec](https://help.nextcloud.com/u/vbec)\
**Post date:** [February 3, 2020, 2:26pm UTC](https://help.nextcloud.com/t/nextcloud-18-maps-prevents-deletion-of-shares/70069/1 "2020-02-03T14:26:06Z")

</div>

Hello everybody,

when I try to delete a share, it doesn’t work.  
When I disable the maps App, it all works fine.

Thank you in advance,  
Volker

> Exception: Call to undefined method OCA\Maps\ServicePhotofilesService::safeDeleteByFolderIdUserId()
> 
> 1. /usr/share/nginx/nextcloud/lib/private/AppFramework/App.php - line 125:OC\AppFramework\Http\Dispatcher-\>dispatch(OCA\Files\_Sh … {}, “deleteShare”)
> 2. /usr/share/nginx/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:OC\AppFramework\App::main(“OCA\Files\_ … r”, “deleteShare”, OC\AppFramew … {}, { id: “99”,\_ … "})
> 3. \<\>OC\AppFramework\Routing\RouteActionHandler-\>\__invoke({ id: “99”,_ … "})
> 4. /usr/share/nginx/nextcloud/lib/private/Route/Router.php - line 299:call\_user\_func(OC\AppFramew … {}, { id: “99”,\_ … "})
> 5. /usr/share/nginx/nextcloud/ocs/v1.php - line 82:OC\Route\Router-\>match(“/ocsapp/app … 9”)
> 6. /usr/share/nginx/nextcloud/ocs/v2.php - line 24:require\_once(“/usr/share/ … p”)
> 
> Verursacht durchError: Call to undefined method OCA\Maps\Service\PhotofilesService::safeDeleteByFolderIdUserId()
> 
> 1. /usr/share/nginx/nextcloud/lib/private/legacy/hook.php - line 111:OCA\Maps\Hooks\FileHooks-\>preUnShare({ id: “99”,i … "})
> 2. /usr/share/nginx/nextcloud/lib/private/Share20/LegacyHooks.php - line 63:OC\_Hook::emit(“OCP\Share”, “pre\_unshare”, { id: “99”,i … "})
> 3. /usr/share/nginx/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 260:OC\Share20\LegacyHooks-\>preUnshare(Symfony\Comp … {}, “OCP\Share::preUnshare”, Symfony\Comp … {})
> 4. /usr/share/nginx/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 235:Symfony\Component\EventDispatcher\EventDispatcher-\>doDispatch([Closure {},Closure {}], “OCP\Share::preUnshare”, Symfony\Comp … {})
> 5. /usr/share/nginx/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 73:Symfony\Component\EventDispatcher\EventDispatcher-\>callListeners([Closure {},Closure {}], “OCP\Share::preUnshare”, Symfony\Comp … {})
> 6. /usr/share/nginx/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php - line 70:Symfony\Component\EventDispatcher\EventDispatcher-\>dispatch(Symfony\Comp … {}, Symfony\Comp … {})
> 7. /usr/share/nginx/nextcloud/lib/private/Share20/Manager.php - line 1121:OC\EventDispatcher\SymfonyAdapter-\>dispatch(“OCP\Share::preUnshare”, Symfony\Comp … {})
> 8. /usr/share/nginx/nextcloud/apps/files\_sharing/lib/Controller/ShareAPIController.php - line 369:OC\Share20\Manager-\>deleteShare(OC\Share20\Share {})
> 9. /usr/share/nginx/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:OCA\Files\_Sharing\Controller\ShareAPIController-\>deleteShare(“99”)
> 10. /usr/share/nginx/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:OC\AppFramework\Http\Dispatcher-\>executeController(OCA\Files\_Sh … {}, “deleteShare”)
> 11. /usr/share/nginx/nextcloud/lib/private/AppFramework/App.php - line 125:OC\AppFramework\Http\Dispatcher-\>dispatch(OCA\Files\_Sh … {}, “deleteShare”)
> 12. /usr/share/nginx/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:OC\AppFramework\App::main(“OCA\Files\_ … r”, “deleteShare”, OC\AppFramew … {}, { id: “99”,\_ … "})
> 13. \<\>OC\AppFramework\Routing\RouteActionHandler-\>\__invoke({ id: “99”,_ … "})
> 14. /usr/share/nginx/nextcloud/lib/private/Route/Router.php - line 299:call\_user\_func(OC\AppFramew … {}, { id: “99”,\_ … "})
> 15. /usr/share/nginx/nextcloud/ocs/v1.php - line 82:OC\Route\Router-\>match(“/ocsapp/app … 9”)
> 16. /usr/share/nginx/nextcloud/ocs/v2.php - line 24:require\_once(“/usr/share/ … p”)

---

<div class="post-metadata">

**Author:** ![Schmu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/schmu/32/7823_2.png) [@Schmu](https://help.nextcloud.com/u/Schmu)\
**Post date:** [February 4, 2020, 10:14am UTC](https://help.nextcloud.com/t/nextcloud-18-maps-prevents-deletion-of-shares/70069/2 "2020-02-04T10:14:49Z")

</div>

Hi Volker,

The Maps app is interfering with the sharing API in a bad way right now. I opened an issue on Github for that already:

> <https://github.com/nextcloud/maps/issues/286>
>
> \### Steps to reproduce
> \- open the share dialog of a file or a folder
> \- enter a…ny username of a user existing on the local NC server
> \- click the shown user name to share the file with him
> 
> \### Expected behaviour
> \- no error message
> \- the added user is listed in the share dialog
> \- I'm able to edit the share permissions
> 
> \### Actual behaviour
> \- error message pops up in the top right corner: "Error creating the share"
> \- the user I tried to share the file with does not appear in the list
> \- first when I reload the page, the user is listed and the file is visibly shared
> \- the other user sees the share under "Pending Shares" (although "always accept" is activated in the personal settings)
> 
> !\[DeepinScreenshot\_select-area\_20200130233024\](https://user-images.githubusercontent.com/26191454/73497552-56a7bc00-43bb-11ea-950b-4ea6a95cc631.png)
> 
> !\[DeepinScreenshot\_select-area\_20200130231531\](https://user-images.githubusercontent.com/26191454/73497570-61fae780-43bb-11ea-87a2-b9437d76461a.png)
> 
> Additional information:
> Unsharing works without any error messages.
> Also: creating shares as public link works without issues. 
> 
> 
> \## Server configuration detail
> 
> \*\*Operating system:\*\* Linux 4.19.98-1-lts nextcloud/server#1 SMP Thu, 23 Jan 2020 10:06:59 +0000 x86\_64
> 
> \*\*Webserver:\*\* nginx/1.16.1 (fpm-fcgi)
> 
> \*\*Database:\*\* mysql 10.4.11
> 
> \*\*PHP version:\*\* 
> 
> 7.4.2
> Modules loaded: Core, date, libxml, openssl, pcre, zlib, ctype, dom, fileinfo, filter, hash, json, mbstring, pcntl, SPL, PDO, bz2, posix, readline, Reflection, session, SimpleXML, standard, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, cgi-fcgi, Phar, curl, exif, ftp, gd, gmp, intl, iconv, pdo\_mysql, pdo\_sqlite, sockets, sqlite3, zip, apcu, igbinary, imagick, redis, smbclient, libsmbclient, Zend OPcache
> 
> \*\*Nextcloud version:\*\* 18.0.0 - 18.0.0.10
> 
> \*\*Updated from an older Nextcloud/ownCloud or fresh install:\*\* upgraded from NC 17.0.2
> 
> \*\*Where did you install Nextcloud from:\*\* official download site
> 
> \<details\>\<summary\>Signing status\</summary\>
> 
> Array
> (
> )
> 
> \</details\>
> 
> \<details\>\<summary\>List of activated apps\</summary\>
> 
> \`\`\`
> Enabled:
> - accessibility: 1.4.0
> - activity: 2.11.0
> - admin\_audit: 1.8.0
> - analytics: 2.0.0
> - announcementcenter: 3.7.0
> - apporder: 0.9.0
> - audioplayer: 2.9.0
> - bookmarks: 2.3.4
> - calendar: 2.0.1
> - camerarawpreviews: 0.7.3
> - checksum: 0.4.4
> - circles: 0.18.1
> - cloud\_federation\_api: 1.1.0
> - comments: 1.8.0
> - contacts: 3.1.8
> - cookbook: 0.5.7
> - cospend: 0.3.2
> - dav: 1.14.0
> - deck: 0.8.0
> - documentserver\_community: 0.1.5
> - event\_update\_notification: 1.0.1
> - external: 3.5.0
> - extract: 1.2.3
> - federatedfilesharing: 1.8.0
> - federation: 1.8.0
> - files: 1.13.1
> - files\_accesscontrol: 1.8.1
> - files\_automatedtagging: 1.8.0
> - files\_downloadactivity: 1.7.0
> - files\_external: 1.9.0
> - files\_lock: 0.8.1
> - files\_markdown: 2.2.0
> - files\_pdfviewer: 1.7.0
> - files\_readmemd: 1.1.3
> - files\_retention: 1.7.0
> - files\_rightclick: 0.15.2
> - files\_sharing: 1.10.1
> - files\_texteditor: 2.9.0
> - files\_trashbin: 1.8.0
> - files\_versions: 1.11.0
> - files\_videoplayer: 1.7.0
> - firstrunwizard: 2.7.0
> - groupfolders: 6.0.1
> - guests: 1.4.0
> - issuetemplate: 0.6.0
> - logreader: 2.3.0
> - lookup\_server\_connector: 1.6.0
> - maps: 0.1.4
> - metadata: 0.11.1
> - nextcloud\_announcements: 1.7.0
> - notes: 3.1.1
> - notifications: 2.6.0
> - oauth2: 1.6.0
> - ocr: 5.0.7
> - onlyoffice: 4.1.4
> - password\_policy: 1.8.0
> - photos: 1.0.0
> - polls: 1.1.6
> - previewgenerator: 2.2.0
> - privacy: 1.2.0
> - provisioning\_api: 1.8.0
> - qownnotesapi: 20.1.0
> - quota\_warning: 1.7.0
> - ransomware\_protection: 1.6.0
> - serverinfo: 1.8.0
> - settings: 1.0.0
> - sharebymail: 1.8.0
> - spreed: 8.0.1
> - support: 1.1.0
> - suspicious\_login: 3.0.1
> - systemtags: 1.8.0
> - talk\_simple\_poll: 1.1.0
> - tasks: 0.11.3
> - telephoneprovider: 1.0.3
> - text: 2.0.0
> - theming: 1.9.0
> - twofactor\_admin: 2.0.0
> - twofactor\_backupcodes: 1.7.0
> - twofactor\_totp: 4.1.2
> - updatenotification: 1.8.0
> - video\_converter: 0.1.3
> - viewer: 1.2.0
> - workflow\_pdf\_converter: 1.3.1
> - workflowengine: 2.0.0
> Disabled:
> - dicomviewer
> - encryption
> - ransomware\_detection
> - recommendations
> - sharerenamer
> - social
> - socialsharing\_email
> - survey\_client
> - user\_ldap
> 
> \`\`\`
> \</details\>
> 
> \<details\>\<summary\>Configuration (config/config.php)\</summary\>
> 
> \`\`\`
> {
> "instanceid": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "passwordsalt": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "secret": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "trusted\_domains": \[
> "cloud.mydomain.tld",
> "192.168.178.240",
> "localhost"
> \],
> "datadirectory": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "dbtype": "mysql",
> "dbname": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "dbhost": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "dbport": "",
> "dbtableprefix": "oc\_",
> "dbuser": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "dbpassword": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "version": "18.0.0.10",
> "logtimezone": "Europe\\/Berlin",
> "appstore.experimental.enabled": true,
> "appstoreenabled": true,
> "appcodechecker": true,
> "apps\_paths": \[
> {
> "path": "\\/var\\/www\\/nextcloud\\/apps",
> "url": "\\/apps",
> "writable": true
> }
> \],
> "mail\_smtpmode": "smtp",
> "mail\_smtpauth": 1,
> "mail\_smtpport": "587",
> "mail\_smtphost": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "mail\_smtpauthtype": "LOGIN",
> "mail\_from\_address": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "mail\_domain": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "mail\_smtpsecure": "tls",
> "mail\_smtpname": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "mail\_smtppassword": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "preview\_libreoffice\_path": "\\/usr\\/bin\\/libreoffice",
> "enabledPreviewProviders": \[
> "OC\\\\Preview\\\\PNG",
> "OC\\\\Preview\\\\JPEG",
> "OC\\\\Preview\\\\GIF",
> "OC\\\\Preview\\\\BMP",
> "OC\\\\Preview\\\\XBitmap",
> "OC\\\\Preview\\\\MP3",
> "OC\\\\Preview\\\\TXT",
> "OC\\\\Preview\\\\MarkDown",
> "OC\\\\Preview\\\\TIFF",
> "OCA\\\\CameraRawPreviews\\\\RawPreview",
> "OCA\\\\CameraRawPreviews\\\\IndesignPreview",
> "OC\\\\Preview\\\\Movie",
> "OC\\\\Preview\\\\Photoshop"
> \],
> "blacklisted\_files": \[
> ".htaccess",
> "Thumbs.db",
> "thumbs.db"
> \],
> "filelocking.enabled": true,
> "memcache.local": "\\\\OC\\\\Memcache\\\\APCu",
> "memcache.locking": "\\\\OC\\\\Memcache\\\\Redis",
> "redis": {
> "host": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "port": 0,
> "password": "\*\*\*REMOVED SENSITIVE VALUE\*\*\*",
> "timeout": 0
> },
> "maintenance": false,
> "config\_is\_read\_only": false,
> "updater.server.url": "https:\\/\\/updates.nextcloud.com\\/updater\_server\\/",
> "updater.release.channel": "stable",
> "loglevel": 2,
> "theme": "",
> "installed": true,
> "overwrite.cli.url": "https:\\/\\/cloud.mydomain.tld",
> "defaultapp": "apporder",
> "mysql.utf8mb4": true,
> "app\_install\_overwrite": \[
> "tasks",
> "files\_readmemd",
> "polls",
> "apporder",
> "video\_converter",
> "metadata",
> "telephoneprovider",
> "issuetemplate",
> "contacts",
> "files\_texteditor",
> "maps"
> \]
> }
> \`\`\`
> \</details\>
> 
> \*\*Are you using external storage, if yes which one:\*\* no
> 
> \*\*Are you using encryption:\*\* no
> 
> \*\*Are you using an external user-backend, if yes which one:\*\* none
> 
> \## Client configuration
> 
> \*\*Browser:\*\* Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0
> 
> \*\*Operating system:\*\* Manjaro 18.1.5 (Linux 5.4.14-2-MANJARO)
> 
> \## Logs
> 
> \<details\>\<summary\>Web server error log\</summary\>
> 
> \`\`\`
> no relevant entries
> \`\`\`
> \</details\>
> 
> \<details\>\<summary\>Nextcloud log\</summary\>
> 
> \`\`\`
> {"reqId":"8u8Jm8B3ZMfDntrMD0ZH","level":3,"time":"2020-01-30T23:27:38+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"User1","app":"no app in context","method":"POST","url":"/ocs/v2.php/apps/files\_sharing/api/v1/shares","message":{"Exception":"Exception",
> "Message":"Call to undefined method OCA\\\\Maps\\\\Service\\\\PhotofilesService::safeAddByFolderIdUserId()","Code":0,"Trace":\[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\\\AppFramework\\\\Http\\\\Dispatcher","type":"-\>","args"
> :\[{"\_\_class\_\_":"OCA\\\\Files\_Sharing\\\\Controller\\\\ShareAPIController"},"createShare"\]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\\\AppFramework\\\\App","type":"::","args":\["OCA\\\\Files\_Sharing\\\\Control
> ler\\\\ShareAPIController","createShare",{"\_\_class\_\_":"OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer"},{"\_route":"ocs.files\_sharing.ShareAPI.createShare"}\]},{"function":"\_\_invoke","class":"OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler","type":"-\>","args":\[{"\_route":"ocs.file
> s\_sharing.ShareAPI.createShare"}\]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":299,"function":"call\_user\_func","args":\[{"\_\_class\_\_":"OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler"},{"\_route":"ocs.files\_sharing.ShareAPI.createShare"}\]},{"file":"/var/www/next
> cloud/ocs/v1.php","line":82,"function":"match","class":"OC\\\\Route\\\\Router","type":"-\>","args":\["/ocsapp/apps/files\_sharing/api/v1/shares"\]},{"file":"/var/www/nextcloud/ocs/v2.php","line":24,"args":\["/var/www/nextcloud/ocs/v1.php"\],"function":"require\_once"}\],"File":"/var/www/ne
> xtcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":109,"Previous":{"Exception":"Error","Message":"Call to undefined method OCA\\\\Maps\\\\Service\\\\PhotofilesService::safeAddByFolderIdUserId()","Code":0,"Trace":\[{"file":"/var/www/nextcloud/lib/private/legacy/hook.php","lin
> e":111,"function":"postShare","class":"OCA\\\\Maps\\\\Hooks\\\\FileHooks","type":"-\>","args":\[{"itemType":"folder","itemSource":254062,"shareType":0,"uidOwner":"User1","permissions":5,"fileSource":254062,"expiration":null,"token":null,"id":"475","shareWith":"Adminuser","itemTarget":
> "/videotest","fileTarget":"/videotest"}\]},{"file":"/var/www/nextcloud/lib/private/Share20/LegacyHooks.php","line":175,"function":"emit","class":"OC\_Hook","type":"::","args":\["OCP\\\\Share","post\_shared",{"itemType":"folder","itemSource":254062,"shareType":0,"uidOwner":"User1",
> "permissions":5,"fileSource":254062,"expiration":null,"token":null,"id":"475","shareWith":"Adminuser","itemTarget":"/videotest","fileTarget":"/videotest"}\]},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":260,"function":"postShare","class
> ":"OC\\\\Share20\\\\LegacyHooks","type":"-\>","args":\[{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent"},"OCP\\\\Share::postShare",{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\EventDispatcher"}\]},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventD
> ispatcher.php","line":235,"function":"doDispatch","class":"Symfony\\\\Component\\\\EventDispatcher\\\\EventDispatcher","type":"-\>","args":\[\[{"\_\_class\_\_":"Closure"},{"\_\_class\_\_":"Closure"},{"\_\_class\_\_":"Closure"},{"\_\_class\_\_":"Closure"},{"\_\_class\_\_":"Closure"}\],"OCP\\\\Share::postShare"
> ,{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent"}\]},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\\\Component\\\\EventDispatcher\\\\EventDispatcher","type":"-\>","args":\[\[{"\_\_c
> lass\_\_":"Closure"},{"\_\_class\_\_":"Closure"},{"\_\_class\_\_":"Closure"},{"\_\_class\_\_":"Closure"},{"\_\_class\_\_":"Closure"}\],"OCP\\\\Share::postShare",{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent"}\]},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/SymfonyAdapter
> .php","line":70,"function":"dispatch","class":"Symfony\\\\Component\\\\EventDispatcher\\\\EventDispatcher","type":"-\>","args":\[{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent"},{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent"}\]},{"file":"/var/www/nextc
> loud/lib/private/Share20/Manager.php","line":787,"function":"dispatch","class":"OC\\\\EventDispatcher\\\\SymfonyAdapter","type":"-\>","args":\["OCP\\\\Share::postShare",{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent"}\]},{"file":"/var/www/nextcloud/apps/files\_sharing/li
> b/Controller/ShareAPIController.php","line":576,"function":"createShare","class":"OC\\\\Share20\\\\Manager","type":"-\>","args":\[{"\_\_class\_\_":"OC\\\\Share20\\\\Share"}\]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"createShare","class"
> :"OCA\\\\Files\_Sharing\\\\Controller\\\\ShareAPIController","type":"-\>","args":\[{"\_\_class\_\_":"OC\\\\Files\\\\Node\\\\Folder"},5,0,"Adminuser","false","",null,"",""\]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC
> \\\\AppFramework\\\\Http\\\\Dispatcher","type":"-\>","args":\[{"\_\_class\_\_":"OCA\\\\Files\_Sharing\\\\Controller\\\\ShareAPIController"},"createShare"\]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\\\AppFramework\\\\Http\\\\Dispatcher","
> type":"-\>","args":\[{"\_\_class\_\_":"OCA\\\\Files\_Sharing\\\\Controller\\\\ShareAPIController"},"createShare"\]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\\\AppFramework\\\\App","type":"::","args":\["OCA\\\\Files
> \_Sharing\\\\Controller\\\\ShareAPIController","createShare",{"\_\_class\_\_":"OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer"},{"\_route":"ocs.files\_sharing.ShareAPI.createShare"}\]},{"function":"\_\_invoke","class":"OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler","type":"-\>","args":\[{"
> \_route":"ocs.files\_sharing.ShareAPI.createShare"}\]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":299,"function":"call\_user\_func","args":\[{"\_\_class\_\_":"OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler"},{"\_route":"ocs.files\_sharing.ShareAPI.createShare"}\]},{"fil
> e":"/var/www/nextcloud/ocs/v1.php","line":82,"function":"match","class":"OC\\\\Route\\\\Router","type":"-\>","args":\["/ocsapp/apps/files\_sharing/api/v1/shares"\]},{"file":"/var/www/nextcloud/ocs/v2.php","line":24,"args":\["/var/www/nextcloud/ocs/v1.php"\],"function":"require\_once"}\],"F
> ile":"/var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php","Line":130},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"EsMIpkyAFNA4VPXPGIlJ","level":3,"time":"2020-01-30T23:29:47+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"no app in context","method":"POST","url":"/ocs/v2.php/apps/files\_sharing/api/v1/shares","message":{"Exception":"Exception","
> Message":"Call to undefined method OCA\\\\Maps\\\\Service\\\\PhotofilesService::safeAddByFileIdUserId()","Code":0,"Trace":\[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\\\AppFramework\\\\Http\\\\Dispatcher","type":"-\>","args":\[{
> "\_\_class\_\_":"OCA\\\\Files\_Sharing\\\\Controller\\\\ShareAPIController"},"createShare"\]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\\\AppFramework\\\\App","type":"::","args":\["OCA\\\\Files\_Sharing\\\\Controller
> \\\\ShareAPIController","createShare",{"\_\_class\_\_":"OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer"},{"\_route":"ocs.files\_sharing.ShareAPI.createShare"}\]},{"function":"\_\_invoke","class":"OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler","type":"-\>","args":\[{"\_route":"ocs.files\_s
> haring.ShareAPI.createShare"}\]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":299,"function":"call\_user\_func","args":\[{"\_\_class\_\_":"OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler"},{"\_route":"ocs.files\_sharing.ShareAPI.createShare"}\]},{"file":"/var/www/nextclo
> ud/ocs/v1.php","line":82,"function":"match","class":"OC\\\\Route\\\\Router","type":"-\>","args":\["/ocsapp/apps/files\_sharing/api/v1/shares"\]},{"file":"/var/www/nextcloud/ocs/v2.php","line":24,"args":\["/var/www/nextcloud/ocs/v1.php"\],"function":"require\_once"}\],"File":"/var/www/nextc
> loud/lib/private/AppFramework/Http/Dispatcher.php","Line":109,"Previous":{"Exception":"Error","Message":"Call to undefined method OCA\\\\Maps\\\\Service\\\\PhotofilesService::safeAddByFileIdUserId()","Code":0,"Trace":\[{"file":"/var/www/nextcloud/lib/private/legacy/hook.php","line":11
> 1,"function":"postShare","class":"OCA\\\\Maps\\\\Hooks\\\\FileHooks","type":"-\>","args":\[{"itemType":"file","itemSource":8,"shareType":0,"uidOwner":"Adminuser","permissions":1,"fileSource":8,"expiration":null,"token":null,"id":"476","shareWith":"User1","itemTarget":"/Nextcloud Manua
> l.pdf","fileTarget":"/Nextcloud Manual.pdf"}\]},{"file":"/var/www/nextcloud/lib/private/Share20/LegacyHooks.php","line":175,"function":"emit","class":"OC\_Hook","type":"::","args":\["OCP\\\\Share","post\_shared",{"itemType":"file","itemSource":8,"shareType":0,"uidOwner":"Adminuser","pe
> rmissions":1,"fileSource":8,"expiration":null,"token":null,"id":"476","shareWith":"User1","itemTarget":"/Nextcloud Manual.pdf","fileTarget":"/Nextcloud Manual.pdf"}\]},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":260,"function":"po
> stShare","class":"OC\\\\Share20\\\\LegacyHooks","type":"-\>","args":\[{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent"},"OCP\\\\Share::postShare",{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\EventDispatcher"}\]},{"file":"/var/www/nextcloud/3rdparty/symfony/event-di
> spatcher/EventDispatcher.php","line":235,"function":"doDispatch","class":"Symfony\\\\Component\\\\EventDispatcher\\\\EventDispatcher","type":"-\>","args":\[\[{"\_\_class\_\_":"Closure"},{"\_\_class\_\_":"Closure"},{"\_\_class\_\_":"Closure"},{"\_\_class\_\_":"Closure"},{"\_\_class\_\_":"Closure"}\],"OCP\\\\Sh
> are::postShare",{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent"}\]},{"file":"/var/www/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"},{"\_\_class\_\_":"Closure"}\],"OCP\\\\Share::postShare",{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent"}\]},{"file":"/var/www/nextcloud/lib/private/EventDispatcher
> /SymfonyAdapter.php","line":70,"function":"dispatch","class":"Symfony\\\\Component\\\\EventDispatcher\\\\EventDispatcher","type":"-\>","args":\[{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent"},{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent"}\]},{"file":
> "/var/www/nextcloud/lib/private/Share20/Manager.php","line":787,"function":"dispatch","class":"OC\\\\EventDispatcher\\\\SymfonyAdapter","type":"-\>","args":\["OCP\\\\Share::postShare",{"\_\_class\_\_":"Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent"}\]},{"file":"/var/www/nextcloud/apps/f
> iles\_sharing/lib/Controller/ShareAPIController.php","line":576,"function":"createShare","class":"OC\\\\Share20\\\\Manager","type":"-\>","args":\[{"\_\_class\_\_":"OC\\\\Share20\\\\Share"}\]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"creat
> eShare","class":"OCA\\\\Files\_Sharing\\\\Controller\\\\ShareAPIController","type":"-\>","args":\[{"\_\_class\_\_":"OC\\\\Files\\\\Node\\\\File"},1,0,"User1","false","",null,"",""\]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeControlle
> r","class":"OC\\\\AppFramework\\\\Http\\\\Dispatcher","type":"-\>","args":\[{"\_\_class\_\_":"OCA\\\\Files\_Sharing\\\\Controller\\\\ShareAPIController"},"createShare"\]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\\\AppFramework\\\\Http\\
> \\Dispatcher","type":"-\>","args":\[{"\_\_class\_\_":"OCA\\\\Files\_Sharing\\\\Controller\\\\ShareAPIController"},"createShare"\]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\\\AppFramework\\\\App","type":"::","args
> ":\["OCA\\\\Files\_Sharing\\\\Controller\\\\ShareAPIController","createShare",{"\_\_class\_\_":"OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer"},{"\_route":"ocs.files\_sharing.ShareAPI.createShare"}\]},{"function":"\_\_invoke","class":"OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler","type":"
> \-\>","args":\[{"\_route":"ocs.files\_sharing.ShareAPI.createShare"}\]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":299,"function":"call\_user\_func","args":\[{"\_\_class\_\_":"OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler"},{"\_route":"ocs.files\_sharing.ShareAPI.createS
> hare"}\]},{"file":"/var/www/nextcloud/ocs/v1.php","line":82,"function":"match","class":"OC\\\\Route\\\\Router","type":"-\>","args":\["/ocsapp/apps/files\_sharing/api/v1/shares"\]},{"file":"/var/www/nextcloud/ocs/v2.php","line":24,"args":\["/var/www/nextcloud/ocs/v1.php"\],"function":"requ
> ire\_once"}\],"File":"/var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php","Line":124},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"cp90z2Xv5x8CTYzzSXFM","level":3,"time":"2020-01-30T23:35:50+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Undefined index: client-detail at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"cp90z2Xv5x8CTYzzSXFM","level":3,"time":"2020-01-30T23:35:50+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Trying to access array offset on value of type null at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"cp90z2Xv5x8CTYzzSXFM","level":3,"time":"2020-01-30T23:35:50+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Undefined index: client-detail at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"cp90z2Xv5x8CTYzzSXFM","level":3,"time":"2020-01-30T23:35:50+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Trying to access array offset on value of type null at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"cp90z2Xv5x8CTYzzSXFM","level":3,"time":"2020-01-30T23:35:50+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Undefined index: log-detail at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"cp90z2Xv5x8CTYzzSXFM","level":3,"time":"2020-01-30T23:35:50+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Trying to access array offset on value of type null at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"cp90z2Xv5x8CTYzzSXFM","level":3,"time":"2020-01-30T23:35:50+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Undefined index: log-detail at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"cp90z2Xv5x8CTYzzSXFM","level":3,"time":"2020-01-30T23:35:50+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Trying to access array offset on value of type null at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"cp90z2Xv5x8CTYzzSXFM","level":3,"time":"2020-01-30T23:35:50+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Undefined index: log-detail at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"cp90z2Xv5x8CTYzzSXFM","level":3,"time":"2020-01-30T23:35:50+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Trying to access array offset on value of type null at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"h5zxqXUKHp7yAd26NiCw","level":3,"time":"2020-01-30T23:36:51+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Undefined index: log-detail at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"h5zxqXUKHp7yAd26NiCw","level":3,"time":"2020-01-30T23:36:51+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Trying to access array offset on value of type null at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"h5zxqXUKHp7yAd26NiCw","level":3,"time":"2020-01-30T23:36:51+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Undefined index: log-detail at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"h5zxqXUKHp7yAd26NiCw","level":3,"time":"2020-01-30T23:36:51+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Trying to access array offset on value of type null at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"h5zxqXUKHp7yAd26NiCw","level":3,"time":"2020-01-30T23:36:51+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Undefined index: log-detail at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> {"reqId":"h5zxqXUKHp7yAd26NiCw","level":3,"time":"2020-01-30T23:36:51+01:00","remoteAddr":"2001:111:aaaa:bbbb:cdef:1000:2000:011","user":"Adminuser","app":"PHP","method":"POST","url":"/apps/issuetemplate/render","message":"Trying to access array offset on value of type null at /var/www/nextcloud/apps/issuetemplate/lib/Detail.php#59","userAgent":"Mozilla/5.0 (X11; Linux x86\_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.10"}
> \`\`\`
> \</details\>
> 
> \<details\>\<summary\>Browser log\</summary\>
> 
> Error while creating share Error: "Request failed with status code 404"
> exports createError.js:16
> exports settle.js:17
> onreadystatechange xhr.js:61
> ShareRequests.js:61:12
> e ShareRequests.js:61
> l ncvuecomponents.js:320
> \_invoke ncvuecomponents.js:320
> e ncvuecomponents.js:320
> G files\_sharing\_tab.js:1361
> s files\_sharing\_tab.js:1361
> \</details\>

There is a fix already and it should be shipped with the next release of the Maps app:

> <https://github.com/nextcloud/maps/pull/262>
>
> Signed-off-by: Arne Hamann \<kontakt+github@arne.email\>

Until then, you can avoid these issues by disabling Maps.

If you use federated shares, I would like to make you aware of this issue as well:

> [@\[NC 18.0\] Attention! Possible loss of all your shares. Better implement fix now](https://help.nextcloud.com/t/nc-18-0-attention-possible-loss-of-all-your-shares-better-implement-fix-now/70145):
>
> Hello everybody, I ran into an issue on Nextcloud 18 that all the shares, which the users on my server created, were suddenly deleted. The database table “oc\_share” was completely empty and so there was no more internal or public share available. It turned out, that due to a bug the whole “oc\_share” database table gets wiped, when one NC user removes a federated share: A fix has already been provided by the developers, however it will first rollout with the next release and therefor some …

---

<div class="post-metadata">

**Author:** ![vbec](https://help.nextcloud.com/letter_avatar/vbec/32/5_5575768a8748004e209b776fc1b2916d.png) [@vbec](https://help.nextcloud.com/u/vbec)\
**Post date:** [February 10, 2020, 12:56pm UTC](https://help.nextcloud.com/t/nextcloud-18-maps-prevents-deletion-of-shares/70069/3 "2020-02-10T12:56:39Z")

</div>

Hello Schmu,

thank you very much for your answer and sorry for my late reply.

It seems working fine now.

Best regards,  
Volker

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 8:29pm UTC](https://help.nextcloud.com/t/nextcloud-18-maps-prevents-deletion-of-shares/70069/4 "2024-12-11T20:29:50Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 8:29pm UTC](https://help.nextcloud.com/t/nextcloud-18-maps-prevents-deletion-of-shares/70069/5 "2024-12-11T20:29:52Z")

</div>


