octobercms/october · error · Error
cms:display-pages command excepts a parameter
Error message
cms:display-pages command excepts a parameter: ${commandObj.fullCommand} What it means
Command-contract guard in setDisplayMode: 'cms:display-pages' requires a parameter identifying the property to display; the received commandObj.fullCommand lacks it. The menu emitted a bare command where a parameterized one was expected.
Solutions
- Trigger the command with a parameter, e.g. cms:display-pages@title
- Correct the navigator menu item that emits the command
- Align the emitter with the 'cms:display-pages@x' listener registration
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/cms/assets/js/cms.editor.extension.documentcontroller.page.js:59 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/38451553b39a46ea.
Report an issue: GitHub.
Appendix: source
Thrown at modules/cms/assets/js/cms.editor.extension.documentcontroller.page.js:59
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}`);
}
const pagesNode = this.rootNavigatorNodeSafe;
if (!pagesNode) {
return;
}
const displayItem = menuUtils.findMenuItem(pagesNode.topLevelMenuitems, ['display'], 'command');
menuUtils.checkItemInGroup(displayItem.items, commandObj.fullCommand);
pagesNode.displayProperty = commandObj.parameter;
localStorage.setItem('cms-pages-display-cmd', commandObj.fullCommand);
}
groupPages(commandObj) {
if (!commandObj.hasParameter) {
throw new Error(`cms:group-pages command excepts a parameter: ${commandObj.fullCommand}`);View on GitHub (pinned to b608633a7e)