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 {
- constructor() {
- this.data_ = null
- }
- set data(value) {
- expect(!this.data_, "Re-setting data.");
- this.data_ = value
- }
- valueExists(id) {
- return id in this.data_
- }
- getValue(id) {
- expect(this.data_, "No data. Did you remember to include strings.js?");
- const value = this.data_[id];
- expect(typeof value !== "undefined", "Could not find value for " + id);
- return value
- }
- getString(id) {
- const value = this.getValue(id);
- expectIsType(id, value, "string");
- return value
- }
- getStringF(id, var_args) {
- const value = this.getString(id);
- if (!value) {
- return ""
- }
- const args = Array.prototype.slice.call(arguments);
- args[0] = value;
- return this.substituteString.apply(this, args)
- }
- substituteString(label, var_args) {
- const varArgs = arguments;
- return label.replace(/\$(.|$|\n)/g, (function(m) {
- expect(m.match(/\$[$1-9]/), "Unescaped $ found in localized string.");
- return m === "$$" ? "$" : varArgs[m[1]]
- }
- ))
- }
- getBoolean(id) {
- const value = this.getValue(id);
- expectIsType(id, value, "boolean");
- return value
- }
- getInteger(id) {
- const value = this.getValue(id);
- expectIsType(id, value, "number");
- expect(value === Math.floor(value), "Number isn't integer: " + value);
- return value
- }
- overrideValues(replacements) {
- expect(typeof replacements === "object", "Replacements must be a dictionary object.");
- for (const key in replacements) {
- this.data_[key] = replacements[key]
- }
- }
- }
- function expect(condition, message) {
- if (!condition) {
- throw new Error("Unexpected condition on " + document.location.href + ": " + message)
- }
- }
- function expectIsType(id, value, type) {
- expect(typeof value === type, "[" + value + "] (" + id + ") is not a " + type)
- }
- 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