octobercms/october · error · Error
getRootProperties must be implemented in…
Error message
getRootProperties must be implemented in CmsDocumentEditorComponentBase descendants.
What it means
Abstract-method stub: getRootProperties is declared on the CmsDocumentEditorComponentBase mixin but intentionally has no default implementation; any descendant that fails to override it hits this throw when the editor requests the root-level property object for the document.
Solutions
- Implement getRootProperties in the descendant component, returning the root settings object for its document type
- If the component has no root properties, return an empty object
- Check for copy-pasted components that never overrode the base stub
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/cms/assets/js/cms.editor.extension.documentcomponent.base.js:78 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/85302d2b7f468089.
Report an issue: GitHub.
Appendix: source
Thrown at modules/cms/assets/js/cms.editor.extension.documentcomponent.base.js:78
viewBagComponent: function computeViewBagComponent() {
if (!this.documentData.components) {
return undefined;
}
if (!Array.isArray(this.documentData.components)) {
return undefined;
}
return this.documentData.components.find((component) => {
return component.className === 'Cms\\Components\\ViewBag';
});
}
},
methods: {
getRootProperties: function getRootProperties() {
throw new Error('getRootProperties must be implemented in CmsDocumentEditorComponentBase descendants.');
},
monacoLoaded: function monacoLoaded() {
// Overwrite this method in subclasses
},
getInfoPopupItems: function getInfoPopupItems() {
const mtime = this.documentMetadata.mtime;
const storage = [this.trans('cms::lang.template.storage_filesystem')];
if (this.documentMetadata.canResetFromTemplateFile) {
storage.push(this.trans('cms::lang.template.storage_database'));
}
return [
{
title: this.trans('cms::lang.template.last_modified'),
value: moment.unix(mtime).format('ll LTS')View on GitHub (pinned to b608633a7e)