disableReplaceState undefined?


(Ken Cooper) #1

I upgraded Discourse today, and after doing so, some of my users have complained that signing in is giving them a blank page. Investigating further, I’m seeing an exception on the console

Uncaught TypeError: Cannot set property ‘disableReplaceState’ of undefined

FWIW, it’s happening at application-c138bcb70c1b2d5c6e26cf370fdcf67d.js:58

Any ideas on how to proceed?


(Ken Cooper) #2

The object that is undefined is Discourse.TopicRoute.


(Rafael dos Santos Silva) #3

Do you have any plug-ins? Are they updated? Looks like Discourse No Constants stuff.


(Ken Cooper) #4

I do have a few plugins, and they are all up to date. Looking at /admin/upgrade, I am now 1 commit behind the latest discourse, but that’s it.

Can you elaborate on Discourse No Constants?

Edit: I see the discussion about DISCOURSE_NO_CONSTANTS now. I’ll look further into that, thanks.


(Sam Saffron) #5

I think that is my plugin, I will update it.


(Ken Cooper) #6

I was just about to ask… :slight_smile: Thanks!


(Ken Cooper) #7

You’re talking about browser_history, right?


(Sam Saffron) #8

Yes, corrected via


(Sam Saffron) #9