Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The isFieldsEnabled() method in LazyInterface.php is declared like this:
public function isFieldsEnabled(array $image_fields);
The implementation in Lazy.php is this:
public function isFieldsEnabled($image_fields) {
The typehint "array" is missing. This causes issues in PHP 7.1 and earlier resulting in a server error. PHP 7.2 does allow this, but it would be better to make Lazy class compatible with the LazyInterface. Patch will follow.
Comment | File | Size | Author |
---|---|---|---|
#2 | lazy_fix_lazy_class_incompatible_with_lazy_interface-3089620-2.patch | 399 bytes | Marty2081 |
Comments
Comment #2
Marty2081 CreditAttribution: Marty2081 at LimoenGroen commentedAnd here is a patch.
Comment #3
Gerben Spil CreditAttribution: Gerben Spil at LimoenGroen commentedPrior to patch the staging environment returned a 500 status code and a white screen.
After deploying the patch the staging environment was working again.
Comment #5
osman