Syntax error when trying to add a file from repository

Syntax error when trying to add a file from repository

by Davíð Baldursson -
Number of replies: 1

Hello

When I try to add a media file to a Page activity I get a Syntax error when i try to select my repository.

The error is "Syntax error Unexpected end of input"

I turned on debugging and it gave me this message below. Any idea what is happening?

I am running Moodle2.8.4 (Build: 20150309)  with PHP version 5.5.0-1ubuntu4.6

SyntaxError: Unexpected end of input    at Object.parse (native)    at Object.Y.namespace.parse (http://landsbjorg.keilir.net/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:24483:18)    at cfg.on.complete (http://landsbjorg.keilir.net/lib/javascript.php/-1/repository/filepicker.js:595:43)    at Y.Subscriber._notify (http://landsbjorg.keilir.net/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13680:35)    at Y.Subscriber.notify (http://landsbjorg.keilir.net/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13709:24)    at Y.CustomEvent._notify (http://landsbjorg.keilir.net/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13372:17)    at Y.CustomEvent._procSubs (http://landsbjorg.keilir.net/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13498:36)    at Y.CustomEvent.fireSimple (http://landsbjorg.keilir.net/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13465:18)    at Y.CustomEvent._fire (http://landsbjorg.keilir.net/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:13447:29)    at Object.ET.fire (http://landsbjorg.keilir.net/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js:14600:22)
Average of ratings: Useful (2)
In reply to Davíð Baldursson

Re: Syntax error when trying to add a file from repository

by Od Morton -

Same thing here.   Please help!

I am using Moodle 3.0.2 (Build: 20160111).


Also, please notice that I had to change every http to hxxp (otherwise the forum flag it as spam).


SyntaxError

Syntax error


File:

Line:

Stack trace:
SyntaxError: Syntax error   at parse (hxxp://192.168.1.101/moodle/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1453301322/mcore-debug.js:24483:5)   at cfg.on.complete (hxxp://192.168.1.101/moodle/lib/javascript.php/1453301322/repository/filepicker.js:1:12176)   at Y.Subscriber.prototype._notify (hxxp://192.168.1.101/moodle/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1453301322/mcore-debug.js:13680:21)   at Y.Subscriber.prototype.notify (hxxp://192.168.1.101/moodle/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1453301322/mcore-debug.js:13709:13)   at Y.CustomEvent.prototype._notify (hxxp://192.168.1.101/moodle/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1453301322/mcore-debug.js:13372:9)   at Y.CustomEvent.prototype._procSubs (hxxp://192.168.1.101/moodle/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1453301322/mcore-debug.js:13498:17)   at Y.CustomEvent.prototype.fireSimple (hxxp://192.168.1.101/moodle/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1453301322/mcore-debug.js:13465:13)   at Y.CustomEvent.prototype._fire (hxxp://192.168.1.101/moodle/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1453301322/mcore-debug.js:13447:17)   at ET.prototype.fire (hxxp://192.168.1.101/moodle/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1453301322/mcore-debug.js:14600:13)   at IO.prototype._evt (hxxp://192.168.1.101/moodle/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.js&rollup/1453301322/mcore-debug.js:23686:13