Show RSS Feeds block fails due to missing Laminas dependency

Created on 6 February 2025, 3 months ago

Problem/Motivation

The Dashboards module's "Show RSS Feeds" block fails to display RSS feeds due to a missing dependency on Laminas\ServiceManager. When trying to display the RSS feed on a page, an error occurs:

Error: Class "Laminas\ServiceManager\AbstractPluginManager" not found in include() (line 29 of /var/www/html/vendor/laminas/laminas-feed/src/Reader/ExtensionPluginManager.php).

This issue is caused by the absence of the laminas/laminas-servicemanager package, which is suggested by the laminas/laminas-feed library.

Steps to reproduce

  1. Install and configure the Dashboards module.
  2. Add the Show RSS Feeds block to a page.
  3. Enter any valid RSS feed URL into the block's configuration.
  4. View the page with the RSS feed block displayed.

Expected behavior: The RSS feed should be displayed on the page.
Actual behavior: The page throws an error related to the missing Laminas\ServiceManager dependency.

Proposed resolution

To resolve this issue, the Dashboards module should explicitly declare the laminas/laminas-servicemanager package as a dependency in its composer.json. This will ensure that the necessary dependency is available when the module is installed or updated.

Remaining tasks

  • Review the module's dependency management and ensure all required packages are declared.
  • Add laminas/laminas-servicemanager to the composer.json file.
  • Test the module after the fix to ensure the issue is resolved.
  • Update the module's documentation to reflect the new dependencies.

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇹🇷Turkey makbay

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

Comments & Activities

Production build 0.71.5 2024