Call to a member function render() on null in Drupal\site_settings\SiteSettingEntityListBuilder->render()

Created on 8 August 2024, 5 months ago

Upgrading a site from Drupal 10.1 to 10.3. So trying to upgrade `site_settings` from 1.x to 2.x.

I enabled the "Flattened Site Settings Loader" option to start trying to convert the code. But when I visit the Content->Site Settings page, I get the error:

> Error: Call to a member function render() on null in Drupal\site_settings\SiteSettingEntityListBuilder->render() (line 36 of modules/contrib/site_settings/src/SiteSettingEntityListBuilder.php).

Any idea on what could be wrong here and how to work around this?

(also tried setting the "Full Site Settings Loader" and still can't reach that admin page for the site settings content)

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mpotter

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

Comments & Activities

  • Issue created by @mpotter
  • πŸ‡ΊπŸ‡ΈUnited States mpotter

    To help try to reproduce, in D10.1 I had 2 different site settings:

    * `copyright` which is a single entity with a single text field
    * `social_links` which is a MULTIPLE value entity with fields for `link` and `icon name`

  • πŸ‡ΊπŸ‡ΈUnited States mpotter

    It appears the issue is that the `site_settings` View did not get created. I ran update hooks but didn't see anything get triggered.

  • Status changed to Closed: works as designed 5 months ago
  • πŸ‡ΊπŸ‡ΈUnited States mpotter

    I think I see what happened. Our scripts run `drush updb` followed by `drush config-import`. The `updb` created the `view.site_settings` but then the `config-import` removed it (because it hadn't been exported yet)

    Going to see if I can force some update hooks to re-run. But closing this since I don't think it's an issue in the site_settings module itself. It's more like a normal Drupal issue of complicated interactions between update hooks and config import.

Production build 0.71.5 2024