Problem/Motivation

Getting the following error.
Error: Call to a member function getStorage() on null in Drupal\node_save_popup\Form\SavePopupConfigForm->buildForm()

Steps to reproduce

Step 1: Go to the “Configuration. Eg:- Admin Menu >> configuration >> services >> Node Save Configuration
Step 2: Website throwing encountered an unexpected error.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

omkar_yewale created an issue. See original summary.

omkar_yewale’s picture

Assigned: omkar_yewale » Unassigned
Status: Active » Needs review
StatusFileSize
new1.17 KB

Kindly review the patch or !4 MR.

omkar_yewale’s picture

StatusFileSize
new1.71 KB

Updated patch and MR.
The list of content types is not showing properly because of this issue.

$node_types = $this->entityTypeManager->getStorage('node')->loadMultiple();

Load node_type other than node.

$node_types = $this->entityTypeManager->getStorage('node_type')->loadMultiple();

revathi.b’s picture

Status: Needs review » Fixed

Thanks!

Merged MR.

Status: Fixed » Closed (fixed)

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