CivicTheme: Install, install dependencies, wsod Call to a member function isAllowed() on string in _civictheme_preprocess_menu_local_tasks

Created on 21 February 2024, 10 months ago
Updated 29 June 2024, 6 months ago

Problem/Motivation

Attempt to kick the tires on CivicTheme on a new site with very little layout paragraphs + paragraphs content following the instructions at https://docs.civictheme.io/development/drupal-theme on an existing site with a page not created by CivicTheme "Page" content type.
I have a little bit of burgeoning content in Paragraphs in Layout Paragraphs, and it is these pages that WSOD. Other system pages ("Page not found" and "/user") render without error.

Steps to reproduce

* On a site with existing content (and existing content set as Home) -- maybe it's important that it is Layout Paragraphs + Paragraphs content...?
* composer require
* theme enable > Faced with a bunch of module dependencies that needed to be manually installed
* dependencies installed, theme enabled
* Visit home page: WSOD `Twig\Error\LoaderError: Template "@atoms/image/image.twig" is not defined in "themes/contrib/civictheme/templates/misc/image.html.twig" at line 7. in Twig\Loader\ChainLoader->getCacheKey()`
* drush cr
* Visit home page: WSOD `Call to a member function isAllowed() on string in _civictheme_preprocess_menu_local_tasks`

Proposed resolution

* Explicitly forbid or warn against non-CivicTheme (or layout paragraphs?) content in the initial Install instructions
* Or more testing in the theme/modules against things that can go wrong

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.6

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States texas-bronius

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

Comments & Activities

  • Issue created by @texas-bronius
  • Status changed to Postponed: needs info 10 months ago
  • πŸ‡¦πŸ‡ΊAustralia alex.skrypnyk Melbourne

    @texas-bronius
    From the title of the issue, it looks like that one of the menu items have `'#access` set as a string. What are the other modules installed? The `#access` is supposed to be an object.

  • Status changed to Closed: cannot reproduce 6 months ago
  • πŸ‡¦πŸ‡ΊAustralia alex.skrypnyk Melbourne

    Closing as cannot reproduce

Production build 0.71.5 2024