I have moved the contrib module pagerer from




It breaks the site as some files are unaccessible

/platforms/drupal8-development/sites/recherche-dev.univ-amu.fr/modules/pagerer/src/Entity/PagererPreset.php): failed to open stream: No such file or directory in require()

i guess i would need to perform a registry rebuild but i don't know how.

drush rr outputs

The drush command 'rr' could not be found

  • 1
    drush cr should be all you need
    – Clive
    Commented Nov 12, 2018 at 11:03
  • 2
    Possible duplicate of Moving module location
    – leymannx
    Commented Nov 12, 2018 at 11:29
  • drush cr is not enough. i do a drush pm-uninstall then drush cr , empty all cache_table +cahe tags ,its fine, but when i enable the module the same wrong path error reappear !? where can this be stored?
    – Matoeil
    Commented Nov 12, 2018 at 14:03
  • Trying going to /rebuild.php maybe something is stopping the drush rebuild happening api.drupal.org/api/drupal/core%21rebuild.php/8.6.x
    – Leigh
    Commented Nov 12, 2018 at 14:17
  • 1
    Restart the server to clear APC cache or memcache.
    – Kevin
    Commented Nov 12, 2018 at 15:04

2 Answers 2


i have ended up putting in local.settings.php

 * Class Loader.
 * If the APC extension is detected, the Symfony APC class loader is used for
 * performance reasons. Detection can be prevented by setting
 * class_loader_auto_detect to false, as in the example below.
$settings['class_loader_auto_detect'] = FALSE;

Drupal stores a cached version of the container at the cache_container table. This table contains, among other things, the list of module paths.

For most cases running drush cr should be enough but if you see that even drush cr crashes then you will need to create a database update like this in an already installed module:

 * Clears all caches after moving modules from modules to modules/contrib.
function mymodule_update_8100(&$sandbox) {

And then run drush updb -y.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.