nextcloud/server · error · Sabre\DAV\Exception\MethodNotAllowed
Creating objects in cached subscription is not allowed
Error message
Creating objects in cached subscription is not allowed
What it means
Error "Creating objects in cached subscription is not allowed" thrown in nextcloud/server.
Source
Thrown at apps/dav/lib/CalDAV/CachedSubscription.php:171
$objs = $this->caldavBackend->getMultipleCalendarObjects($this->calendarInfo['id'], $paths, CalDavBackend::CALENDAR_TYPE_SUBSCRIPTION);
$children = [];
foreach ($objs as $obj) {
$children[] = new CachedSubscriptionObject($this->caldavBackend, $this->calendarInfo, $obj);
}
return $children;
}
/**
* @param string $name
* @param null|resource|string $data
* @return null|string
* @throws MethodNotAllowed
*/
#[\Override]
public function createFile($name, $data = null) {
throw new MethodNotAllowed('Creating objects in cached subscription is not allowed');
}
/**
* @param string $name
* @return bool
*/
#[\Override]
public function childExists($name):bool {
$obj = $this->caldavBackend->getCalendarObject($this->calendarInfo['id'], $name, CalDavBackend::CALENDAR_TYPE_SUBSCRIPTION);
if (!$obj) {
return false;
}
return true;
}
/**
* @param array $filtersView on GitHub (pinned to ecdeb153ff)
When it happens
Trigger: Thrown at apps/dav/lib/CalDAV/CachedSubscription.php:171 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nextcloud/server@ecdeb153ff (2026-08-17).
Data as JSON: /api/errors/fbe61c9e0a260956.
Report an issue: GitHub.