octobercms/october · error · Error

Error parsing Inspector field values. ${err}

Error message

Error parsing Inspector field values. ${err}

What it means

Error "Error parsing Inspector field values. ${err}" thrown in octobercms/october.

Source

Thrown at modules/backend/assets/foundation/controls/inspector/inspector.wrapper.base.js:175

        this.switched = true
        this.dispose()
    }

    //
    // Values
    //

    BaseWrapper.prototype.loadValues = function(configuration) {
        var $valuesField = this.getElementValuesInput();

        if ($valuesField.length > 0) {
            var valuesStr = $.trim($valuesField.val());

            try {
                return valuesStr.length === 0 ? {} : JSON.parse(valuesStr);
            }
            catch (err) {
                throw new Error('Error parsing Inspector field values. ' + err);
            }
        }

        var values = {},
            attributes = this.$element.get(0).attributes;

        for (var i=0, len = attributes.length; i < len; i++) {
            var attribute = attributes[i],
                matches = [];

            if (matches = attribute.name.match(/^data-property-(.*)$/)) {
                // Important - values contained in data-property-xxx attributes are
                // considered strings and only parsed with JSON when they begin with
                // the json: protocol prefix.
                var normalizedPropertyName = this.normalizePropertyCode(matches[1], configuration),
                    attrVal = attribute.value;

                if (attrVal.startsWith('json:')) {

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/backend/assets/foundation/controls/inspector/inspector.wrapper.base.js:175 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/b0f39a58946c36bb. Report an issue: GitHub.