Currently running Version 4.3+ (Build: 20231124)
We had a course with an existing Assignment module, which stopped loading once we upgraded to 4.3 (Previously had been in a build 3+ build...)
Attempting to add an "Assignment" to a course immediately returns a HTTP 500 Error
Looking at the Console, I'm seeing a "VM50:5 crbug/1173575, non-JS module files deprecated."
The details of which look like:
- "use strict";
- // Copyright 2012 The Chromium Authors
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- var loadTimeData;
- class LoadTimeData {</li><li> constructor() {</li><li> this.data_ = null</li><li> }
- set data(value) {</li><li> expect(!this.data_, "Re-setting data.");</li><li> this.data_ = value</li><li> }
- valueExists(id) {</li><li> return id in this.data_</li><li> }
- getValue(id) {</li><li> expect(this.data_, "No data. Did you remember to include strings.js?");</li><li> const value = this.data_[id];</li><li> expect(typeof value !== "undefined", "Could not find value for " + id);</li><li> return value</li><li> }
- getString(id) {</li><li> const value = this.getValue(id);</li><li> expectIsType(id, value, "string");</li><li> return value</li><li> }
- getStringF(id, var_args) {</li><li> const value = this.getString(id);</li><li> if (!value) {</li><li> return ""</li><li> }
- const args = Array.prototype.slice.call(arguments);
- args[0] = value;
- return this.substituteString.apply(this, args)
- }
- substituteString(label, var_args) {</li><li> const varArgs = arguments;</li><li> return label.replace(/\$(.|$|\n)/g, (function(m) {</li><li> expect(m.match(/\$[$1-9]/), "Unescaped $ found in localized string.");</li><li> return m === "$$" ? "$" : varArgs[m[1]]</li><li> }
- ))
- }
- getBoolean(id) {</li><li> const value = this.getValue(id);</li><li> expectIsType(id, value, "boolean");</li><li> return value</li><li> }
- getInteger(id) {</li><li> const value = this.getValue(id);</li><li> expectIsType(id, value, "number");</li><li> expect(value === Math.floor(value), "Number isn't integer: " + value);</li><li> return value</li><li> }
- overrideValues(replacements) {</li><li> expect(typeof replacements === "object", "Replacements must be a dictionary object.");</li><li> for (const key in replacements) {</li><li> this.data_[key] = replacements[key]</li><li> }
- }
- }
- function expect(condition, message) {</li><li> if (!condition) {</li><li> throw new Error("Unexpected condition on " + document.location.href + ": " + message)</li><li> }
- }
- function expectIsType(id, value, type) {</li><li> expect(typeof value === type, "[" + value + "] (" + id + ") is not a " + type)</li><li>}
- expect(!loadTimeData, "should only include this file once");
- loadTimeData = new LoadTimeData;
- window.loadTimeData = loadTimeData;
- console.warn("crbug/1173575, non-JS module files deprecated.");
Not sure if also related - but was exploring around the site to gather more info, look for other errors - and this page displays when clicking on "Acceptance Testing"
Additional context information if helpful - have installed moodle on a VPS, I do have Root access.
I normally update code via git pull command from the cli into a folder on the server, backup the existing moodle code in public_html, remove existing code from the puiblic_html folder, then replace with the new Moodle code and copy the config.php file from the backup back into the public_html folder.
Been learning as I go managing this site - so welcome thoughts or suggestions, and can provide more info. Been poking around for a few days, and browsing the forums here, but haven't found any luck on clues to move forward.
Thanks in advance for any insights,
Ryan