Fix Error Call to undefined function module_load_install() in Varbase Update Helper

Created on 2 September 2024, 17 days ago
Updated 17 September 2024, 1 day ago

Problem/Motivation

When attempting to save progress on Varbase update instructions page, the following error occurs:

Error: Call to undefined function module_load_install() in varbase_update_helper_checklistapi_form_submit() (line 72 of modules/contrib/varbase_core/modules/varbase_update_helper/varbase_update_helper.module).

Steps to reproduce

  1. Navigate to /admin/config/development/update-helper.
  2. Click the "Save" button at the bottom of the page.
  3. Observe the error message

Proposed resolution

replace:
module_load_install($module);
with:
\Drupal::moduleHandler()->loadInclude($module, 'install');

For more details, refer to the change record for module_load_install() deprecation .

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release varbase-10.0.2, varbase_core-10.0.32 , varbase-10.0.2 , varbase_core-9.1.43

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.0

Component

Code

Created by

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