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/assets/js/backend/backend.ajax.js:48

    const $form = $el.closest('form');
    if (!$form || !$form.dataset || !$form.dataset.requestParentForm) {
        return;
    }

    var paramToObj = function(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);
        }
    }

    var elementParents = function(element, selector) {
        const parents = [];
        if (!element.parentNode) {
            return parents;
        }

        let ancestor = element.parentNode.closest(selector);
        while (ancestor) {
            parents.push(ancestor);
            ancestor = ancestor.parentNode.closest(selector);
        }

        return parents;
    }

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/backend/assets/js/backend/backend.ajax.js:48 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/50a5219f24ba52a5. Report an issue: GitHub.