Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Possible Cause:
Because, EVERY file in themes/*/*.module
and themes/*/*.theme
is evaluated once, if a module is created by copying an existing module, and the module developer did not rename every function inside the module directory structure, you could have two functions (albeit in separate locations) with the same name.
The first function will be evaluated, and the second will throw an error.
Fix:
- Do a global search for the function name thats triggering the error.
- Rename or remove the duplicate function
Note: All files of the form *.module
will be evaluated. Utilize an alternate extension like *.module.bak
to prevent drupal from scanning the old file.