TypeError when clicking on user name in admin’s user list


(Adrian Lang) #1

Steps to reproduce:

  1. Navigate to /admin/users/list/active
  2. Click on any user name

The URL is correctly changed, but the route fails to render. JavaScript console shows the following error:

Uncaught TypeError: Cannot read property '__ember1371289118639_meta' of undefined application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3719
n application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3719
Discourse.AdminUserRoute.Discourse.Route.extend.serialize admin-9a93f24a544dae375f003371a34b237d.js:725
s application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3546
t._paramsForHandler application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:8370
t.paramsForHandler application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:8358
t.generate application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:8361
Ember.Router.Ember.Object.extend.generate application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:8507
Ember.LinkView.Ember.View.extend.href application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:8716
g.get application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:4284
n application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3720
(anonymous function) application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6825
Ember.EnumerableUtils.forEach application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3679
Ember.View.Ember.CoreView.extend._applyAttributeBindings application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6821
Ember.View.Ember.CoreView.extend.applyAttributesToBuffer application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6918
Ember.View.Ember.CoreView.extend.beforeRender application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6911
Ember.CoreView.Ember.Object.extend._renderToBuffer application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6682
Ember.View.Ember.CoreView.extend._renderToBuffer application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6906
s application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3546
(anonymous function) application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6676
Ember.Instrumentation.instrument application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3657
Ember.CoreView.Ember.Object.extend.renderToBuffer application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6675
Ember.merge.appendChild application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:7074
Ember.View.Ember.CoreView.extend.appendChild application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6926
e.ViewHelper.Ember.Object.create.helper application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:7759
(anonymous function) application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:7761
(anonymous function) application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:8722
o admin-9a93f24a544dae375f003371a34b237d.js:1309
s application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3343
Ember.View.Ember.CoreView.extend.render application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6802
Ember._HandlebarsBoundView.Ember._MetamorphView.extend.render application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:7624
s application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3546
Ember.CoreView.Ember.Object.extend._renderToBuffer application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6682
Ember.View.Ember.CoreView.extend._renderToBuffer application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6906
s application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3546
(anonymous function) application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6676
Ember.Instrumentation.instrument application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3657
Ember.CoreView.Ember.Object.extend.renderToBuffer application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6675
Ember.merge.appendChild application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:7074
Ember.View.Ember.CoreView.extend.appendChild application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6926
t application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:7641
o.registerHelper.s application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:7683
o.registerHelper.n application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:7700
(anonymous function) admin-9a93f24a544dae375f003371a34b237d.js:1393
(anonymous function) application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3326
Ember.View.Ember.CoreView.extend.render application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6802
Ember.CoreView.Ember.Object.extend._renderToBuffer application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6682
Ember.View.Ember.CoreView.extend._renderToBuffer application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6906
s application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3546
(anonymous function) application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6676
Ember.Instrumentation.instrument application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3657
Ember.CoreView.Ember.Object.extend.renderToBuffer application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6675
Ember.merge.renderToBufferIfNeeded application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:7061
Ember.View.Ember.CoreView.extend.renderToBufferIfNeeded application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6909
Ember.merge.ensureChildrenAreInDOM application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:7219
Ember.ContainerView.Ember.View.extend._ensureChildrenAreInDOM application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:7208
n.flush application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:4531
n.end application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:4441
n.run application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:4452
Ember.run application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:4579
Ember.EventDispatcher.Ember.Object.extend._bubbleEvent application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6630
(anonymous function) application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6614
Ember.handleErrors application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:3396
(anonymous function) application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:6612
Z.event.dispatch application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:1011
i.handle.o application-8f8ddb2d3c887c3f9c9bf6f1bca41755.js:959`

Simply reloading the (changed) URL solves the issue. I’m on 0.9.2.5.


(Sam Saffron) #2

No repro here, can you try running latest?


(Adrian Lang) #3

0.9.3.0, still the same error. And yeah, I upped the assets version, re-compiled them, restarted the server, cleaned my cache.


(Sam Saffron) #4

I think I saw something similar earlier, have a look at the production.rb.sample file, we changed the handlebars version.

https://github.com/discourse/discourse/blob/master/config/environments/production.rb.sample

Do you have anything wrt handlebars versioning in your production.rb file?


(Adrian Lang) #5

My production.rb is the same as production.rb.sample.


(dougalcorn) #6

I also see this problem on 0.9.4 and 0.9.5.


(Jeff Atwood) #7

Confirmed fixed on latest.


(Jeff Atwood) #8