octobercms/october · error · Error
Values not found for the selected row.
Error message
Values not found for the selected row.
What it means
After the component check passes, onGetInspectorConfiguration looks up the snippet by code via SnippetManager::instance()->findByCodeOrComponent(theme, snippetCode, componentClass). A null result — no snippet registered in the current theme with that code — throws this ApplicationException with the code substituted for :code. Snippets are theme-scoped: the code must match the `code` setting of a snippet partial or a registered component snippet in the active theme.
Source
Thrown at modules/backend/assets/foundation/controls/inspector/inspector.editor.objectlist.js:296
}
}
this.applyDataToRow(selectedRow)
$.oc.foundation.element.removeClass(selectedRow, 'active')
}
this.disposeInspector()
$.oc.foundation.element.addClass(row, 'active')
this.createInspectorForRow(row, inspectorContainer)
}
ObjectListEditor.prototype.createInspectorForRow = function(row, inspectorContainer) {
var dataStr = row.getAttribute('data-inspector-values')
if (dataStr === undefined || typeof dataStr !== 'string') {
throw new Error('Values not found for the selected row.')
}
var properties = this.propertyDefinition.itemProperties,
values = JSON.parse(dataStr),
options = {
enableExternalParameterEditor: false,
onChange: this.proxy(this.onInspectorDataChange),
inspectorClass: this.inspector.options.inspectorClass
}
this.currentRowInspector = new $.oc.inspector.surface(inspectorContainer, properties, values,
$.oc.inspector.helpers.generateElementUniqueId(inspectorContainer), options)
}
ObjectListEditor.prototype.disposeInspector = function() {
$.oc.foundation.controlUtils.disposeControls(this.popup.querySelector('[data-inspector-container]'))
this.currentRowInspector = null
}View on GitHub (pinned to b608633a7e)
Solutions
- Open the snippet partial in the active theme and confirm its `code = "..."` setting matches the posted code exactly.
- Check the correct theme is active — snippets resolve only within the current theme via SnippetManager.
- If the snippet comes from a component, make sure the providing plugin is installed and enabled, then re-save the content that uses it.
Example fix
{# before: partial has code = "cta-box" but request sends old code #}
component: '', snippet: 'cta' --> ApplicationException
{# after #}
component: '', snippet: 'cta-box' Defensive patterns
Strategy: validation
Validate before calling
// Server-side: verify the snippet exists before opening its inspector
use Cms\Classes\SnippetManager;
$snippet = SnippetManager::instance()->findByCodeOrComponent($theme, $snippetCode, $componentClass);
if (!$snippet) {
// refresh the snippet list instead of requesting configuration
return Flash::error('Snippet "'.$snippetCode.'" not found in the active theme');
} Try / catch
try {
$config = $widget->onGetInspectorConfiguration();
} catch (ApplicationException $e) {
// 'Snippet with the requested code ... was not found in the theme.'
// -> reload the snippet palette for the active theme
} Prevention
- Treat snippet codes as stable IDs: never rename a `code` setting without migrating content that uses it.
- After switching the active theme, refresh editor sessions — snippets are theme-scoped.
- Keep component-snippet plugins enabled or clean up their snippets from theme content.
When it happens
Trigger: Posting `snippet: 'old-code'` after the snippet partial's `code` setting was changed or the partial deleted; switching the active theme so previously available snippets vanish; a typo in the snippet code string; a component-based snippet whose plugin is disabled.
Common situations: Renaming snippet codes during a content refactor; theme switching in a multi-theme setup; editor sessions holding stale snippet codes across deploys; plugin disablement removing component snippets.
Understand the failure class
Background: 'Could not be found', 'does not exist', 'not found in database': the resource-not-found family when an ID, slug, key, or URI lookup comes back empty — this error's family across 20 libraries.
Related errors
- Object list value should be an object. Property: ${this.prop
- Trying to get selected row without a popup reference.
- The titleProperty property should be specified in the object
- The itemProperties property should be specified in the objec
- Object list key property ${this.propertyDefinition.keyProper
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/a8b0247a7e0e579f.
Report an issue: GitHub.