Module installation issue. 1 abstract method and must therefore be declared abstract or implement the remaining methods.

Created on 8 July 2025, 2 months ago

Problem/Motivation

The PHP Fatal error appears when trying to install the module, that prevents module from being installed.

Steps to reproduce

Step 1. Install the module via composer:

composer require 'drupal/css_js_agg_retention:^1.0@alpha'

Step 2. Try to enable the module:

drush en css_js_agg_retention
PHP Fatal error:  Class Drupal\css_js_agg_retention\Asset\JsOptimizerSelectiveDelete contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Drupal\Core\Asset\AssetCollectionOptimizerInterface::getAll) in /var/www/html/web/modules/contrib/css_js_agg_retention/src/Asset/JsOptimizerSelectiveDelete.php on line 11

Proposed resolution

Add the needed `getAll` method to the `src/Asset/BaseOptimizerSelectiveDelete.php` class.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany kufliievskyi Germany, Bayern

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024