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.
Problem/Motivation
[#2391025]google_analytics_inline_js.patch
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 24 bytes) in drupal8\core\vendor\symfony\debug\Symfony\Component\Debug\Exception\FlattenException.php on line 217
Proposed resolution
Remaining tasks
Get inline JS back into core or this module is no longer working.
User interface changes
API changes
Original report by @username
Comment | File | Size | Author |
---|---|---|---|
#12 | Issue-2391029-by-hass-Attaching-inline-JS-no-longer-.patch | 1.7 KB | hass |
Comments
Comment #1
hass CreditAttribution: hass commentedComment #2
hass CreditAttribution: hass commentedComment #3
hass CreditAttribution: hass commentedComment #4
hass CreditAttribution: hass commentedComment #5
Wim LeersComment #6
hass CreditAttribution: hass commentedInline support is required in core. This does not solve the bug.
Comment #7
BerdirMaybe, maybe not, but this does seem to work for me. Did notice one problem, and that was that the drupalSettings were not correct yet.
Comment #8
hass CreditAttribution: hass commentedI commit the DrupalSettings fix later, but the rest will not commited.
Comment #9
chipk CreditAttribution: chipk commentedTested google_analytics_inline_js-2391029-7.patch against 8.x-2.x (commit 42ed87a7d04a331e4f) and the patch failed to apply. Re-rolled patch and tested as now working.
Comment #10
noslokire CreditAttribution: noslokire commentedExtremely unpleasant intro in D8, #9 got me pass the error screen at least.
Comment #11
hass CreditAttribution: hass commentedUnstable workaround for the core bug.
Comment #12
hass CreditAttribution: hass commentedComment #14
hass CreditAttribution: hass commentedPatch will be rolled back later to intentionally break the module and get inline JS back into core.
Comment #17
hass CreditAttribution: hass commentedadd html head has weight now.