Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Views UI at /admin/structure/views broken #20092

Closed
3 tasks
Tracked by #20017
edmund-dunn opened this issue Dec 13, 2024 · 0 comments · Fixed by #20118
Closed
3 tasks
Tracked by #20017

Views UI at /admin/structure/views broken #20092

edmund-dunn opened this issue Dec 13, 2024 · 0 comments · Fixed by #20118
Assignees
Labels
CMS Team CMS Product team that manages both editor exp and devops Drupal engineering CMS team practice area Needs refining Issue status

Comments

@edmund-dunn
Copy link
Contributor

edmund-dunn commented Dec 13, 2024

User Story or Problem Statement

We are getting an error when trying to navigate to /admin/structure/views.

Drupal\Core\Entity\EntityMalformedException: The "view" entity cannot have a URI as it does not have an ID in Drupal\Core\Entity\EntityBase->toUrl() (line 161 of core/lib/Drupal/Core/Entity/EntityBase.php).
Drupal\Core\Config\Entity\ConfigEntityBase->toUrl('edit-form') (Line: 145)
Drupal\Core\Entity\EntityListBuilder->getDefaultOperations(Object) (Line: 40)
Drupal\Core\Config\Entity\ConfigEntityListBuilder->getDefaultOperations(Object) (Line: 159)
Drupal\views_ui\ViewListBuilder->getDefaultOperations(Object) (Line: 124)
Drupal\Core\Entity\EntityListBuilder->getOperations(Object) (Line: 234)
Drupal\Core\Entity\EntityListBuilder->buildOperations(Object) (Line: 216)
Drupal\Core\Entity\EntityListBuilder->buildRow(Object) (Line: 85)
Drupal\views_ui\ViewListBuilder->buildRow(Object) (Line: 234)
Drupal\views_ui\ViewListBuilder->render() (Line: 23)
Drupal\Core\Entity\Controller\EntityListController->listing('view')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 68)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 53)
Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

This seems to be caused by a the danse.user.notications view. I have tried removing it using config import and get and error. I have also tried placing the yaml form the config file int he module config in the config.sync file and updating it but get an error:
Unexpected error during import with operation update for views.view.danse_user_notifications: Attempt to update non-existing entity 'danse_user_notifications'.

Description or Additional Context

We aren't using the danse module anymore. Recommend resolution to remove it using the following tickets from the backlog.

Remove view using:
drush eval "\Drupal::service('config.factory')->getEditable('views.view.danse_user_notifications')->delete();"

Steps for Implementation

This will require two PRs, the first is to remove the broken view and disable the DANSE modules. The second is to remove the DANSE modules from the code base.

Acceptance Criteria

  • Disable and remove DANSE modules
  • Remove broken danse_user_notifications view
  • Remove DANSE modules from the code base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMS Team CMS Product team that manages both editor exp and devops Drupal engineering CMS team practice area Needs refining Issue status
Projects
None yet
1 participant