After install I looked on views where

  • Google Analytics Reports Page
  • Google Analytics Summary

–> fields
there are only Broken/Missing Handlers.

Logically the pages

  • /admin/reports/google-analytics-reports/page
  • /admin/reports/google-analytics-reports/summary

have zero values.

Where can I get the fields or update something so that the fields are okay?

Importing fields button in the Google Analytics Reports API configuration page.

First step

Import step


This drush command should resolve the issue:

drush google-analytics-reports-fields

Comments

quixxel created an issue. See original summary.

mmagas5’s picture

I'm having this issue as well.

I installed and enabled the Google Analytics Reports and Google Analytics Reports API modules, created the credentials, and configured the module with the client ID and secret. The configuration page correctly pulls the profiles from my Google Analytics account.

From a related issue raised under the 7.x branch, https://www.drupal.org/project/google_analytics_reports/issues/2968177, I tried the suggestion of clicking the "Import Fields" button, but nothing happens.

My site currently runs Drupal 8.6.

fakir22’s picture

Same problem for me. The "Import Fields" button did not worked for me neither.

Still looking for a solution.

KennyHolmes’s picture

I am having exactly the same problem. I am new to drupal 8 and only have limited web admin experience. Any advice on where to start fault finding will be appreciated.

mmagas5’s picture

I was able to find the issue and work around it. All of the Google Analytics Report views are now working properly.

The issue is coming from the following line in the "importFields() function in the file "/src/GoogleAnalyticsReports.php":

public static function importFields() {
  if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE != 'install' &&  MAINTENANCE_MODE != 'update') { 

Removing this IF statement allows the Import Fields button to work.

rajab natshah’s picture

Thank you Johannes for reporting, and mmagas5 for following up

Not sure if you had a look at
#2932010: Fixed an issue to Not to check Updates or import Fields while the Drupal site MAINTENANCE_MODE is in Install or Update, which generates issues of RuntimeException: Recursive router rebuild detected.

Have you been installing or updating in the time of import of fields?

rajab natshah’s picture

Thank you mmagas5 for the hint

I confirm the issue
the condition should be changed to

if (!defined('MAINTENANCE_MODE')) {

}
rajab natshah’s picture

rajab natshah’s picture

Title: Broken/Missing Handlers in Views » Fix Broken/Missing Handlers in Views
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
StatusFileSize
new1.08 KB

  • RajabNatshah committed e97b989 on 8.x-3.x
    Issue #3038033: Fix Broken/Missing Handlers in Views
    
rajab natshah’s picture

Assigned: Unassigned » mohammed j. razem
Status: Active » Needs review
rajab natshah’s picture

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

Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

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