Wordpress Install "Waiting for JavaScript" all of a sudden
Submitted by Auburn Online on Wed, 02/03/2021 - 18:30
Forums:
Using Wordpress 5.6 and H5P Plugin v. 1.15.0.
Install is several years old and has been working just fine for a long time. From a few days ago, clicking on the H5P plugin now shows a "Waiting for Javascript" message, and none of the embedded H5P content works.
BV52
Thu, 02/04/2021 - 17:17
Permalink
Hi,Would you mind providing
Hi,
Would you mind providing the following:
If it worked before:
-BV
Auburn Online
Fri, 02/05/2021 - 03:31
Permalink
Additional Information
1. Anytime we click on H5P in the wordpress menu, the actual content does not load and along with the heading of the page, just shows "waiting for javascript." Relevant screenshot attached. There are no steps needed to reproduce since the message simply appears whenever one clicks on any of the H5P menu items.
2. Desktop - Windows and Mac, although mainly Mac users with 10.15 (.5 and .7).
3. Tried all browsers - Firefox 85, Chrome, Safari
4. None of the H5P content or libraries are loading.
5. See attached screenshot of console when going to "all content."
6. Will try to see if I can get this info.
7. See attached, although this isn't a visual problem.
Recent changes: Running WordPress 5.6.1, although update was installed earlier than the functionality stopped. Our H5P plugin is set to auto update. It doesn't seem to be a browser issue as best as I can determine since we have used multiple different computers and multiple different browsers.
otacke
Fri, 02/05/2021 - 17:27
Permalink
Hi!The svg-painter.js file is
Hi!
The svg-painter.js file is not part of H5P but is throwing the same error message before H5P. This leads me to believe it may be some other plugin that's causing the trouble. Are you by any chance running some other plugin that is trying to re-shape JavaScript files, e.g. some plugin to speed up loading of pages, some compression tool or something similar?
Best,
Oliver
Auburn Online
Tue, 02/09/2021 - 16:23
Permalink
H5P and H5P Mods Only
The only plugins on the site are H5P version 1.15 and H5P Mods v 0.0.1. There's basically no other content on the site since the entire WP installation is only used for serving H5P.
otacke
Tue, 02/09/2021 - 19:04
Permalink
Hi!Where's the svgpainter
Hi!
Where's the svgpainter file coming from then? And what's the H5P Mods doing? Could you share the code? Maybe your own customization is causing the issue.
Best,
Oliver
Auburn Online
Thu, 02/11/2021 - 19:18
Permalink
Reinstall
We want to completely reinstall WordPress and import the h5p database into the new WordPress installation. Is there a way to accomplish this?
BV52
Fri, 02/12/2021 - 17:23
Permalink
Hi,AFAIK the only way is to
Hi,
AFAIK the only way is to export/import the contents. There could be another way but someone who is more proficient in WP may be able to answer this.
-BV
Auburn Online
Tue, 02/16/2021 - 03:42
Permalink
The Fix
Looks like some errant code was injected into every JS file on our server. While it was only used for H5P, this was a lot of JS files. We reinstalled the H5P files by downloading the plugin to a new server, and copying those files over to the existing server. This replaced all plugin files and restored our server to fully operational.
BV52
Tue, 02/16/2021 - 17:10
Permalink
Hi,I'm glad to know that this
Hi,
I'm glad to know that this is working now and thank you for getting back to us with your resolution.
-BV