Problem/Motivation

When using some query filters in views, you get the following error:

Error: Class 'Filter\StringFilter\MatchType' not found in Drupal\google_analytics_reports\Plugin\views\query\GoogleAnalyticsQuery::Drupal\google_analytics_reports\Plugin\views\query\{closure}() (line 549 of web/modules/contrib/google_analytics_reports/src/Plugin/views/query/GoogleAnalyticsQuery.php)

Proposed resolution

The offending line is caused by this:

use Filter\StringFilter\MatchType;

which should be:

use Google\Analytics\Data\V1beta\Filter\StringFilter\MatchType;

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 google_analytics_reports-4.0.0-alpha3

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3268081 by dieuwe: Fixed Error: Class 'Filter\StringFilter\MatchType' not found

Comments

dieuwe created an issue. See original summary.

dieuwe’s picture

Status: Active » Needs review
StatusFileSize
new933 bytes
rajab natshah’s picture

Title: Error: Class 'Filter\StringFilter\MatchType' not found » Fix Error: Class 'Filter\StringFilter\MatchType' not found
Issue summary: View changes
collinhaines’s picture

Confirmed #2 fixes this.

vighneshh’s picture

Status: Needs review » Reviewed & tested by the community

reviwed and tested. Works fine .

komlenic’s picture

+1 reviewed and tested.

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Assigned: Unassigned » mohammed j. razem
Issue summary: View changes
Status: Reviewed & tested by the community » Needs review
Issue tags: +google_analytics_reports-4.0.0-alpha3
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.