I've made a mistake by installing the entity module at: sites/all/modules

The module is already installed at profiles/commerce_kickstart/modules/contrit/

Now I want to delete it, but if I remove the folder sites/all/modules/entity I get this error in the terminal (when I run drush cc all)

require_once(/Applications/MAMP/htdocs/example.com/sites/all/modules/entity/includes/entity.inc):[warning]
failed to open stream: No such file or directory bootstrap.inc:3080
Drush command terminated abnormally due to an unrecoverable error.   [error]
Error: require_once(): Failed opening required
'/Applications/MAMP/htdocs/example.com/sites/all/modules/entity/includes/entity.inc'
(include_path='.:') in
/Applications/MAMP/htdocs/example.com/includes/bootstrap.inc,
line 3080
Fatal error: require_once(): Failed opening required '/Applications/MAMP/htdocs/example.com/sites/all/modules/entity/includes/entity.inc' (include_path='.:') in /Applications/MAMP/htdocs/example.com/includes/bootstrap.inc on line 3080

I went into the system table and manually fixed the filename field paths.
I try clearing caches, running cron and update database but I just get this error message. How can I remove it?

Comments

Can you try this https://drupal.org/project/registry_rebuild and tell us if it works for you?

Status:Active» Fixed

@jsacksick It worked! Many thanks.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Issue summary:View changes

more