Problem/Motivation

After update to 4.0 version i get this error

PHP message: PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in /var/www/html/web/modules/contrib/cdn/src/File/FileUrlGenerator.php on line 78"

Steps to reproduce

Update module and go to home page

CommentFileSizeAuthor
#2 3326622-2.patch618 byteswim leers

Comments

trickfun created an issue. See original summary.

wim leers’s picture

Assigned: Unassigned » wim leers
Status: Active » Needs review
StatusFileSize
new618 bytes

OMG, tiny mistake in the decorating, with huge consequences! 😅

wim leers’s picture

Title: Allowed memory size of exhausted » \Drupal\cdn\File\FileUrlGenerator::transformRelative() calls itself instead of the decorated service → endless loop & memory exhaustion
Assigned: wim leers » Unassigned
Status: Needs review » Reviewed & tested by the community
wim leers’s picture

Status: Reviewed & tested by the community » Fixed

  • Wim Leers committed 9f2e5a0 on 4.x
    Issue #3326622 by Wim Leers, trickfun: \Drupal\cdn\File\FileUrlGenerator...
wim leers’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.