Handle modules that do not provide a required lifecycle_link property

Created on 9 December 2021, over 3 years ago
Updated 27 June 2025, 11 days ago

Problem/Motivation

I did some manual test on Drupal 9.4.x of #3215043: Indicate the non-stable statuses in admin/modules page β†’ but the errors I encountered were not a result of that patch. So, I am making a new issue.

When the lifecycle is set to obsolete or deprecated and the required lifecycle_link is not declared you get a The website encountered an unexpected error. Please try again later. error. The log was:
NOTICE: PHP message: Uncaught PHP Exception Drupal\Core\Extension\InfoParserException: "Extension test (modules/contrib/test/test.info.yml) has 'lifecycle: obsolete' but is missing a 'lifecycle_link' entry." at /var/www/html/core/lib/Drupal/Core/Extension

I also noticed that this in test.info.yml did not generate a warning, perhaps it should?

experimental: true
lifecycle: stable
lifecycle_link: 'https://drupal.org.nz'

Steps to reproduce

  1. Create a test module with lifecycle: obsolete or lifecycle: deprecated and no lifecycle_link.
  2. Go to /admin/modules
  3. See The website encountered an unexpected error. Please try again later.

Proposed resolution

Remaining tasks

Patch
Tests
Review

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

πŸ› Bug report
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

extension system

Created by

πŸ‡³πŸ‡ΏNew Zealand quietone

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