Copy & Pasting of old content

serettig's picture

Hi,

If I try to copy H5P content that was created before the copy & paste feature was introduced in the last update, I have trouble pasting it into any other content. I get the following message:

The content you’re trying to paste is of a lower version (1.7) than what is supported in this context (1.9), if possible try to have the content you want to paste upgraded, copy it again and try pasting it here.

Even copying content and trying to paste it into the exact some spot doesn't work. So I have two questions:

a) Is this behavior a bug or desired?
b) Is it possible to upgrade content? I have tried editing & saving the content, but this doesn't help.

Sebastian

otacke's picture

Hi Sebastian!

a) It's intended, because old content may have a different (semantics) structure than new content or vary in other ways. I am not sure though what you mean with "paste into the exact same spot".
b) You can upgrade existing content via the library screen of the host system's settings. Editing and saving is not enough.

Best,
Oliver

serettig's picture

Hi Oliver,

a) If you open an old piece of content and copy it, you can't paste it by clicking the button right next to the copy button. H5P complains that the version of the content is lower than of the editor. Wouldn't it be possible to upgrade old content when pasting it?

b) The problem with this is that I work for an institution running a massive moodle instance (the Bavarian mebis Lernplattform) and upgrading all existing content seems somewhat risky. Is it guaranteed that nothing will break when you upgrade content?

Yours
Sebastian

otacke's picture

Hi Sebastian!

a) That would require quite some effort I fear. If you want to give it a shot ... ;-)

b) We do that on h5p.org all the time for all contents hosted there ...

Best,
Oliver

My institution (NC State University) also hosts several large Moodle instances. We have had the H5P plugin installed since Spring 2018, and already have a large number of users. I understand that updates to content types are released regularly, and that updates often address bugs found in earlier versions. I am not a developer or an administrator, but I had assumed that applying the library updates on the server automatically updated existing H5P content on that server. But this seems not to be the case, and I'm worried that there are multiple versions of content types (with bugs) being used by many different instructors, potentially impacting thousands of students. Instructors copy entire courses from semester to semester (each semester is hosted on a different server), which includes H5P activities.

What happens to existing H5P content that was created on a server that had Interactive Video version 1.17, that is then copied onto a different server that has version 1.20?  Is just the content within the H5P file copied so that it works with the updated v. 1.20 libraries?  Or is the whole v. 1.17 file moved over so that updates aren't applied at all?  Or (worst case) are all activities using that content type broken if the versions are incompatible?

Thanks,

Arlene

BV52's picture

Hi Arlene,

How are you planning to move your contents? Afaik as I know you cannot copy/paste contents between 2 servers, what you can do is download and upload the contents. Having said this what will happen is that the content that is being moved will automatically use the newer libraries.

-BV52

otacke's picture

Hi Arlene!

Existing content is not updated automatically, because newer versions may change the look or the behavior in some cases. The upgrade should be a deliberate decision taken by someone within the organization. I agree however, that an "I want all existing content to be upgraded automatically" option would make sense, too, so an organization can choose the desired behavior. Might be worth a separate post to the feature request forum.

As BV mentioned, copy and paste across servers doesn't work, because only the content information will be copied, not the required libraries. However, H5P content files contain all the stuff needed for being used, and older libraries could be copied next to newer libraries unless this feature is deactivated - I think on moodle, there are some some php config file settings to control this, but I am really not sure.

Best,
Oliver

Hi Oliver,

I'm using H5P on Moodle. Where can I find this library screen?

Thanks in advance ;-)

BV52's picture

Hi patsej,

You can find the libraries under Site Administration -> Plugins -> H5P Libraries.

-BV

I've found it thanks to you.
On my Moodle 3.4, it's under Site administration > Plugins > Activity modules > H5P > H5P Libraries

Thanks! ;-)

Hello Oliver,

Yes, we would like to update all existing content on a server. I want H5P activities created with older content type versions to be updated with the features of the most recent version.  We implement regular updates to all our technologies, and would like all existing H5P content to be updated to the most recent content type version.  In the attached screenshots, the rows that had green arrow icons were updated.

I thought that this would update the interface of all existing content as well. However, there appears to have been no changes to existing content. For example, the file "OLD-interactive-video.h5p" (attached) was existing content that was updated. But comparing it to a newly created "NEW-interactive-video.h5p" (attached), I see that the "new" version has a star at the end of the playback timeline, and the "Submit answers" screen and button appears at the end of the video (see "new-screenshot-created-after-update.png"). The "old" version does not have these features ("old-screenshot-after-update.png"), even though we thought we had applied the update to the existing content.

Can someone help me understand the steps needed to update existing content that was created using an earlier content type version to the most recent version, so that it looks and behaves like content created with the most recent version? If this needs to be moved to another forum or thread, please let me know.

Thanks,

Arlene

otacke's picture

Hi Arlene!

When you upgrade existing videos that didn't have the submit feature, the upgraded version will be able to have the star, but you will have to add at least one submit screen mark in the editor. It's not added to existing videos automatically, but only to newly created ones.

This was a UX decision when designing the new feature. I assume the majority of people would rather have been confused if their videos suddenly had a submit screen that was not there before.

Best,

Oliver

Is it possible to see my H5p history and to revert to a previious version? I have a barnching scanario that I thought I was adding to, however, I lost all my work, can i get it back?