The Ubercart 7.x-3.x tests currently fail to run because of a bug in the google_analytics module.
Ubercart includes uc_googleanalytics, which depends on the google_analytics module. Because the google_analytics module has a syntax error in its current stable release 7.x-2.4, the testbot fails with a syntax error when it tries to load google_analytics. This aborts the remainder of the Ubercart testing. The bug was introduced in #2693595: Drupal sending Personally identifiable info to Google Analytics, and it doesn't appear there will be a new stable release of google_analytics to fix this bug.
Until there is a new stable release for google_analytics, we can avoid the problem by changing the uc_googleanalytics dependency to be dependencies[] = googleanalytics (!=7.x-2.4)
, meaning we will allow the testbot to use any version of google_analytics EXCEPT for the buggy 7.x-2.4.
Patch attached to test this ...
Comment | File | Size | Author |
---|---|---|---|
#7 | ubercart-google_analytics-php5.4+-2913705-7.patch | 517 bytes | jantoine |
google_analytics_bug.patch | 515 bytes | TR | |
Comments
Comment #2
TR CreditAttribution: TR commentedComment #5
TR CreditAttribution: TR commentedI had to commit the patch directly - the testbot parses the modules (and fails on the syntax error in google_analytics) BEFORE it applies patches like the one above, so there's no way to test the fix with the testbot.
Fortunately, the patch worked (see https://www.drupal.org/pift-ci-job/777606) and the Ubercart 7.x-3.x tests now run properly.
Comment #7
jantoine CreditAttribution: jantoine as a volunteer commentedI've attached a patch to revert the change from this issue for those of us using PHP 5.4+ and have already upgraded Google Analytics to v2.4.
Comment #8
TR CreditAttribution: TR commentedYes, we still don't have a new Google Analytics release with the syntax error fixed, four months later.
To repeat what I said in #2944051-3: Google Analytics version , if you are using GA 5.4 and have problems upgrading to Ubercart 7.x-3.11 because of this your choices are:
If you choose #3 or #4, you will have to modify uc_googleanalytics.info and change:
dependencies[] = googleanalytics (!=7.x-2.4)
to read:
dependencies[] = googleanalytics