Module not compatible with Profile

Created on 21 June 2024, 5 months ago

Problem/Motivation

When enabling this module with any profile, We are getting the following error:

The website encountered an unexpected error. Try again later.
TypeError: array_merge(): Argument #2 must be of type array, null given in array_merge() (line 907 of core/includes/install.inc).

array_merge(Array, NULL) (Line: 907)
drupal_check_profile('new_profile') (Line: 2085)
install_check_requirements(Array) (Line: 1098)
install_verify_requirements(Array) (Line: 707)
install_run_task(Array, Array) (Line: 578)
install_run_tasks(Array, NULL) (Line: 121)
install_drupal(Object) (Line: 48)

Steps to reproduce

  1. Create a custom profile
  2. Add this module in profile's .info.yml under install key.
  3. Install the profile

Proposed resolution

  • Update the user_history_requirements function
  • Line 68, Replace NULL with an empty array.
🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India kunal_singh

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024