Skip to content

Console Error in Settings Area #1236

Open
@phptek

Description

@phptek

Setup:

PHP 7.4 (Ubuntu 18.04 via Docker for Mac)
silverstripe/framework 4.8.0 (Also tried same setup but with 4.7.3 - same problem)
silverstripe/admin 1.8.0
silverstripe/mfa 4.3.0

Logged-in as: "admin" using Brave and Firefox and viewing the "Settings" admin with all custom Extension subclasses disabled in YML config.

In a small project I'm seeing the following JS errors logged to my console 4 times on page load. This does not happen in any other area of the CMS/Framework admin and does not seem to impede the general use of the UI:

Uncaught exception TypeError: this.onchange is not a function
    at init.onmatch (bundle-cms.js?m=1621220995:1)
    at Array.l [as onmatchproxy] (vendor.js?m=1621205601:1)
    at HTMLDocument.<anonymous> (vendor.js?m=1621205601:1)
    at HTMLDocument.dispatch (eval at e.exports (vendor.js?m=1621205601:1), <anonymous>:2726:92)
    at HTMLDocument.eventHandle (eval at e.exports (vendor.js?m=1621205601:1), <anonymous>:2384:112)
    at Object.trigger (eval at e.exports (vendor.js?m=1621205601:1), <anonymous>:2621:13)
    at init.triggerHandler (eval at e.exports (vendor.js?m=1621205601:1), <anonymous>:3195:25)
    at triggerEvent (vendor.js?m=1621205601:1)
    at t.n.test.<computed> [as triggerEvent] (vendor.js?m=1621205601:1)
    at vendor.js?m=1621205601:1 in onmatch on <input class=<200b>"form-check-input" id=<200b>"Form_EditForm_MFARequired_1" name=<200b>"MFARequired" type=<200b>"radio" value=<200b>"1"><200b>
warn_exception @ vendor.js?m=1621205601:1
l @ vendor.js?m=1621205601:1
(anonymous) @ vendor.js?m=1621205601:1
dispatch @ VM3614:2726
eventHandle @ VM3614:2384
trigger @ VM3614:2621
triggerHandler @ VM3614:3195
triggerEvent @ vendor.js?m=1621205601:1
n.test.<computed> @ vendor.js?m=1621205601:1
(anonymous) @ vendor.js?m=1621205601:1
setTimeout (async)
changed @ vendor.js?m=1621205601:1
n.test.<computed> @ vendor.js?m=1621205601:1
addAll @ vendor.js?m=1621205601:1
n.test.<computed> @ vendor.js?m=1621205601:1
addSubtree @ vendor.js?m=1621205601:1
n.test.<computed> @ vendor.js?m=1621205601:1
(anonymous) @ vendor.js?m=1621205601:1
dispatch @ VM3614:2726
eventHandle @ VM3614:2384
trigger @ VM3614:2621
triggerHandler @ VM3614:3195
(anonymous) @ vendor.js?m=1621205601:1
fire @ VM3614:800
fireWith @ VM3614:910
ready @ VM3614:309
DOMContentLoaded @ VM3614:72

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions