Unable to upload pictures

I seem to have an unusual issue in live where we cannot upload pictures and just see the throbber. In dev which is hosted locally on Drupal everything works fine, out live site is in AWS and also running Drupal.  I can't see anything in the logs and in dev toolbar it just starts to upload the file but never finishes it.  I've tried changing from private to public files etc but still no joy.  Any ideas anyone?

Any help would be much appreciated.

Content types: 
BV52's picture

Hi skshed,

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 (exactly how and when did it happen)
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version
  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

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

Thanks BV52,

The problems occurs with Drupal 7.56 on desktop (Will test mobile shortly)

I have tried Firefox, Edge and Chrome and see the same results.

Version of the H5P module is 7.x-1.34.

The content types tried include the following: Drag n drop, image sequencing and course presentation and the latest version for each one.

Not seeing any errors in the console, it just keeps spinning and not uploading the file.  Weirdly I have just seen an error for course presentation but not the following, the error is as follows:

Warning: file_get_contents(sites/default/files/h5p/libraries/jQuery.ui-1.10/h5p-jquery-ui.js): failed to open stream: No such file or directory in H5PDefaultStorage->getContent() (line 288 of /var/app/current/sites/all/modules/h5p/library/h5p-default-storage.class.php)

Attached a screenshot

Attachments: 

After a bit more testing, the images are appearing in AWS, but I guess it's not talking back to the browser to say it's there.

It's something to do with the AWS config. If I use a load balancer it works, if I don't and use the .ebextensions it doesn't.  Will see what I can find out and post back if I find a fix in case anyone else has the same issue.

BV52's picture

Hi skshed,

Thank you for the update. Good luck and we look forward to the results.

-BV52

Apologies for the delay.  I had to remove this from my AWS config:

Header always set X-Frame-Options DENY

Hopefully this will help people if they have the same issue.

BV52's picture

Hi skshed,

No worries and thanks for getting back to us with your findings this will definitely help those that have a similar situation.

-BV52