Error in uploading H5P Course Presentation to Wordpress

Today I tried to upload my H5P course presentation 'Literary Criticism and the Scholarly Conversation' (https://h5p.org/node/410747) to our local WordPress site (https://www.cccc.edu/H5P/). I clicked on H5P content, Add New, and then tried to upload the file downloaded from https://h5p.org/node/410747. I recieved an error message that said 'Could not get posted H5P.' We are using WordPress 5.1 on a Desktop computer running Google Chrome. We are using H5P plugin Version 1.12.0. Does anyone know what might be causing this or how to work around it?

Content types: 
BV52's picture

Hi cccclib,

We are using the same version of both WP and H5P and I was able to upload the content on my test machine. In order to give your bug report the best chance of getting answered, please include the following information:

  1. Detailed steps to reproduce the bug (stated above)
  2. Platform and version number. WP 5.1
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version - 1.12.0
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors
  8. Any PHP errors
  9. Screenshots if it's a visual problem
  10. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.)
  11. Any recent changes to the browser you're using (new extensions, updates etc.)

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!

-BV52

I am on a desktop device. I have tried uploading the content in a regular browser window in Chrome, Firefox, and IE as well as in incognito/private windows in each of those browsers and I recieve the same error message. I have also tried to upload sample course presentations from H5P.org (Berries and Test - Course presentation for download) to ensure that the error was not due to the configuration of our content - both attempted uploads recieved the same error message as indicated in the original comment: Could not get posted H5P.

I do not have any browser console errors and I have not made any new changes to the browser or upload environment. I have included a short screengrab of the behavior I am seeing: https://www.screencast.com/t/z3EsWSZYhHK9

Any assistance would be greatly appreciated. 

icc's picture

This is a generic error when the uploaded file isn't delivered to PHP.

1. Have you tried using another browser when uploading the file?

2. Check the following settings in the php.ini file:
file_uploads = On
post_max_size = 16M
upload_max_filesize = 16M

Note that the file cannot be bigger than the limit set here.

In addition, there can be upload restrictions configured on the web server(Apache) itself.