Call to a member function getRenderArray() on null

Created on 2 July 2022, over 2 years ago
Updated 20 February 2025, 2 days ago

Problem/Motivation

Upon deleting the Quick tab instance and then refreshing the page which had the Quick tab block, "The website encountered an unexpected error. Please try again later." error displayed on the screen.

Steps to reproduce

  • Add a Quicktab instance and configure its block on any page
  • Remove/delete the instance later from backend
  • Refresh that page where its block was placed
  • Your page should see the message "The website encountered an unexpected error. Please try again later."

Proposed resolution

Need to implement an empty check before returning Rendered Array in build function (line 60, version 8.x-3.0-alpha5)

/modules/contrib/quicktabs/src/Plugin/Block/QuickTabsBlock.php

Remaining tasks

🐛 Bug report
Status

Needs work

Version

4.0

Component

Code

Created by

🇮🇳India shobhit91 New Delhi

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.

Production build 0.71.5 2024