The image was deleted automatically after 6 hours

Hi,

I have configured the h5p in my Drupal site. Using H5P created the one video interaction. In the video / Presentation, I have added one image. After 6 hours image was disappear automatically. Analyzed the code, but unable to find the root cause. Anyone help for me?

Image was stored in this path:

http://sitename/sites/default/files/h5p/content/12/images/file-594a0c45b...

 

Summary: 
Image was deleted automatically after 6 hours
tomaj's picture

There is some code that is supposed to run on cron, that will delete uploaded files, when the node they were attached to wasn't created, or deleted. But it would be very odd if you are loosing real content trough that.

- Tom

fnoks's picture

Hi,

This sounds like a serious problem. I have created an issue for this here: https://h5ptechnology.atlassian.net/browse/HFP-1207, and given it the highest priority!

fnoks's picture

Hi,

I have tried reproducing this, but am not able to. It would be great if you can answer the following questions:

  • Which version of the H5P module are you using?
  • Did you create an Interactive Video or Course Presentation?
  • Do you have any other modules on your Drupal site you think may affect file handling?
  • Are you able to reproduce this?
clemontrealwebmaster's picture

I have a similar issue.

I am using course presentation in a Wordpress environment. Sometimes using the drag and drop module, sometimes the image one.

After creating a presentation and looking at it everything seems in order. However, often when I check on it a day or two later it has missing images and audio files. I look on the server and the images are indeed not in the folder of the activityID. I have not detected a timeframe or why this happens. 

I am attaching a screenshot and a link to such activity.

http://www.clemontreal.org/fr/exercice-h5p/le-son-e-avec-la-lettre-e-eco...

I have others I created last year but I did not use presentation for any of them and all images are still there. But I do not know if its really link to the presentation, my server (web costing canada) or the H5P plugin. 

If anyone has suggestions or solutions please share, I have a total of 120 of tehse to make and so far I have had about 10/30 with this issue.

Thank you!

icc's picture

Hi,

Which version of the plugin are you running? Please make sure that you're running the latest version.

clemontrealwebmaster's picture

Sorry I did not see your reply. 

I am currently running Version 1.11.3. 

Any text or non file related changes persist. Png or mp3 uploads are the problem.

I just noticed that if I download the broken activity (from my site) and then reimport it again (to my site or to h5p.org) it works fine. Therefore, the export file seems to be good but for some rason the actual activity seems to either keep the old png or mp3 paths or the old mp3 or png files.

Thank you

clemontrealwebmaster's picture

 Hi I have a few more details that might help

The export/import method did not work for all faulty activities so I did some testing.

The problem occurs very often but on random days and is hard to reproduce but here is what I found today:

I have an image I added a few days ago. I can see it in the browser and in the resource folders in the browser dev tools. But if I look the same directory on my server, the file is not there. Naturally when I clear my cache the image is no loger found in the browser either.

So it seems that when I upload a media file, it gets cached but not actually uploaded on my server (cpanel based shared hosting from whc.ca). So I wonder if that issue is related to the H5P plugin and its compatibility with my WP installation or server environment or it is caused by a faillure of my server to save the files. 

Obviously when I called my server provider they say its plugin related but I wonder if it is possible that my hosting simply fails to save the files sometimes due to issues or increased load, in which case its weird that there is no error message to let me know what is going on.

Thank you

icc's picture

Are you still having issues with this?

i do have the same problem on my page but only when using the element "Multiple Hotspots". I cant really grasp what exactly happens, but every other day some images get deleted from '/wp-content/uploads/h5p/content/CONTENT_ID/images/backgroundImage-ID_OF_IMAGE.png'. when this happens we have to upload the image and set the hotspots again... i have absolutely no idea, what causes this as there are no logs or something. the image also gets referenced in the H5P Element Editor with the URL it used to have but the requests ends in 404, because the image is not on the server anymore. (Please see image attached and note the incomplete request to the image in the browser console on the right)

is there any way you can help me out / point me in the right direction? 

i am using H5P Wordpress Plugin (1.11.1).

i do have the same problem on my page but only when using the element "Multiple Hotspots". I cant really grasp what exactly happens, but every other day some images get deleted from '/wp-content/uploads/h5p/content/CONTENT_ID/images/backgroundImage-ID_OF_IMAGE.png'. when this happens we have to upload the image and set the hotspots again... i have absolutely no idea, what causes this as there are no logs or something. the image also gets referenced in the H5P Element Editor with the URL it used to have but the requests ends in 404, because the image is not on the server anymore. (Please see image attached and note the incomplete request to the image in the browser console on the right)

is there any way you can help me out / point me in the right direction? 

i am using H5P Wordpress Plugin (1.11.1).

I am having the same issue using both Course Presentation and Find Multiple Hotspots. Please advise how to fix

Some images files in course presentations are deleted. I cannot reproduce the problem. We are using H5P Wordpress Plugin 1.13.1

We are using Wordpress environment with latest H5p plugin. This happened after we made a copy of the course presentation. We are not sure if it happened due to same reason.