Uncaught TypeError: Cannot read property 'loader' of undefined

Uncaught TypeError: Cannot read property 'loader' of undefined

by Syed Khalid Mehmood -
Number of replies: 1

I am using Moodle 3.6 with Adaptable theme. IT was working fine but from last 2 weeks i am getting this error 

Uncaught TypeError: Cannot read property 'dock' of undefined

    at ?redirect=0:538

    at YUI._notify (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:9)

    at yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:9

    at YUI._notify (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:9)

    at YUI.T (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:9)

    at e.Loader._finish (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:16)

    at e.Loader._onSuccess (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:16)

    at e.Loader.p (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:17)

    at e.Loader.onSuccess (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:17)

    at s._finish (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:12)

(anonymous) @ ?redirect=0:538

_notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:9

(anonymous) @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:9

_notify @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:9

T @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:9

_finish @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:16

_onSuccess @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:16

p @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:17

onSuccess @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:17

_finish @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:12

_next @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:12

_progress @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:13

h @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:12

load (async)

_insert @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:12

execute @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:12

_next @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:12

_load @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:12

js @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:12

_insert @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:17

(anonymous) @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:17

_continue @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:17

insert @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:17

_use @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:9

use @ yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:9

(anonymous) @ ?redirect=0:538

(anonymous) @ ?redirect=0:546

and with this error moodle do not display pictures 


Any Idea how can I resolve this issue? 

Average of ratings: -
In reply to Syed Khalid Mehmood

Re: Uncaught TypeError: Cannot read property 'loader' of undefined

by Colin Fraser -
Picture of Documentation writers Picture of Testers
So what changed? Go through your logs and see if there was something that changed at the time this error started occurring. But you will need to detect the cause quickly. However, check your moodledata folder, make sure that has not been tampered with. There should be some kind of log to detect if and when the moodledata folder was last accessed.

Be aware, this kind of error, can become a piece of string, that is, it just keeps getting longer and it is easy to be monstered by. Provisional response, reinstall the codebase. It is better to find the cause, but don't spend too much time on it. If nothing presents itself soon, refresh the codebase. If the error persists, then it is likely to be a database or moodledata folder error, which makes it easier to track.