Call to a member function id()

Created on 20 April 2023, almost 2 years ago
Updated 9 May 2023, almost 2 years ago

Problem/Motivation

Whole website crashes once block with personal nodes is added (in my case I have tried with Bartik theme) on 9.5.7 drupal.

The website encountered an unexpected error. Please try again later.
Error: Call to a member function id() on null in Drupal\personal_notes\Plugin\Block\PersonalNotesBlock->build() (line 89 of modules/personal_notes/src/Plugin/Block/PersonalNotesBlock.php).
πŸ› Bug report
Status

Fixed

Version

3.1

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia coaston

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

Comments & Activities

  • Issue created by @coaston
  • First commit to issue fork.
  • @sagesolutions opened merge request.
  • Status changed to Fixed almost 2 years ago
  • πŸ‡¨πŸ‡¦Canada sagesolutions

    Now that personal notes are now entities, this block isn't really needed since you can now use views to create a block to view the entities.

    However, since this block was here in the 8.x version, it is grandfathered into the 3.x version of this module.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024