Closed (duplicate)
Project:
Drupal Most Popular
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 May 2012 at 06:30 UTC
Updated:
1 Jan 2013 at 14:13 UTC
Jump to comment: Most recent file
Comments
Comment #1
ajayg commentedHere 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
Comment #2
fran seva commentedI post a patch in #1198958: Most Popular calls Google Analytics API but is now Google Analytics Reports that should fix it.
Move the thread to this issue
Hello,
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 #3
fran seva commentedChange the status to "needs review".
Comment #4
tomasbedrich commentedThank you fran seva, it works.
Comment #5
sutharsan commentedCode reviewed and it looks fine. Tested and works as advertized. Let's get this thing committed.
Comment #6
sutharsan commentedThe patch in this issue is cross posted from #1198958: Most Popular calls Google Analytics API but is now Google Analytics Reports. Closing this issue in favor of the latter.
Comment #7
ajayg commentedI followed all the threads cross linked but no where it is marked as "fixed" which is next step after RTBC. Someone needs to say this is in latest version and mark is fixed atleast in one thread.
Ideally we should mark this fixed in the same thread it is reviewed. Currently this is RTBC is one thread but patch attached in different thread can be more confusing.
Comment #8
sutharsan commentedMarking an issue duplicate is an attempt to clean up the issue queue. The patch in this issue originates from #1198958: Most Popular calls Google Analytics API but is now Google Analytics Reports and is marked rtbc there. This issue covers exactly the same problem and has the same solution. Having multiple issue for the same problem won't help getting the patch committed, it only clutters the issue queue.