When I Try to view the report page /admin/reports/google-analytics I get the following error

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Error Message on every page that the blocks draw on

Notice: Trying to get property of non-object in GAFeed->sanitizeReport() (line 365 of /sites/all/modules/google_analytics_reports/GAFeed.lib.inc).
Notice: Trying to get property of non-object in GAFeed->sanitizeReport() (line 374 of /sites/all/modules/google_analytics_reports/GAFeed.lib.inc).
Notice: Trying to get property of non-object in GAFeed->sanitizeReport() (line 375 of /sites/all/modules/google_analytics_reports/GAFeed.lib.inc).
Notice: Trying to get property of non-object in GAFeed->sanitizeReport() (line 376 of /sites/all/modules/google_analytics_reports/GAFeed.lib.inc).

The Page Traffic Blocks Seem to load fine

Comments

grendzy’s picture

Status:Active» Postponed (maintainer needs more info)

Please upgrade to 1.0 and let us know if the issue persists.

chubbell’s picture

These are my current versions. they seem to be the most recent

Google Analytics 7.x-1.2
Google Analytics API 7.x-1.0
Google Analytics Reports 7.x-1.0
Google Analytics for Ubercart 7.x-3.0

grendzy’s picture

Version:7.x-1.0-beta1» 7.x-1.0

OK, your initial report was labeled beta1. Are there any additional error messages in your watchdog (admin/reports/dblog)?

chubbell’s picture

my log is full of

Notice: Trying to get property of non-object in GAFeed->sanitizeReport() .... GAFeed.lib.inc).

like listed above

monstrfolk’s picture

Component:Code» Reports module

same error also. latest dev version as of date

Notice: Undefined property: stdClass::$rows in GAFeed->sanitizeReport() (line 383 of /public_html/sites/all/modules/google_analytics_reports/GAFeed.lib.inc).
Warning: Invalid argument supplied for foreach() in GAFeed->sanitizeReport() (line 385 of /public_html/sites/all/modules/google_analytics_reports/GAFeed.lib.inc).
Notice: Undefined property: stdClass::$rows in GAFeed->sanitizeReport() (line 383 of /public_html/sites/all/modules/google_analytics_reports/GAFeed.lib.inc).
Warning: Invalid argument supplied for foreach() in GAFeed->sanitizeReport() (line 385 of /public_html/sites/all/modules/google_analytics_reports/GAFeed.lib.inc).
Notice: Undefined property: stdClass::$rows in GAFeed->sanitizeReport() (line 383 of /public_html/sites/all/modules/google_analytics_reports/GAFeed.lib.inc).
Warning: Invalid argument supplied for foreach() in GAFeed->sanitizeReport() (line 385 of /public_html/sites/all/modules/google_analytics_reports/GAFeed.lib.inc).
Rhodungeon’s picture

Same problem for me but only line 385

  • Warning: Invalid argument supplied for foreach() in GAFeed->sanitizeReport() (line 385 of /public_html/sites/all/modules/google_analytics_reports/GAFeed.lib.inc).
kingfisher64’s picture

Status:Postponed (maintainer needs more info)» Active

I'm getting a lot a those on the google analytics summary page.

Notice: Undefined property: stdClass::$rows in GAFeed->sanitizeReport() (line 383 of sites/all/modules/google_analytics_reports/GAFeed.lib.inc).

Warning: Invalid argument supplied for foreach() in GAFeed->sanitizeReport() (line 385 of sites/all/modules/google_analytics_reports/GAFeed.lib.inc).

Notice: Undefined property: stdClass::$rows in GAFeed->sanitizeReport() (line 383 of sites/all/modules/google_analytics_reports/GAFeed.lib.inc).

Warning: Invalid argument supplied for foreach() in GAFeed->sanitizeReport() (line 385 of sites/all/modules/google_analytics_reports/GAFeed.lib.inc).

    Notice: Undefined property: stdClass::$rows in GAFeed->sanitizeReport() (line 383 of sites/all/modules/google_analytics_reports/GAFeed.lib.inc).

Warning: Invalid argument supplied for foreach() in GAFeed->sanitizeReport() (line 385 of sites/all/modules/google_analytics_reports/GAFeed.lib.inc).

Notice: Undefined property: stdClass::$rows in GAFeed->sanitizeReport() (line 383 of sites/all/modules/google_analytics_reports/GAFeed.lib.inc).

Warning: Invalid argument supplied for foreach() in GAFeed->sanitizeReport() (line 385 of sites/all/modules/google_analytics_reports/GAFeed.lib.inc).

What information can I provide to help track this down?

using drupal 7.23, latest versions of GA and GA reports, dated 30th September 2013.

Interestingly I've just added this project to google analytics and installed the mod. Could it be that these notices pop up when there is no data yet?

Plazik’s picture

Could it be that these notices pop up when there is no data yet?

You are right.
The problem has been fixed in 7.x-3.x-dev #2023745: Notice: Undefined property: stdClass::$rows in GAFeed ---AND--- Warning: Invalid argument supplied for foreach() in GAFeed.
I'll fix it in 7.x-1.x-dev too.