octobercms/october · error · Error

Page Lookup popup option "alias" is not set.

Error message

Page Lookup popup option "alias" is not set.

What it means

Error "Page Lookup popup option "alias" is not set." thrown in octobercms/october.

Source

Thrown at modules/cms/widgets/pagelookup/assets/js/pagelookup.js:66

            const url = el.match(/href="(.*?)"/);
            if (url !== null) {
                const processedUrl = processResolverLink(url[1]);
                htmlText = htmlText.replace(el, el.replace(url[1], processedUrl));
            }
        }
    }
    return htmlText;
}

class PageLookupWidget {
    static proxyCounter = 0;

    constructor(config) {
        this.config = this.getConfig(config);
        this.proxiedMethods = {};

        if (this.config.alias === null) {
            throw new Error('Page Lookup popup option "alias" is not set.');
        }

        this.$rootElement = $('<div />');
        this.$rootElement.one('hide.oc.popup', this.proxy(this.onPopupHidden));
        this.$rootElement.one('shown.oc.popup', this.proxy(this.onPopupShown));

        this.show();
    }

    dispose() {
        for (const key in this.proxiedMethods) {
            this.proxiedMethods[key] = null;
        }

        for (const propertyName of Object.getOwnPropertyNames(this)) {
            this[propertyName] = null;
        }
    }

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/cms/widgets/pagelookup/assets/js/pagelookup.js:66 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/a9f0b83e29638f87. Report an issue: GitHub.