I cannot figure out why I am getting the following errors in my browser console consistently, even after the last 3 updates—and in each case I made a clean install:
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (popper.js.map, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (dropdown.js.map, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (util.js.map, line 0)
I have tried to locate the files; they do not exist. The errors point to the following directory(s): plugins/themes/default/js/lib/bootstrap/ and plugins/themes/default/js/lib/popper/
- OJS 220.127.116.11
- I reinstalled new updates clean
- I have looked through the logs but do not see any errors, just warnings.
- Recent error logs:
Many thanks for any help you can provide.
Adding “.map” to the popper.js , dropdown.js and util.js files in the themes>default>js>lib>bootstrap/popper folders makes this problem go away.
Edit the DefaultThemePlugin.inc.php file.
Hello, I have the same warning.
I uncommented the line below in “… \ js \ lib \ popper \ popper.js”:
sourceMappingURL = popper.js.map
But now the error appears:
popper.js? v = 18.104.22.168: 2449 Uncaught ReferenceError: popper is not defined at popper.js? v = 22.214.171.124: 2449
If you completely delete the line “sourceMappingURL = popper.js.map” the warning and error disappear.
Can I remove that line?
Hi everyone, these errors will not effect your site in any way. The
.map files are only used for development purposes. Do not rename the
util.js files or you may cause problems with your site.
On the last line of the above-mentioned .js files, just remove the # after the //. This will do it and the .map files will not be accessed.
I do this usually on child themes that I derive from the default theme (but not on the original default theme).