I had a running drupal site, and after some changes it broke. I tried
drush cc all
but it complains:

require_once(/var/www/mysite/sites/all/modules/sites/all/modules/entity/includes/entity.inc): failed to open stream: No such file or directory bootstrap.inc:3119                         [warning]
PHP Fatal error:  require_once(): Failed opening required '/var/www/mysite/sites/all/modules/sites/all/modules/entity/includes/entity.inc' (include_path='/home/user/.drush/vendor/phpunit/php-token-stream:/home/user/.drush/vendor/phpunit/php-text-template:/home/user/.drush/vendor/phpunit/phpunit-mock-objects:/home/user/.drush/vendor/phpunit/php-timer:/home/user/.drush/vendor/phpunit/php-file-iterator:/home/user/.drush/vendor/phpunit/php-code-coverage:/home/user/.drush/vendor/phpunit/phpunit:/home/user/.drush/vendor/symfony/yaml:.:/usr/local/php53/lib/php') in /var/www/mysite/includes/bootstrap.inc on line 3119

I searched the database but there is no wrong path. Any idea?

Comments

jkingsnorth’s picture

Have you tried rebuilding the registry? https://www.drupal.org/project/registry_rebuild

enboig’s picture

I tried. Finally I found the problem. It appear I had a drupal uploaded inside drupal... after removing all the duplicated modules an using registry_rebuild it worked.

Thanks.

La vida és una taronja, què esperes per exprimir-la?

kruser’s picture

Double check the system table in the database and make sure the module path is correct for entity.

Also try manually clearing the cache from the database by truncating all the cache_ tables - be careful here that you don't delete the tables, just empty them.

-----------------------------------------------------
Bob @ Drupal Aid (https://www.drupalaid.com)