I tried enabling the gdpr_fields submodule, but get the following error, on install, uninstall and on every drush cr. As soon as I have uninstalled the module again, and cleared cache twice, everything is back to normal.
drush -y en gdpr_fieldsThe following extensions will be enabled: gdpr_fields
Do you really want to continue? (y/n): y
[09-May-2018 13:37:43 Europe/Berlin] Error: Call to a member function getPath() on null in Drupal\config_translation\ConfigNamesMapper->getOverviewRoute() (line 233 of /var/www/html/docroot/core/modules/config_translation/src/ConfigNamesMapper.php)
#0 /var/www/html/docroot/core/modules/config_translation/src/Routing/RouteSubscriber.php(39): Drupal\config_translation\ConfigNamesMapper->getOverviewRoute()
#1 /var/www/html/docroot/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php(37): Drupal\config_translation\Routing\RouteSubscriber->alterRoutes(Object(Symfony\Component\Routing\RouteCollection))
#2 /var/www/html/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(108): Drupal\Core\Routing\RouteSubscriberBase->onAlterRoutes(Object(Drupal\Core\Routing\RouteBuildEvent), 'routing.route_a...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#3 /var/www/html/docroot/core/lib/Drupal/Core/Routing/RouteBuilder.php(184): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('routing.route_a...', Object(Drupal\Core\Routing\RouteBuildEvent))
#4 /var/www/html/docroot/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\Core\Routing\RouteBuilder->rebuild()
#5 /var/www/html/docroot/core/lib/Drupal/Core/Extension/ModuleInstaller.php(313): Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild()
#6 /var/www/html/docroot/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#7 /var/www/html/vendor/drush/drush/commands/core/drupal/environment.inc(131): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, true)
#8 /var/www/html/vendor/drush/drush/commands/core/drupal/environment.inc(198): drush_module_install(Array)
#9 /var/www/html/vendor/drush/drush/commands/pm/pm.drush.inc(1180): drush_module_enable(Array)
#10 /var/www/html/vendor/drush/drush/includes/command.inc(422): drush_pm_enable('gdpr_fields')
#11 /var/www/html/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#12 /var/www/html/vendor/drush/drush/includes/command.inc(199): drush_command('gdpr_fields')
#13 /var/www/html/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#14 /var/www/html/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#15 /var/www/html/vendor/drush/drush/drush.php(12): drush_main()
#16 {main}
Error: Call to a member function getPath() on null in Drupal\config_translation\ConfigNamesMapper->getOverviewRoute() (line 233 of /var/www/html/docroot/core/modules/config_translation/src/ConfigNamesMapper.php).
Drush command terminated abnormally due to an unrecoverable error. [error]
Comments
Comment #2
finex commentedHi, I'm having the same problem but even if I try to uninstall the module more than one the bug persists.
Comment #3
rar9 commentedHi, I got the same problem with gdpr_fields and gdpr_tasks that will crash my site.
Using alpha 9:-(
Comment #4
rar9 commentedComment #5
kaido.toomingas commentedSame issues..
Comment #6
dnebrich commentedI've been installing the latest dev commit to get recent fixes. Given the changes that are being made, sub-modules added, and that it's alpha, I started seeing issues viewing things like the task list at /admin/gdpr/tasks.
So I decided to uninstall and reinstall. Even after removing the agreement I created and the consent field I added to the user, I got an error about the consent field being in use. So I used drush config export (cex) and import (cim) to export the config, remove the user consent field, and then re-import. I was then able to uninstall all of the modules using drush.
When trying to reinstall, I got errors about some fields/settings already existing. So again I used drush cex/cim to remove those. Then I could reinstall. The latest is working better now. Although I'm seeing exceptions when viewing the field list at admin/reports/fields/gdpr-fields and when viewing a created task at admin/gdpr/tasks/1. Although I think there may be separate issues for those already.
Comment #7
mhavelant commentedFYI: Both gdpr_fields and gdpr_tasks have this issue.
Comment #9
mhavelant commentedOK, as it turns out GDPR Tasks is not affected and the problem really was the GDPR Fields config entity having some useless links added in the annotation.
Comment #10
mikael berger commentedJust to confirm, I had this problem too and it is effectively fixed when substituting alpha11 for current dev version. Thanks a lot for creating and maintaining this module, Kudos!.