Skip to content
Snippets Groups Projects
Commit 015fd044 authored by Ismael Posada Trobo's avatar Ismael Posada Trobo
Browse files

Prevent crashing website

Applying the latest release causes some websites (not all) to show 'the
website encountered an unexpected error' with no further information. The
watchdog shows:
php       RuntimeException: An invalid implementation
cern_integration_form_alter was added by hook_module_implements_alter() in
Drupal\Core\Extension\ModuleHandler->buildImplementationInfo() (line
error     https://dev-d8-rwmanos.web.cern.ch/

Although this additional if condition is not in the documentation example
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Extension%21module.api.php/function/hook_module_implements_alter/8.5.x

An example implementing it uses it, for instance,
https://api.drupal.org/api/drupal/core%21modules%21system%21tests%21modules%21common_test%21common_test.module/8.5.x
parent 51868ea9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment