Updating failed. The response is not valid JSON response.

Hi there,

Whenever I add H5P content from the plug in, my lesson (page) fails to update and I receive this message: 

Any trouble shooting ideas would be much appreciated :)

WordPress 6.2.2

H5P Plug in Version 1.15.6

Browser: Chrome

otacke's picture

Hi!

What is the actual response from the server? You should open your browser's development tools (which are usually opened by pressing F12). You should then

  1. See an error message in the console that most likely doesn't reveal much (probably some JSON related error message with a position, potentially 0).
  2. See a red entry in the development tool's network tab. When clicking on that entry, it will reveal more information including the response in a dedicated tab. It's likely HTML content intended to show up a server error page including a 3 digit HTTP error code.

The latter may already help to nail down the issue, but having a look at the PHP error log of your server may be more helpful.

Best,
Oliver