fix: #3586019 Avoid UnknownExtensionException in webform_update_8114() when contribute is missing

Problem

webform_update_8114() calls extension.list.module->getPath('contribute').

When the contribute module is no longer present in the filesystem, this can throw UnknownExtensionException during updates.

Solution

Wrap the getPath('contribute') call in a try/catch and treat the module path as missing when the extension is unknown.

Testing

  • Verified PHP syntax with php -l includes/webform.install.update.inc
  • Confirmed the update hook now skips the file existence check safely when contribute is missing

Merge request reports

Loading