Admin form crashes when configuration is missing

Created on 8 February 2016, almost 9 years ago
Updated 6 July 2023, over 1 year ago

I have had this issue preventing me from viewing the admin form:

[Mon Feb 08 09:57:48.585991 2016] [:error] [pid 30495] [client 192.168.12.21:50658] TypeError: Argument 1 passed to Drupal\\google_analytics\\Form\\GoogleAnalyticsAdmin SettingsForm::getNameValueString() must be of the type array, null given, called in /home/vhosts/****/public_html/modules/google_analytics/src/Form/GoogleAnal yticsAdminSettingsForm.php on line 502 in /home/vhosts/****/public_html/modules/google_analytics/src/Form/GoogleAnalyticsAdminSettingsForm.php on line 916

πŸ› Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom slipstreamer

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 7.3 & MySQL 5.7
    last update over 1 year ago
    13 pass
  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    This is how it was fixed in google_analytics 4.x.

  • πŸ‡¨πŸ‡¦Canada liquidcms

    @Liam, yet with today's 4.x-dev i get this at the admin form:

    InvalidArgumentException: Class "\Drupal\google_analytics\Form\GoogleAnalyticsAdminSettingsForm" does not exist. in Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() (line 24 of core\lib\Drupal\Core\DependencyInjection\ClassResolver.php).

  • πŸ‡¨πŸ‡¦Canada liquidcms

    Hmm.. although perhaps just another example of "drush cr" becoming less and less reliable (for us). cr didnt work even after using drush to pmu/en the module. But emptying all the cache_ tables brought the form back.

  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    That sounds like a different issue.

  • Status changed to Closed: outdated over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States japerry KVUO

    With the sunset of legacy google analytics, the 8.x-3.x module is now unsupported. If this is still an issue with the 4.x version, please file a new issue in the queue.

Production build 0.71.5 2024