octobercms/october · error · Error

getRootProperties must be implemented in CmsDocumentEditorCo

Error message

getRootProperties must be implemented in CmsDocumentEditorComponentBase descendants.

What it means

Error "getRootProperties must be implemented in CmsDocumentEditorComponentBase descendants." thrown in octobercms/october.

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)

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.