Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
This module service minifyjs
depends on the file.usage
service provided by the core File module, but the module itself does not declare a dependency on the File module causing (under certain circumstances) a PHP fatal when syncing the config or installing a project from the existing config.
PHP error:
In CheckExceptionOnInvalidReferenceBehaviorPass.php line 31:
The service "minifyjs" has a dependency on a non-existent service "file.usage".
Proposed resolution
Add a missing dependence to the module info file
Remaining tasks
Review a patch
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | minifyjs_missing-dependency-file_3146562-2.patch | 655 bytes | Taran2L |
Comments
Comment #2
Taran2LComment #3
Taran2LComment #4
Taran2LSo, the patch from #2 does resolve the issue and it applies to the dev version, but it cannot be applied to the stable version ... because Drupal packagist script adds several lines at the bottom of the info file, and due to the missing newline, the patch cannot be applied
Always add a new line at the end, always!
Comment #5
Taran2LI've modified the patch by hand, so it should work with the stable 2.1 release
Comment #6
Taran2LNope, patch from #5 won't apply either.
Comment #8
slydevil CreditAttribution: slydevil commentedComment #9
slydevil CreditAttribution: slydevil commented