Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javascript error in console when opening edit-form on existing sync instance. #77

Open
stopfstedt opened this issue Jan 27, 2025 · 1 comment
Assignees
Labels

Comments

@stopfstedt
Copy link
Member

Uncaught TypeError: updatebutton is null
    initializer Choo
    _initHierarchy http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:28849
    _baseInit http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:28416
    init http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:29508
    _initBase http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:28380
    BaseCore http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:28200
    Base http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:29715
    Choo 2
    <anonymous> http://moodle-44.local/enrol/ilios/edit.php?courseid=9&id=46:1337
    _notify http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1105
    use http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1021
    _notify http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1105
    handleLoader http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1242
    _notify http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1105
    handleLoader http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1250
    _finish http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8208
    _onSuccess http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8257
    complete http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8496
    onSuccess http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8558
    _finish http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4994
    _next http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5191
    _progress http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5299
    onLoad http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5091
    _insert http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5165
    execute http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4917
    _next http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4695
    _onTransactionFinish http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4681
    _finish http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5002
    _next http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5191
    _progress http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5299
    onLoad http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5091
    _insert http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:5165
    execute http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4917
    _next http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4695
    _load http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4674
    js http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:4459
    _insert http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8540
    insert http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8593
    _continue http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8576
    insert http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:8595
    _use http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1313
    use http://moodle-44.local/theme/yui_combo.php?rollup/3.18.1/yui-moodlesimple.js:1020
    <anonymous> http://moodle-44.local/enrol/ilios/edit.php?courseid=9&id=46:1337
    <anonymous> http://moodle-44.local/enrol/ilios/edit.php?courseid=9&id=46:1343
yui_combo.php:32:17

to reproduce:

  1. set up an Ilios enrolment instance
  2. open up the edit instance form
  3. check your browser console, see the error.
@stopfstedt stopfstedt self-assigned this Jan 27, 2025
@stopfstedt stopfstedt added the bug label Jan 27, 2025
@stopfstedt
Copy link
Member Author

stopfstedt commented Jan 27, 2025

non-breaking bug, emitted from an orphaned variable. clean this up for the M4.5 upgrade when this will be rewritten without YUI.

refs #47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant