Error Upgrading Library Content - Please enable JavaScript

Created on 22 September 2022, almost 3 years ago
Updated 7 August 2025, 5 days ago

Problem/Motivation

After installing a new activity type we can no longer edit old activities that use the old version - you click save in the editor and the page refreshes but the changes aren't saved. I recall this happening before and upgrading the content to the newer installed version fixed the issue.

However we are unable to upgrade the content. We get the message "Please enable JavaScript." on the page after clicking the green upgrade arrow.

Steps to reproduce

1. Install a new version of a content type (in our case it was Column 1.15.2)
2. Browse to /admin/content/h5p and find the old previous version content has a green upgrade arrow. (in our case it is for Column (1.13.1))
3. Click the upgrade arrow and get taken to /admin/content/h5p/libraries/157/upgrade-confirm with the message:

Upgrade Column (1.13.1) content
Please enable JavaScript.

In the developer console we have the following error:

h5p.js?v=1.0:997 Uncaught TypeError: Cannot read properties of undefined (reading 'l10n')
    at H5P.t (h5p.js?v=1.0:997:22)
    at HTMLDocument.<anonymous> (h5p.js?v=1.0:2717:18)
    at c (jquery.js?v=1.9.1:2:7857)
    at Object.fireWith [as resolveWith] (jquery.js?v=1.9.1:2:8658)
    at Function.ready (jquery.js?v=1.9.1:2:3266)
    at HTMLDocument.H (jquery.js?v=1.9.1:2:695)

Looking at that line it is trying to access:

  if (H5PIntegration.l10n[ns] === undefined) {
    return '[Missing translation namespace "' + ns + '"]';
  }

I edited the file and the line before did a "console.log(H5PIntegration);" however the variable is undefined.

Any ideas how we can get this fixed?

Thanks.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada 2gendevs

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024