# Failed to bootstrap due to plugins using deprecated constants

**URL:** <https://meta.discourse.org/t/failed-to-bootstrap-due-to-plugins-using-deprecated-constants/76581>\
**Category:** Self-hosting\
**Created:** [21 Dicembre 2017, 8:28pm UTC](https://meta.discourse.org/t/failed-to-bootstrap-due-to-plugins-using-deprecated-constants/76581 "2017-12-21T20:28:47Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [21 Dicembre 2017, 10:20pm UTC](https://meta.discourse.org/t/failed-to-bootstrap-due-to-plugins-using-deprecated-constants/76581/6 "2017-12-21T22:20:19Z")

</div>

Sorry about this - I did not realize any plugins were using constants from our `routes.rb` file. I’ve added them back with a note about them being deprecated.

[https://github.com/discourse/discourse/commit/d0b44520bd36e271e0b935a6bd11fc9dc66a19d5](https://github.com/discourse/discourse/commit/d0b44520bd36e271e0b935a6bd11fc9dc66a19d5)

In a plugin you can support both with a piece of code like this:

```ruby
defined?(RouteFormat) ? RouteFormat.username : USERNAME_ROUTE_FORMAT

```

---

_[View the full topic](https://meta.discourse.org/t/failed-to-bootstrap-due-to-plugins-using-deprecated-constants/76581)._
