Problem/Motivation
If you try to install the module via the GUI using for example https://ftp.drupal.org/files/projects/libraries-8.x-3.x-dev.tar.gz from /admin/modules/install, or update the module from /admin/reports/updates/update you get this error:
The website encountered an unexpected error. Please try again later.
From the error log:
Drupal\Core\Extension\InfoParserException: Missing required keys (type) in temporary://update-extraction-e51370ab/libraries/tests/example/example_info_file.libraries.info.yml in Drupal\Core\Extension\InfoParserDynamic->parse() (line 57 of /app/web/core/lib/Drupal/Core/Extension/InfoParserDynamic.php).
It looks like the /tests/example/example_info_file.libraries.info.yml file is missing a type definition, like this:
type: module
Also mentioned by @djween in #5
Possibly related issue: #1606606: Drupal.org release packager corrupts info files that are not modules, themes, or install profiles.
Steps to reproduce
Go to /admin/modules/install and try to add the module with for example https://ftp.drupal.org/files/projects/libraries-8.x-3.x-dev.tar.gz (or the latest release), or update already installed module from /admin/reports/updates/update.
Proposed resolution
Adding type in the /tests/example/example_info_file.libraries.info.yml file is not enough, it looks like more work is required, to make the tests pass ... probably the tests for D9 needs updating.
Original issue was #3186677: fix deprecated tests for D9x compatibility.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3190825-8.patch | 542 bytes | mohit.bansal623 |
| #5 | 3190825-5.patch | 388 bytes | mohit.bansal623 |
Comments
Comment #2
dd 85 commentedThe problem is present for the version 8.x-3.0-beta1
Comment #3
ressaThanks for commenting @DD 85, I have added a bit of text in the Issue summary to clarify that the issue can be reproduced with both the dev-release, or latest official release.
Comment #4
bart lambert commentedhaving same problem, but only on 1 site. Another site took the update without problem
Comment #5
mohit.bansal623 commentedComment #7
ressaThanks @mohit.bansal623, please see Proposed resolution in this issue. We probably need to get the tests working first, possibly in #3186677: fix deprecated tests for D9x compatibility.
Comment #8
mohit.bansal623 commentedI have tried that proposed solution in #5, it failed one of the test case.
Uploading a new patch.
Comment #9
paulocsThis issue was fixed in #3186677: fix deprecated tests for D9x compatibility
Can you please confirm?
Try to install the last dev version of the site via GUI.
Comment #10
ressaThanks for working on that issue with the tests and got them working @paulocs!
I still get the same error ...:
Comment #11
dd 85 commentedThe problem persists when upgrading from 8.x-3.0-beta1 to 8.x-3.0-beta2
Comment #12
kazah commentedI confirm
The problem persists when upgrading from 8.x-3.0-beta1 to 8.x-3.0-beta2It doesn;t work.