octobercms/october · error · Error

Error parsing the {name} attribute value. {e}

Error message

Error parsing the {name} attribute value. {e}

What it means

Error "Error parsing the {name} attribute value. {e}" thrown in octobercms/october.

Source

Thrown at modules/backend/behaviors/relationcontroller/assets/js/october.relation.js:199

        static changed(relationId, event) {
            $('[data-field-name="' + relationId + '"]').trigger('change.oc.formwidget', { event: event });
        }

        // @deprecated use oc.popup.bindToPopups
        static bindToPopups(container, vars) {
            return oc.popup.bindToPopups(container, vars);
        }
    }

    function paramToObj(name, value) {
        if (value === undefined) value = ''
        if (typeof value == 'object') return value

        try {
            return oc.parseJSON("{" + value + "}")
        }
        catch (e) {
            throw new Error('Error parsing the '+name+' attribute value. '+e)
        }
    }

    oc.registerControl('relation-controller', RelationBehavior);

    oc.relationBehavior = RelationBehavior;

    // @deprecated
    $.oc.relationBehavior = RelationBehavior;

}(window.jQuery);

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/backend/behaviors/relationcontroller/assets/js/october.relation.js:199 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/d759c85f3f32508e. Report an issue: GitHub.