Problem/Motivation

Now(Drupal 9.5.10) supports semantic versioning as implemented by the Composer project.

Proposed resolution

Add new key core_version_requirement in libraries.info.yml

Change records: https://www.drupal.org/node/3070687

Comments

thalles created an issue. See original summary.

thalles’s picture

thalles’s picture

Status: Needs work » Needs review
kristen pol’s picture

Issue tags: +Drupal 9 compatibility
djween’s picture

Not sure if it is related to this issue but when trying to install this module, I receive browser message:

The website encountered an unexpected error. Please try again later.

and log message:

Drupal\Core\Extension\InfoParserException: Missing required keys (type) in temporary://update-extraction-cb493206/libraries 2/tests/example/example_info_file.libraries.info.yml in Drupal\Core\Extension\InfoParserDynamic->parse() (line 57 of /home/site/public_html/site.com/core/lib/Drupal/Core/Extension/InfoParserDynamic.php).

I am running: Drupal 8.9.2 PHP 7.3.20

Any thoughts are appreciated.

nikitagupta’s picture

I tried to install Libraries API on Drupal 8.9.2, is successfully installed I'm not getting any error.

Patch #2 is working fine for me.
patch successfully applied on D9 and also work for D8.
+1 for RTBC.

ressa’s picture

That looks like a different issue @djween, I have created #3186677: fix deprecated tests for D9x compatibility.

joseph.olstad’s picture

Status: Needs review » Fixed

composer require 'drupal/libraries:^3.0@alpha'

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

nadhififauzan’s picture

Issue summary: View changes

i can't get over this
drupal version 9.5.10
php version 8.0.27

Terjadi galat AJAX HTTP
Kode hasil HTTP: 500
Debugging informasi berikut.
Path: /batch?id=96&op=do_nojs&op=do
StatusText : 500 Service unavailable (with message)
Teks tanggapan: Situs web mengalami kesalahan tak terduga. Silahkan coba lagi nanti.Drupal\Core\Extension\InfoParserException: The 'core_version_requirement' constraint (9.5.10) requires the 'core' key not be set in temporary://update-extraction-12acf79a/php/tests/modules/php_views_test_config/php_views_test_config.info.yml in Drupal\Core\Extension\InfoParserDynamic->parse() (line 88 of core/lib/Drupal/Core/Extension/InfoParserDynamic.php). Drupal\Core\Extension\InfoParser->parse('temporary://update-extraction-12acf79a/php/tests/modules/php_views_test_config/php_views_test_config.info.yml') (Line: 565)
update_verify_update_archive('php', 'temporary://update-cache-12acf79a/php-8.x-1.1.tar.gz', 'temporary://update-extraction-12acf79a')
call_user_func_array(Object, Array) (Line: 426)