Replacing or finding a missing Library
Hi,
[Setup: Locally-hosted H5P running on Drupal. PHP version 5.3.3.]
I was using the Hub to do some updates to Content types - there were quite a few - and at the end of rebuilding the cache there was a long page of error messages stating that "The H5P library Advanced Text 1.1 used in the content is not valid."
Looking at the list of libraries under Content>H5P Libraries there was no record of version 1.1 only version 1.0. However in the Libraries folder there is a copy of Advanced Text 1.1. So it looks like the upgrades of the content types lost the library somewhere in the process?
A lot of objects in our set of 4,200 are now not working since this library went missing.
How do I get it back or get it recognized by the H5P system?
Update: noticed that there is a small difference in the Advanced Text 1.1 library.json file that perhaps was updated as part of the Content Type updates done through the Hub compared to an earlier copy on a backup site- also v1.1.
Updated version with addition in bold:
{
"title": "Text",
"description": "A simple library that displays text with all kinds of styling.",
"majorVersion": 1,
"minorVersion": 1,
"patchVersion": 6,
"runnable": 0,
"machineName": "H5P.AdvancedText",
"author": "Joubel",
"preloadedJs": [
{
"path": "text.js"
}
],
"preloadedCss": [
{
"path": "text.css"
}
],
"metadataSettings": {
"disable": 0,
"disableExtraTitleField": 1
}
}
previous version of v1.1:
{
"title": "Text",
"description": "A simple library that displays text with all kinds of styling.",
"majorVersion": 1,
"minorVersion": 1,
"patchVersion": 2,
"runnable": 0,
"machineName": "H5P.AdvancedText",
"author": "Joubel AS (icc)",
"preloadedJs": [
{
"path": "text.js"
}
],
"preloadedCss": [
{
"path": "text.css"
}
]
}
Is it safe to swap the old version of the library.json file into the current production instance? Will it affect some of the updates to Content Types?
Thanks in advance
Ian
BV52
Wed, 11/07/2018 - 01:58
Permalink
Hi istory,Can you please
Hi istory,
Can you please check this thread, I think this is similar to the issue that you are facing.
-BV52
istory
Mon, 11/12/2018 - 01:58
Permalink
all fixed
Thanks for the suggestion. The recent update meant that it was easier to just update the whole system and that fixed the issue. Thanks