The presence of 'core_version_requirement: ^8.8 || ^9’ at the same time as 'core: 8.x’ in varbase_editor.info.yml causes the following error:
'Uncaught PHP Exception Drupal\Core\Extension\InfoParserException: "The 'core_version_requirement' constraint (^8.8 || ^9) requires the 'core' key not be set in modules/contrib/varbase_editor/varbase_editor.info.yml" at /Users/User/Sites/Site/docroot/core/lib/Drupal/Core/Extension/InfoParserDynamic.php line 91’.

Providing for any core version requirement equal to or above 'core_version_requirement: ^8.7.7 || ^9’ requires that 'core: 8.x’ be removed.

To fix this issue, 'core: 8.x’ on line 6 of varbase_editor.info.yml will need to be deleted.

Comments

mitchellwillocks created an issue. See original summary.

rajab natshah’s picture

Title: Core Version Requirement Key ^8.8 || ^9 - Uncaught PHP Exception » Fix Core Version Requirement Key ^8.8 || ^9 - Uncaught PHP Exception by lowering requirements and no core config

Thanks Mitchell for reporting this issue in a quick time !!!!

A follow up issue for
#3127312: Include a drupal/core requirement for [Varbase Editor] compatible with Drupal 9
lowering it to

core_version_requirement: ^8.7.0 || ^9

rajab natshah’s picture

Assigned: Unassigned » mohammed j. razem
Status: Active » Needs review
Issue tags: +varbase-8.8.5
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Assigned: Unassigned » rajab natshah
Status: Needs review » Needs work

In my opinion it should be

core_version_requirement: ^8.8.0 || ~9.0.0

Same as in the composer

     "drupal/core": "^8.8.0 || ~9.0.0",

Back on the lower ^8.7.0 || ~9.0.0 to be ^8.8.0 || ~9.0.0

rajab natshah’s picture

I will go with what the Lightning team did in Lightning core
https://git.drupalcode.org/project/lightning_core/-/blob/8.x-5.x/compose...
https://git.drupalcode.org/project/lightning_core/-/blob/8.x-5.x/lightni...

Having it as "drupal/core": "^8.8.0 || ~9.0.0", in the composer.json
and core_version_requirement: '^8 || ^9' in the varbase_editor.info.yml

  • RajabNatshah committed b5b608a on 8.x-7.x
    Issue #3138171: Fix Core Version Requirement Key ^8.8 || ^9 - Uncaught...
rajab natshah’s picture

Assigned: rajab natshah » mohammed j. razem
Status: Needs work » Needs review
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Status: Fixed » Closed (fixed)

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