Unexpected error when viewing node revision

Created on 22 March 2019, almost 6 years ago
Updated 21 January 2023, about 2 years ago

When visiting the page of a node revision the page shows "The website encountered an unexpected error. Please try again later". The log shows:

Error: Call to a member function id() on string in conference_lite_preprocess_html() (line 150 of conference_lite/conference_lite.theme

This appears to be the same issue as the tagged Bootstrap Mint theme issue .

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇺🇸United States kkaya

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India DeepaliJ

    Able to reproduce the issue.
    Tried to apply patch #3 on Drupal 9.5.x-dev
    But patch failed to apply and showed below error

    Checking patch conference_lite.theme...
    error: while searching for:
      }
    
      // Add page-node-id class to body
      if ($node = \Drupal::request()->attributes->get('node')) {
        $variables['attributes']['class'][] = 'page-node-' . $node->id();
      }
    
    
    error: patch failed: conference_lite.theme:146
    error: conference_lite.theme: patch does not apply
Production build 0.71.5 2024