Cannot access Views in site once selecting Content provisioning

Created on 14 June 2024, 6 months ago

Problem

There is an issue with accessing Views once having used the Content provisioning functionality within CivicTheme

Steps to reproduce

  1. Install locally GovCMS via https://github.com/govCMS/scaffold and configure site as SaaS. As of time of writing, the GovCMS version is 3.13.0 (Drupal version is 10.2.6) and scaffold is 3.3.0

  2. Login to the site. From the administration menu, browse to Structure > View. Confirming I can access Views on a fresh install

  3. Manually add theme to themes folder in site

  4. Enable the required modules via drush

  5. Install the theme, noting outstanding issues. Set theme as default

  6. Clear site cache with drush cr

  7. Browse to Home of site to confirm theme is installed

  8. Browse to Structure > View. Confirming I can access Views with CivicTheme installed and set to default

  9. Browse to Appearance then Settings on CivicTheme 1.7.1

  10. Open Content provisioning. Retain all settings that are checked and click Provision content

  11. Browse to Home of site confirm items have been provisioned

  12. Browse to Structure > Views. Receive the following error:

    The website encountered an unexpected error. Try again later.
    
    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() (Line: 148)
    Drupal\Core\Entity\EntityListBuilder->getDefaultOperations() (Line: 40)
    Drupal\Core\Config\Entity\ConfigEntityListBuilder->getDefaultOperations() (Line: 158)
    Drupal\views_ui\ViewListBuilder->getDefaultOperations() (Line: 124)
    Drupal\Core\Entity\EntityListBuilder->getOperations() (Line: 212)
    Drupal\Core\Entity\EntityListBuilder->buildOperations() (Line: 194)
    Drupal\Core\Entity\EntityListBuilder->buildRow() (Line: 84)
    Drupal\views_ui\ViewListBuilder->buildRow() (Line: 233)
    Drupal\views_ui\ViewListBuilder->render() (Line: 23)
    Drupal\Core\Entity\Controller\EntityListController->listing()
    call_user_func_array() (Line: 123)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
    Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
    Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
    Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
    Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
    Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
    Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
    Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 50)
    Drupal\ban\BanMiddleware->handle() (Line: 48)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
    Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
    Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
    Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
    Drupal\Core\DrupalKernel->handle() (Line: 19)
    

This issue appears with versions 1.7.1 and 1.7.0.

This issue does not occur with version 1.6.2

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.7

Component

Code

Created by

🇊🇺Australia thisisalistairsaccount

Live updates comments and jobs are added and updated live.
  • views

    Involves, uses, or integrates with views. In Drupal 8 core, use the “VDC” tag instead.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024