Using $this when not in object context Error

Created on 6 July 2023, over 1 year ago

Problem/Motivation

Error: Using $this when not in object context in Drupal\google_analytics_reports\Plugin\views\query\GoogleAnalyticsQuery::Drupal\google_analytics_reports\Plugin\views\query\{closure}() (line 584 of /code/web/modules/contrib/google_analytics_reports/src/Plugin/views/query/GoogleAnalyticsQuery.php)
Generated when having an error in the API call in a GA view

Steps to reproduce

Create a view that has a bad GA parameter

Proposed resolution

Create a patch that rewrites the error.

Remaining tasks

  • ✅ File an issue
  • ✅ Addition/Change/Update/Fix
  • ➖ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ➖ Code review by maintainers
  • ➖ Full testing and approval
  • ➖ Credit contributors
  • ➖ Review with the product owner
  • ➖ Release notes snippet
  • ❌ Release

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
🐛 Bug report
Status

Active

Version

4.0

Component

All modules

Created by

🇺🇸United States scampbell1 New York

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

Comments & Activities

Production build 0.71.5 2024