Closed (outdated)
Project:
Drupal SEO Tools
Version:
6.x-1.0-rc3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
20 Apr 2011 at 21:06 UTC
Updated:
14 Jun 2017 at 19:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
adpo commentedUnder:
admin/content/seotools
Fatal error: Call to undefined function google_analytics_api_current_profile_id() in /sites/all/modules/seotools/seotools.report.inc on line 15
under:
admin/presets/seotools
Fatal error: Call to undefined function google_analytics_api_check_token() in //sites/all/modules/seotools/plugins/seotools.presets.inc on line 234
Comment #2
adpo commentedI can't use Google Analytics API. This project has moved! Please visit new project page: Google Analytics Reports.
Comment #3
hmt3design commentedI switched from the Google Analytics API to the Google Analytics Reports and now I'm getting this error. GA-API has been discontinued, so this module needs to be updated to reflect the new Reports project.
Comment #4
mastermindg commentedWhat is the status of this update?
Comment #5
Ozyric commentedSame problem here, curious to know the answer
Fatal error: Call to undefined function google_analytics_api_check_token() in /homepages/35/d315750641/htdocs/sites/all/modules/seotools/plugins/seotools.presets.inc on line 234
Comment #6
grendzy commentedWow! I was not previously aware of the seotools module. Your dashboard is impressive!
The internals of google_analytics_reports has been through some refactoring. One of the goals of the refractor was to have a more focused API, with fewer "helper" functions, and an easier-to-use (dpm-friendly) data format. The API is also a bit "closer to the metal", in terms of what Google provides (for example, the "ga:" prefix is now required on metrics / dimensions).
I suggest fetching all your data from google_analytics_api_report_data() and google_analytics_api_account_data(). Most other report functions should be considered private, and may change again in the future as we refine the UI. There are a few changes to the format of the parameters - you can see example code on the GAR handbook page: http://drupal.org/node/1138274
Thanks!
BTW, if you need access to the previous version the final alpha release can be downloaded here: http://drupal.org/node/557406
Comment #7
netlynx commentedHi - I am confused why this issue is shown as a support issue when for a new install it is clearly critical.
I am also confused as to why this project is shown as actively maintained and available for install when (and I'm happy to be corrected) it doesn't work for a new install. Particularly when it takes so long to install all the modules and related modules to find it's making out of date function calls.
As previously stated the required module has moved to google_analytics_reports and it is NOT available in the required legacy state. This renders the whole seo tools project unusable due to dependancy.
The result is a white screen of death and no way to fix.
Note - I did add an empty function to google_analytics_api.module just to prove the point. This enabled access to the presets screen (but makes
content management>SEO tools crash to WSCD)
Before install I did check the issue queue but not this issue due to it being only a 'support' issue
I can see a lot of work has gone into this and it looks to be great - but how's about either fixing it or at the minimum updating the true situation here and on the download page to indicate it's not working currently; instead of setting us up for a big let down and a huge waste of valuable time.
As I said I'd be very happy if I have the wrong end of the stick....but if so I can't see it right now.
ps - I do not get the mentioned error; just a WSOD so strictly speaking this is perhaps a different issue, but the cause appears to be the same so I attached it here.
Comment #8
randallknutson commentedThis should be fixed in RC3. Please give it a try and let me know.
Comment #9
Anonymous (not verified) commentedRC3 error is not gone:
Fatal error: Call to undefined function google_analytics_api_current_profile_id() in /public_html/drupal-6/sites/all/modules/seotools/seotools.report.inc on line 15
Comment #10
netlynx commentedUpdated to RC3 - same issue - WSOD on Dashboard url. (content management>seo tools>dashboard)
Comment #11
lifer commentedI have the same problem, has it been fixed yet?
I know the whole system is mostly running on peoples spare time, but it would really be appreciated if we could get this to work.
Thanks for all your time :)
Comment #12
snowmountain commentedI also have WSOD.
I have the seotools installed, latest modules as of 6/17/2011, Drupal 6.22, and the dashboard is still not working.
With the Google reports and api enabled, I get the WSOD, and without them enabled, I get this message:
"SEO Tools has not been configured properly. Please go to seotools presets and ensure that it is configured properly.
Unable to generate dashboard. "
Comment #13
snowmountain commentedFYI,
From #7 above,
" ... add an empty function to google_analytics_api.module just to prove the point. This enabled access to the presets screen ..."
I did not have to add a function, and got from the seotools dashboard page (which didn't work), followed the link to the presets page, and could enable Google Anlaytics API & Report.
So, it seems this much (getting to the presets page) HAS been fixed. (This was with the Google Anlaytics API & Report modules NOT enable, however.)
The WSOD still returns after enbabling those modules from the presets page, though.
Comment #14
snowmountain commentedMore info:
The WSOD has this text top of page (admin/content/seotools/dashboard):
Fatal error: Call to undefined function google_analytics_api_current_profile_id() in /***/sites/all/modules/seotools/seotools.report.inc on line 15
Comment #15
bcobin commentedsubscribing
Comment #16
randallknutson commentedThe google analytics api module has gone through a name change and complete rewrite so we're working on integrating the new version in our seo modules. Because the change was so drastic, we haven't had the time for the major update yet.
Comment #17
bcobin commentedThanks for the update, randallknutson - much appreciated!
Comment #18
ccamporeale commentedHere's a version of google_analytics_api + google_analytics_reports which works with the expected function calls.
It's an older version reverted to the commit prior to the refactoring of these functions.
Comment #19
dmendo11 commentedHi guys,
Let me just say first, thank you for the great module. I would love to get more information on this though. As it looks like the SEO TOOLS Dashboard is not working and keep getting this same error:
Fatal error: Call to undefined function google_analytics_api_current_profile_id() in /***/sites/all/modules/seotools/seotools.report.inc on line 15
This looks like it has to do with the Analytics API, if I do install the file from ccamporeale, the problems then stays on the GOOGLE ANALYTICS REPORTS
After taking a look at the API FILES, they are very different from each other and it does cause a problems.
Any fixes for this yet?
Much help is aprreciated.
David
Comment #20
ShadowMonster commentedsubscribe
Comment #21
ShadowMonster commentedI'm trying make something work in here.
I comment lines 15-23:
and then replace line 42 by:
Anyway I stuck in seotools_fetch_ga_data function with show me errors for getDimmensions and getMetrics.
Well this is my first touch with this module and GA API. Hope so it will help someone...
Comment #22
outbound commentedTHis really sucks.
After spending nearly an hour installing the 20 modules signing up for API accounts and such to get NOWHERE!
And looks like this issue is at least 2 months old and counting. Why is this module listed as actively maintained?
Comment #23
dartdev commentedI have the same issue
Fatal error: Call to undefined function google_analytics_api_current_profile_id() in seotools.report.inc on line 15
Comment #24
alohaglide commentedSame error, subscribing.
Comment #25
alohaglide commentedQuestion...
Is there a version of the SEO Preset that contains a working set (however old) of modules that are needed to successfully use SEO Tools without the analytics error?
Comment #26
grendzy commentedalohaglide: yes, the final release of the old API module can be downloaded from http://drupal.org/node/557406.
Comment #27
Oceanman commentedI hate to complain but there should be a warning on the cover page of this module that it is not going to work until...... whenever, after all it has been months. It is a lot of time to install everything then have to search for the reason it is out of whack.
Fatal error: Call to undefined function google_analytics_api_current_profile_id() in /public_html/***/sites/all/modules/seotools/seotools.report.inc on line 15
Here is the list of other modules I installed that do not match the "recommended" , will these also cause issues?
google_analytics_reports Google Analytics Reports 6.x-1.0 (Recommended: 6.x-1.0-alpha1)
seo_friend SEO Friend 6.x-1.1 (Recommended: 6.x-1.0)
nodewords Nodewords 6.x-1.x-dev (Recommended: 6.x-1.11)
page_title Page Title 6.x-2.5 (Recommended: 6.x-2.3)
xmlsitemap XML sitemap 6.x-2.0-beta3 (Recommended: 6.x-2.0-beta2)
contentoptimizer Content Optimizer 6.x-2.x-dev (Recommended: 6.x-2.2)
@ grendzy I installed the API you posted and I no longer get the error above but the Google Analytics Tool still gives this error:
You have not set your google analytics account. Go to admin/settings/google-analytics-reports to set up your account.
I granted access on this page:
/admin/settings/google-analytics-api
which seems to work and on this page:
/admin/settings/googleanalytics
everything also seems to be as it should but it is still not working.
Comment #28
stan turyn commentedSubscribing
And please stick some sort of warning on the module page that it's currently broken
Comment #29
TomDude48 commentedI have updated the reports to work with the Google Analytics Reports module along with several other updates.
Comment #30
gundara commentedI get this funny message:
You enable full dashboard reporting you need to set your Google Analytics ID.
Google Analytics id not set.
Comment #31
snowmountain commentedI got the same message, and my GA id was already set.
I clicked the link that appeared with the message (as I recall) and there was a textbox where I could enter something - it seemed to be a business Google Analytics key or something - the help text said to leave it blank if you didn't have one. So I left it blank, and still didn't have the dashboard. Then I clicked the button to submit, even with the blank textbox, and after that the dashboard worked.
Sorry if this is vague, I am going by memory and the site is live now, so reproducing this would be a little difficult. I hope this helps!
Comment #32
TomDude48 commentedsnowmountain you are correct, you have to click through the Google Analytics Reports OAuth settings to select which GA dataset you want to use for your dashboard. Then the dashboard will work.
It is a little confusing, but that is the way OAuth works.
Comment #33
technologywon commentedDrupal 6 is no longer supported.