(Solved) Installing And Upgrading Help "Loading Failed For Script" Js Errors During Moodle 3.10 + Install

1 min read

Installing and upgrading help
"Loading failed for script" js errors during moodle 3.5.6 install (and after on cli installed site)

Best Solution 

You've redacted the site domain name in the output but the links still contain this. Hopefully this doesn't mean you've leaked any sensitive information. It has the advantage that we can see the problem directly.

It looks like 1) debugging is enabled for the site and 2) config.php contains a deprecated implicit object creation, presumably for $CFG.

This is causing JavaScript content to be served with an HTML fragment containing a PHP warning inserted at the start which the browser isn't expecting.

The sample config-dist.php shows how $CFG should be created (from Moodle 1.9 onwards):

unset($CFG);  // Ignore this line
global $CFG;  // This is necessary here for PHPUnit execution
$CFG = new stdClass();
ensure the top of config.php matches, these lines should appear before any $CFG->property = … lines.

Comments (0)

Leave a Comment

Type the above code here

Read Next

Official Nairobi Institute of E-Commerce Contacts, Courses ,intakes ,fee structures and Location 2018

1 min read

Official nairobi institute of e-commerce contacts p.o boxbox 1107-01000thikacourses offered at nairobi institute of e-commerce 1. craft in certified public accountancy (kasneb) for a maximum of 45...

Continue reading

Official Kenya Institute of Security and Criminal Justice – Nakuru Contacts, Courses ,intakes ,fee structures and Location 2018

1 min read

Official kenya institute of security and criminal justice – nakuru contacts p.o. box 1952-20100nakuru courses offered at kenya institute of security and criminal justice – nakuru1. diploma in se...

Continue reading

Official Kinangop Vocational Training Centre Contacts, Courses ,intakes ,fee structures and Location 2018

1 min read

Official kinangop vocational training centre contacts p.o box87-20318 north kinangopcourses offered at kinangop vocational training centre1.grade iii-ii in motor vehicle mechanics (nita) for maximum...

Continue reading

How to apply KMTC Courses Online step by step

3 min read

How to apply kmtc courses  online step by stepkmtc courses application online procedure. the deadline for the kenya medical training college application for the 2017/2018 intake is on 11th may 20...

Continue reading

Official United Africa College-Laare Branch Contacts, Courses ,intakes ,fee structures and Location 2018

1 min read

Official united africa college-laare branch contacts p.o box 271-60601 - laare, courses offered at united africa college-laare branch1. certificate in business management (knec) for a maximum of...

Continue reading

80 IEBC job vacancies two Senior Procurement Officers, 41 Constituency Election Coordinators (CECs), 30 Accountants, two County ICT Officers and two County Administrative Assistants (CAAs)

1 min read

The electoral management body, the iebc, has advertised 80 job vacancies in today’s newspapers. they comprise three directors, two senior procurement officers, 41 constituency election coordinat...

Continue reading