0

I tried writing my own copy of the skeleton module from https://github.com/sidharrell/D8HWexample.git modules/custom/hello_world, but I thought I'd start by changing the module name and using "ctf" instead of "hello" in the routes. I tried to install the module but I got an exception.

Route "ctf.content" does not exist

I deleted my module folder from beneath the custom folder and reloaded the page, but I still get this error. The site is now unusable.

Do I need to reinstall or is there an easy way to flush the cache or uninstall the module? I don't have drush installed (yet).

1
  • 1
    Use Drupal's CLI tool Drush: drush cache:rebuild
    – Hudri
    May 9, 2020 at 19:56

1 Answer 1

0

You do need to clear the caches any time you edit routes. The simplest way is from the performance settings page: /admin/config/development/performance.

To change the module's name you'll need to replace every instance of the original name throughout every file in the module.

1
  • Something was cached and the whole site was broken, so I couldn't use the admin site. I had to re-install Drupal to fix it. May 10, 2020 at 19:05

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.