octobercms/october · error · Error
cms:sort-pages command excepts a parameter: ${commandObj.ful
Error message
cms:sort-pages command excepts a parameter: ${commandObj.fullCommand} What it means
Error "cms:sort-pages command excepts a parameter: ${commandObj.fullCommand}" thrown in octobercms/october.
Source
Thrown at modules/cms/assets/js/cms.editor.extension.documentcontroller.page.js:41
knownSortingModes.forEach((item) => {
const itemValue = localStorage.getItem(item);
if (itemValue !== null) {
this.emit(itemValue);
}
});
}
initListeners() {
this.on('cms:sort-pages@title, cms:sort-pages@url, cms:sort-pages@filename', this.sortPages);
this.on('cms:group-pages@path, cms:group-pages@url', this.groupPages);
this.on('cms:display-pages@title, cms:display-pages@url, cms:display-pages@filename', this.setDisplayMode);
this.on('cms:navigator-nodes-updated', this.onNavigatorNodesUpdated);
}
sortPages(commandObj) {
if (!commandObj.hasParameter) {
throw new Error(`cms:sort-pages command excepts a parameter: ${commandObj.fullCommand}`);
}
const pagesNode = this.rootNavigatorNodeSafe;
if (!pagesNode) {
return;
}
const sortingItem = menuUtils.findMenuItem(pagesNode.topLevelMenuitems, ['sorting'], 'command');
menuUtils.checkItemInGroup(sortingItem.items, commandObj.fullCommand);
pagesNode.sortBy = commandObj.parameter;
localStorage.setItem('cms-pages-sort-cmd', commandObj.fullCommand);
}
setDisplayMode(commandObj) {
if (!commandObj.hasParameter) {
throw new Error(`cms:display-pages command excepts a parameter: ${commandObj.fullCommand}`);View on GitHub (pinned to b608633a7e)
When it happens
Trigger: Thrown at modules/cms/assets/js/cms.editor.extension.documentcontroller.page.js:41 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/e58fdb725905712b.
Report an issue: GitHub.