I'm running into a load of errors in Drupal which I thought had gone away last week, but now appear to have recurred. The errors appear to be module related, as they started happening after I installed Panels, but uninstalling that module did not then make the error go away. Last week it was erroring on nearly every page that contained a panel or view, but that stopped happening (not sure how) Now when I try and disable, uninstall a module, after the confirm uninstall page, I get this error:

"Fatal error: Cannot redeclare field_create_field() (previously declared in /Users/robin/Sites/studiods/modules/field/field.crud.inc:56) in /Users/robin/Sites/studiods/modules/comment/modules/field/field.crud.inc on line 198"

This sound like there is some duplication happening on the system, but trying to delete the duplicate last week just seemed to cause massive site breaking errors. This occured several times this morning, and if I then go back to the uninstall page and refresh the list, the module appears to have been uninstalled, but then when you go back to the full modules list, they are still there (albeit disabled)! Therefore other than deleting th physical folders for the modules I don't think there is a way to uninstall these modules. Can anyone advise what to do? I'm nervous that there is some corruption here which will kill my site eventually.

Thanks in advance
Rob

Comments

Jaypan’s picture

It would appear you've duplicated your /modules folder inside your /modules/comment folder.

I believe you can delete the /modules/comment/module folder and then clear the cache to fix this, however I make no promises/guarantees that will work, so you should save a copy of the /modules/comment/modules folder before you delete it.

robinthakur’s picture

Belated thanks Jaypan, this is what it turned out to be, so i deleted the duplicates and it worked again.