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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hass’s picture

Issue summary: View changes
hass’s picture

hass’s picture

Title: Attaching inline JS is broken » Attaching inline JS no longer possible. Help get this back into core!
hass’s picture

Issue summary: View changes
Wim Leers’s picture

Status: Active » Needs review
FileSize
3.63 KB
hass’s picture

Status: Needs review » Needs work

Inline support is required in core. This does not solve the bug.

Berdir’s picture

Issue summary: View changes
Status: Needs work » Needs review
FileSize
3.85 KB
504 bytes

Maybe, maybe not, but this does seem to work for me. Did notice one problem, and that was that the drupalSettings were not correct yet.

hass’s picture

Status: Needs review » Postponed

I commit the DrupalSettings fix later, but the rest will not commited.

chipk’s picture

Tested 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.

noslokire’s picture

Extremely unpleasant intro in D8, #9 got me pass the error screen at least.

hass’s picture

hass’s picture

  • hass committed e4475af on 8.x-2.x
    Issue #2391029 by hass: Attaching inline JS no longer possible.
    
hass’s picture

Patch will be rolled back later to intentionally break the module and get inline JS back into core.

The last submitted patch, 5: google_analytics_inline_js.patch, failed testing.

The last submitted patch, 7: google_analytics_inline_js-2391029-7.patch, failed testing.

hass’s picture

Status: Postponed » Fixed

add html head has weight now.

Status: Fixed » Closed (fixed)

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