Possible Cause: Duplicate module folder
Developers and coders · Site administrators · Drupal 4.5.x or older · Drupal 4.6.x · Drupal 4.7.x · Drupal 5.x · Drupal 6.x · Drupal 7.x · No known problems
Last modified: September 25, 2009 - 16:55
Possible Cause:
There is one or multiple copies of the same module folder.
Fix:
For example in my case the error returns Fatal error: Cannot redeclare system_requirements() (previously declared in /modules/system/system.install:12) in /modules/modules/system/system.install on line 299
- Search for duplicate(s) module folder thats triggering the error. In my case I search for a duplicate
systemfolder. - I found two folders with the same name
system. The first one is located undermodules/system. And the second one is located undermodules/modules/system - To fix this delete the duplicate folder(s). In my case I delete the
systemfolder located undermodules/modules/system
If above fix isn't working try the same above steps but search for duplicate(s) inside the other modules folder located under sites/all/modules
