Errors uninstalling the gh_jobs_migrate submodule

Created on 6 February 2023, about 2 years ago
Updated 23 February 2023, about 2 years ago

Problem/Motivation

I get the following error uninstalling the submodule:

Error: Call to a member function delete() on null in /var/www/html/modules/contrib/gh_jobs/gh_jobs_migrate/gh_jobs_migrate.install on line 25 #0 [internal function]: gh_jobs_migrate_uninstall(false)

Steps to reproduce

  1. Install the migrate_plus and migrate_tools modules.
  2. Enable the gh_jobs_migrate module.
  3. Delete the gh_departments vocabulary.
  4. Uninstall the gh_jobs_migrate module.

Proposed resolution

In the implementation of hook_uninstall(), check for empty before deleting the configuration entities (content type and two vocabularies).

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States benjifisher Boston area

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

Comments & Activities

Production build 0.71.5 2024