Notice: Trying to get property 'items' of non-object in google_analytics_reports_api_profiles_list()

Created on 1 May 2023, over 1 year ago

I updated Google Analytics to 7.x-2.8 and started getting:

  • Notice: Trying to get property 'items' of non-object in google_analytics_reports_api_profiles_list() (line 151 of /modules/contrib/google_analytics_reports/google_analytics_reports_api/google_analytics_reports_api.admin.inc).
  • Warning: Invalid argument supplied for foreach() in google_analytics_reports_api_profiles_list() (line 162 of /modules/contrib/google_analytics_reports/google_analytics_reports_api/google_analytics_reports_api.admin.inc).
  • Notice: Trying to get property 'name' of non-object in google_analytics_reports_api_profiles_list() (line 169 of /modules/contrib/google_analytics_reports/google_analytics_reports_api/google_analytics_reports_api.admin.inc).

The notices are kicking off in this line: $web_properties = $account->queryWebProperties()->results->items;

My guess is that GA has changed something so that no longer returns the expected results.

I was not able to investigate further so have just downgraded GA for now.

πŸ’¬ Support request
Status

Active

Version

3.1

Component

API module

Created by

πŸ‡ΊπŸ‡ΈUnited States michelle Wisconsin, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024