Wordpress Install "Waiting for JavaScript" all of a sudden

Auburn Online's picture

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's picture

Hi,

Would you mind providing the following:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Mobile or Desktop
  3. Browser: Chrome, Firefox, Safari etc
  4. H5P content type and version (if a content type was used)
  5. Any browser console errors
  6. Any PHP errors
  7. Screenshots if it's a visual problem

If it worked before:

  1. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.)
  2. Any recent changes to the browser you're using (new extensions, updates etc.)

-BV

Auburn Online's picture

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's picture

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's picture

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's picture

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's picture

We want to completely reinstall WordPress and import the h5p database into the new WordPress installation. Is there a way to accomplish this?

BV52's picture

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's picture

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's picture

Hi,

I'm glad to know that this is working now and thank you for getting back to us with your resolution.

-BV