[SOLVED][Drupal Errors] Two functions have the same name

| | 1 min read

Many Drupal programmers and Drupal site admins have encountered a situation where two functions have the same name. If you are facing the same situation in your Drupal site then read on to know the fix.

Two functions will have the same name when an existing module is copied to a new module but the developer forgot to rename all the functions in the new module. In such a situation the first function will be evaluated and the second one will throw up an error. Here is the fix for such a situation.

  • First perform a global search for the function that is causing the error
  • Delete or rename the duplicate function

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.