The Basics
Nextcloud Server version (e.g., 29.x.x) :
Operating system and version (e.g., Ubuntu 24.04) :
Web server and version (e.g, Apache 2.4.25) :
Reverse proxy and version _(e.g. nginx 1.27.2)
PHP version (e.g, 8.3) :
Is this the first time you’ve seen this error? (Yes / No):
When did this problem seem to first start?
Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Are you using CloudfIare, mod_security, or similar? (Yes / No)
Summary of the issue you are facing:
Internal Server Error message toast shown when clicking to unshare a public link.
ExceptionUndefined constant OCP\Share::SHARE_TYPE_USER in file ‘/var/www/html/custom_apps/maps/lib/Hooks/FileHooks.php’ line 154
Disabling the Maps app and then retrying to unshare works fine, the link is deleted successfully.
Steps to replicate it (hint: details matter!):
Enable Maps app.
Create a public link, then try to unshare it.
Internal Server Error toast appears, and the message above shows in logs.
Log entries
ExceptionUndefined constant OCP\Share::SHARE_TYPE_USER in file ‘/var/www/html/custom_apps/maps/lib/Hooks/FileHooks.php’ line 154
ernolf
May 15, 2026, 11:04am
2
dinosm1:
Steps to replicate it (hint: details matter!):
Enable Maps app.
Create a public link, then try to unshare it.
Internal Server Error toast appears, and the message above shows in logs.
This is already reported here
opened 05:02PM - 28 Mar 26 UTC
bug
0. Needs triage
### ⚠️ This issue respects the following points: ⚠️
- [x] This is a **bug**, no… t a question or a configuration/webserver/proxy issue.
- [x] This issue is **not** already reported on Github _(I've searched it)_.
- [x] Nextcloud Server **is** up to date. See [Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
- [x] Maps app **is** up to date. See [Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Bug description
When I want to delete a share whose folder contains images
Undefined constant OCP\Share::SHARE_TYPE_USER in file '/var/www/html/custom_apps/maps/lib/Hooks/FileHooks.php' line 154
### Steps to reproduce
1. Install and enable maps
2. Share a folder with images
3. Check if the images appear on the map
4. Try to delete the share
### Expected behavior
I can't delete the share; I have to disable Maps to remove it.
### Installation method
None
### Operating system
None
### PHP engine version
None
### Web server
None
### Database engine version
None
### Is this bug present after an update or on a fresh install of the server?
None
### Is this bug present after an update or on a fresh install of the app?
None
### Are you using the Nextcloud Server Encryption module?
None
### What user-backends are you using?
- [ ] Default user-backend _(database)_
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Configuration report
```shell
```
### List of activated Apps
```shell
-
```
### Nextcloud Signing status
```shell
```
### Nextcloud Logs
```shell
```
### Browser Console
```shell
```
### Additional info
_No response_
According to the App Store web interface, the app is only supported up to Nextcloud 31 , albeit in this commit it was bumped to 32 and in this commit it was bumped up to nextcloud 33
The app isn’t really being maintained. Issues go unanswered, and there are no fixes. This suggests that development doesn’t seem to be the highest priority—or rather, that other matters are ranked higher—especially considering that this is an app developed by Nextcloud developers.
My recommendation: Deactivate the app until it’s fixed.
h.t.h.
ernolf