Failed to load resource: the server responded with a status of 404 ( polyfill.js, javascript-static.js Not Found)

Failed to load resource: the server responded with a status of 404 ( polyfill.js, javascript-static.js Not Found)

Tosin Odubela - මගින්
Number of replies: 9

Hi,

drop_down

I tried installing Moodle on our Google Cloud Compute Instance here: https://ansdatawarehouse.com/lms/  via Cpanel.

But for some strange reasons, the  usual navigation drop down is not working and its affecting all the tabs, especially the administrative tabs.

Then I enabled the console to check the problem and I encountered missing files:

Missing files

Kindly advise on what I could do as I have checked for all the files on the server and they are not missing.


Attachment complaints.png
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Tosin Odubela

Re: Failed to load resource: the server responded with a status of 404 ( polyfill.js, javascript-static.js Not Found)

Emma Richardson - මගින්
Documentation writers ගේ පින්තුරය Particularly helpful Moodlers ගේ පින්තුරය Plugin developers ගේ පින්තුරය
Check permissions on the files.
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Tosin Odubela

Re: Failed to load resource: the server responded with a status of 404 ( polyfill.js, javascript-static.js Not Found)

Ken Task - මගින්
Particularly helpful Moodlers ගේ පින්තුරය

Using Chrome browser?   What happens if you use FireFox?

'SoS', Ken


ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Ken Task

Re: Failed to load resource: the server responded with a status of 404 ( polyfill.js, javascript-static.js Not Found)

Tosin Odubela - මගින්
Thanks but I just tried it on Firefox, the same problem persists.
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Tosin Odubela

Re: Failed to load resource: the server responded with a status of 404 ( polyfill.js, javascript-static.js Not Found)

Ken Task - මගින්
Particularly helpful Moodlers ගේ පින්තුරය

Got command line access to your server and moodle code?

In the moodle code directory, issue:

find ./ -name polyfill.js

Above should find 2:

.//lib/mdn-polyfills/polyfill.js
.//lib/babel-polyfill/polyfill.js

Same for javascript-static.js file:

find ./ -name javascript-static.js

Above should find 1:

.//lib/javascript-static.js

If files are not there, then obviously, there will be issues.

'SoS', Ken

ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Ken Task

Re: Failed to load resource: the server responded with a status of 404 ( polyfill.js, javascript-static.js Not Found)

Tosin Odubela - මගින්
Hi Ken,

Thanks for your insight.

The files are there. That ia why I am bewildered by the error. Perhaps something is offsetting the paths on the server. Still checking...
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Tosin Odubela

Re: Failed to load resource: the server responded with a status of 404 ( polyfill.js, javascript-static.js Not Found)

Ken Task - මගින්
Particularly helpful Moodlers ගේ පින්තුරය

In your first screen shot there is a line that says something about 'intervention' and 'slow network'.   Have not a clue as to what that means ... I have a Google Compute Engine instance of CentOS 7 (image provided by Google) and have no such issues.

However, I do not have cPanel ... which also provides 'icons' to other apps/scripts supposedly to make admin of server easier.

So what sort of 'tools' related to 'intervening' (assuming translation of 'intervention' is in a human term ... 'protection')?   Some sort of something designed to 'protect' apps.

Don't re-call ever seeing anything in cPanels I've been granted access to on other providers related to networking but ... could be one in yours, I guess.

'offesetting paths' to a linux machine would, I think, be symlinks or aliases but the files are part of moodle code and I've never seen moodle code use symlinks/aliases.

Soooooo .... ????

Keep digging!

'SoS', Ken


ශ්‍රේණිගත කිරීම්වල සාමාන්යය: -
In reply to Tosin Odubela

Re: Failed to load resource: the server responded with a status of 404 ( polyfill.js, javascript-static.js Not Found)

Leon Stringer - මගින්
Core developers ගේ පින්තුරය Particularly helpful Moodlers ගේ පින්තුරය

It looks like /lms/lib on this web server is being redirected to some WordPress content. If you go to https://ansdatawarehouse.com/lms/lib/ you'll see a listing of "Index of /wp-includes".

So when the browser tries to access Moodle files in the lib folder it can't find them.
ශ්‍රේණිගත කිරීම්වල සාමාන්යය: Useful (1)