Error: Call to a member function isInternal() on null in /var/www/html/web/modules/contrib/druxt/druxt.install on line 44

Created on 13 November 2021, almost 4 years ago
Updated 5 August 2025, 2 months ago

Problem/Motivation

In the druxt_requirements function there is the$required_resources array. It has a refference to the block--block entity. When the druxt module is installed and the block module is uninstalled on the website there is an error:

Error: Call to a member function isInternal() on null in /var/www/html/web/modules/contrib/druxt/druxt.install on line 44

Problem/Motivation

In the druxt_requirements function there is the$required_resources array. It has a refference to the block--block entity. When the druxt module is installed and the block module is uninstalled on the website, there is an error:

Error: Call to a member function isInternal() on null in /var/www/html/web/modules/contrib/druxt/druxt.install on line 44

Steps to reproduce

1. Create Drupal website (for example using minimal installation profile).
2. Uninstall the block module.
3. Try to install druxt module.

Proposed resolution

Before checking does the resource is interlan using isInternal() method we should check does it exists. We can add following statement to do it:

if (!$resource_type) {
  continue;
}

🐛 Bug report
Status

Needs review

Version

1.2

Component

Code

Created by

🇵🇱Poland marcin maruszewski

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