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.
On line 39 on mostpopular_ga.module file the script calls for the google_analytics_api module but that module has been moved to google_analytics_reports module causing a fatal error in the script? I don't know if we are supposed to change the file to call the new Reports module or how to proceed. Please advise.
Comment | File | Size | Author |
---|---|---|---|
#13 | mostpopular_ga-GA_request_obj-1198958-11.patch | 2.79 KB | fran seva |
#10 | mostpopular_ga-authenticated_with_google_link-1198958-9.patch | 1.19 KB | fran seva |
#9 | mostpopular_ga-change_dependencies-1198958-8.patch | 499 bytes | fran seva |
Comments
Comment #1
fran seva CreditAttribution: fran seva commentedI'm using mostpopular 6.x-1 and Google analytics report instead Google Analytics API.
I see two problems
Comment #2
markie CreditAttribution: markie commentedgoogle_analytics_api was changed to google_analytics_reports so we need to make that change in the module. Thanks for bringing it up.
Comment #3
markie CreditAttribution: markie commentedAll,
I have pushed changes to reflect the new google_analytics_reports changes to the dev snapshot (should be available in 24hours) Please test this out and let me know if this resolves your issues and I'll make it a release. Thank you for your patience.
markie
Comment #4
fran seva CreditAttribution: fran seva commentedThanks markie!!
I will test it tomorrow.
Fran
Comment #5
markie CreditAttribution: markie commentedComment #6
ajayg CreditAttribution: ajayg commentedI tried the latest dev version and I still can't enable the most popular module. The issue is not with google analytics report. It is working as expected and verified. Most popular complains it depends on google_analytics as disabled. Even though it is enabled and working fine.
the dependency need to be changed to "googleanalytics" (remove underscore). Once I changed the dependency, I was able to enable module
Comment #7
bernman CreditAttribution: bernman commentedLooks like these changes never made it into the 7.x branch? I can try to roll a patch but if the work you did for patching the 6.x branch can be applied here as well that would probably be better.
Many thanks in advance!
Comment #8
ajayg CreditAttribution: ajayg commentedActually The module itself is still not working in 6.x. I can only enable it once I changed to "googleanalytics" (remove underscore). The module still give WSD
Comment #9
fran seva CreditAttribution: fran seva commentedHello ajayg,
I've changed the dependencies to googleanalytics and it's working. I don't see a WSD and I have configured the one service for GA.
What I see is a problem in the url "admin/settings/mostpopular/services/" because the link to configure a site to monitor with GA don't work. Instead of that, I use the configurations options that Google Analytics Report providees to configure the authentication with your GA account.
ajayg, Do you still see a WSD?
I attach a patch to change the dependencie...
Comment #10
fran seva CreditAttribution: fran seva commentedAttach a patch that includes the change of depencie and the link to configure the authentication to Google to set a site to monitoring, using the Google Analytics Reports configuration.
Comment #11
ajayg CreditAttribution: ajayg commented../admin/settings/mostpopular/refresh still gives WSD. Already tried both patch #10
If you try to run cron manually you still get WSD. So the issue is with refresh.
Here is the error in apache error log
PHP Fatal error: Call to undefined method stdClass::getMetrics() in ../sites/all/modules/mostpopular/modules/mostpopular_ga/mostpopular_ga.module on line 114, referer: http://mydomain.com/admin/settings/mostpopular
The patch #10 is incomplete. There are several references to google Analytics API inside module code that still need to be updated.
Comment #12
fran seva CreditAttribution: fran seva commentedI have a new patch that resolve the problem with:
* use of undefined functions as getMetrics (for the time being, it's the only undefined function)
* change the object $data, with the configuration to make a request to GA
I'm going to test it today, I suppose tomorrow will be ready (I need a site to be tracked from GA...).
If you want test it, I can attach the patch.....
Comment #13
fran seva CreditAttribution: fran seva commentedHello,
Attach the patch to resolve the following problems:
* Undefined function getMetrics and getDimensions undefined functions.
* Change the request objetc use in function google_analytics_api_report_data
The request object changes:
The workaround to avoid the undefined functions:
Comment #14
fran seva CreditAttribution: fran seva commentedThe problem with WSD is being work in #1563870: refresh gives white screen of death
Comment #15
Sutharsan CreditAttribution: Sutharsan commentedPatch reviewed and tested in #1563870: refresh gives white screen of death by ricoo and Sutharsan.
Comment #16
dreamet CreditAttribution: dreamet commentedDo you have any patch for google
Analytics report 7.x-3.x-dev? Please please please. dreamet2013@gmail.com
Comment #17
dreamet CreditAttribution: dreamet commentedBernman, how did you fix for 7.x-1.x-dev? I am still getting error.