octobercms/october · error · Error

The ignoreIfDefault feature cannot be used without the defau

Error message

The ignoreIfDefault feature cannot be used without the default property value.

What it means

Error "The ignoreIfDefault feature cannot be used without the default property value." thrown in octobercms/october.

Source

Thrown at modules/backend/assets/foundation/controls/inspector/inspector.surface.js:863

                    }
                    else {
                        value = property.default
                    }
                }

                if (value === $.oc.inspector.removedProperty) {
                    continue
                }

                if (property.ignoreIfEmpty !== undefined && (property.ignoreIfEmpty === true || property.ignoreIfEmpty === "true") && editor) {
                    if (editor.isEmptyValue(value)) {
                        continue
                    }
                }

                if (property.ignoreIfDefault !== undefined && (property.ignoreIfDefault === true || property.ignoreIfDefault === "true") && editor) {
                    if (property.default === undefined) {
                        throw new Error('The ignoreIfDefault feature cannot be used without the default property value.')
                    }

                    if (this.comparePropertyValues(value, property.default)) {
                        continue
                    }
                }
            }
            else {
                value = externalParameterEditor.getValue()
                value = '{{ ' + value + ' }}'
            }

            result[property.property] = value
        }

        return result
    }

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/backend/assets/foundation/controls/inspector/inspector.surface.js:863 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/aad2ba41691e92e7. Report an issue: GitHub.