Deprecated Content Types do NOT upgrade automatically

boton's picture

Hello

I have been using H5P for a long time

Recently I had a server issue and have to REINSTALL Moodle from scratch to a different folder on the server

Currently Moodle version 3.11.2 

I have 2 H5P in my Plugins area:

H5P mod_h5pactivity 202105170

and

H5P mod_hvp 1.22.3 2021061100

On the settings for the HUB

Beto Boton

Carlos Alberto (Beto) Boton

MY_CORRECT@EMAILADDRESS

4556 Buderim

Australia

THE ISSUE:

 

Content Type - Course Presentation - DEPRECATED, also

 

Content Type - Drag Text - DEPRECATED

 

Deprecated Content Types do NOT upgrade automatically They show the following message (below)

You're trying to upload content of an older version of H5P. Please upgrade the content on the server it originated from and try to upload again or turn on the H5P Hub to have this server upgrade it for your automaticall.

HOW do I have these contents (dozens of them in 6 different courses) to be updated automatically?

I downloaded the H5p file uploaded to H5P.org, downloaded again to my local machine, then uploaded to the server as a NEW H5P content and it worked.

Deleted the deprecated version and it is done.

BUT THIS METHOD will take a VERY long time

Any other solutions?

Thanks for any help

Kind Regards

Beto Boton

 

 

Summary: 
Deprecated Content Types do NOT upgrade automatically
otacke's picture

Hi!

Am I correct to assume that you're uploading that content created with older versions of a library to the content bank of moodle's integration of H5P (mod_h5pactivity)? If yes, then it seems that moodle did not include a mechanism to either install the old library version from the content that you're trying to upload (which would work, but indeed might result in tons of different library versions on your server) or to upgrade the old content to the latest library version found on your server as the H5P plugin would (because that seems to be done via the H5P Hub, and the moodle team has not yet integrated it). If my assumption is correct, then you'll probably have better chances of learning about a solution if you post about your problem on the moodle forums, because the H5P core team had no part in creating mod_h5pactivity.

Cheers,
Oliver

boton's picture

Thank you very much for your reply.

You are correct, most of the content was created a while ago, but on the other hand if you have 2 or 3 hundred h5p content activities in severl courses, will we have to manually update 1 by one to a new library? 

Anyway, YES I'm on Moodle forums with this issue and I already posted it is NOT an  H5P issue at all.

 

We managed to download each h5p and recreate them in another Moodle instalation, the deprecated status disappeared BUT no backups... at least we know it is not a problem with h5p

 

THANK YOU ONCE AGAIN

Beto Boton

otacke's picture

Hi!

Next to upgrading content to a later version automatically when uploading it from a file, the H5P plugin has a library settings page that allows you to upgrade all instances of existing contents to a newer version at once. I assume that moodle's core integration has a similar batch upgrade feature somewhere. Otherwise, that would be a real bummer indeed.

Best,

Oliver 

boton's picture

Thank you 

I managed to gett all H5P activities updated

I have a separate issue which is were it all started and I'll be posting it soon, If I add H5P Interactive activity in Moodle 3.11.2 the course doesn't back up anymore. If I UPLOAD H5P it backups but show on the page DISPLAY ONLY.

I'll be back soon

 

Kind Regards

Beto Boton