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.
I observed on a customer server that the ga_push_method_analytics_js() function fails because of $_SESSION['ga_push_' . GA_PUSH_METHOD_ANALYTICS_JS] not being initialized before appending the push data.
This line fails: $_SESSION['ga_push_' . GA_PUSH_METHOD_ANALYTICS_JS][] = $push_info;, in that case.
Find attached the PHPInfo() of the server.
Also find in the first comment a proposed patch.
Comment | File | Size | Author |
---|---|---|---|
#2 | ga_push-fix_info_not_pushed_php_incompatibility-2796435-1.patch | 526 bytes | bpresles |
| |||
phpinfo.png | 2.86 MB | bpresles |
Comments
Comment #2
bpresles CreditAttribution: bpresles commentedComment #3
tunicThanks for the patch!
Comment #4
GeduR CreditAttribution: GeduR at Metadrop commentedThe patch looks nice, some changes has been done and also applied to ga_js method. Thanks!
Comment #5
GeduR CreditAttribution: GeduR at Metadrop commentedComment #7
GeduR CreditAttribution: GeduR at Metadrop commented