"this.blank is not a function"

Being on the latest Github version, a user fails to save a new post with “An error occurred”.

In the log I found:

Uncaught TypeError: this.blank is not a function
Url: /discourse/controllers/composer
Line: 164
Column: 22
Window Location: http://entwicklergate.de/

Call stack:

TypeError: this.blank is not a function
    at __exports__.default.Ember.ObjectController.extend.toggle (/discourse/controllers/composer:164:22)
    at __exports__.default.Ember.ObjectController.extend.actions.toggle (/discourse/controllers/composer:45:16)
    at mixin.Mixin.create.send (/ember.prod:27080:54)
    at runRegisteredAction (/ember.prod:17899:25)
    at Object.Backburner.run (/ember.prod:218:27)
    at Object.run [as default] (/ember.prod:15458:27)
    at Object.handleRegisteredAction [as handler] (/ember.prod:17897:23)
    at HTMLAnchorElement.eval (/ember.prod:36149:25)
    at HTMLElement.n.event.dispatch (/jquery.prod:4:6444)
    at HTMLElement.r.handle (/jquery.prod:4:3219)

Environment:

HTTP_HOST: entwicklergate.de
REQUEST_URI: /logs/report_js_error
REQUEST_METHOD: POST
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36
HTTP_ACCEPT: */*
HTTP_REFERER: http://entwicklergate.de/
HTTP_X_FORWARDED_FOR: 123.123.123.123
HTTP_X_REAL_IP: 123.123.123.123

params:
  message: Uncaught TypeError: this.blank is not a function
Url: /discourse/controllers/composer
Line: 164
Colum
  url: /discourse/controllers/composer
  line: 164
  column: 22
  window_location: http://entwicklergate.de/
  stacktrace: TypeError: this.blank is not a function
    at __exports__.default.Ember.ObjectController.extend.togg

Any idea how/whether I can fix it?

2 Likes

@eviltrout is this ember upgrade related ?

Do you have any plugins?

1 Like

We just picked up one of these in our logs as well.

1 Like

Repro … open composer
click V arrow

@zogstrip is having a look.

2 Likes

Thanks!

I’m only having the official tagging plug-in, IIRC. These are the plug-ins:

Just pushed a fix :cow2:

https://github.com/discourse/discourse/commit/ab80240900d8c583969b01b5d68b9263c422204c

4 Likes

I’ve just updated to ‘ab80240’ with no improvement.

Although no more log entry, still no save possible. Generic error message:

Sorry, an error has occurred.

Are all users unable to save posts or just one? Did s/he refreshed his/her browser’s cache?

1 Like

My forum is very low traffic. So it is only one user that experienced it.

Luckily it is the co-worker sitting at the other here in my office room :smile:

I’ll ask him…

Asked him. The error still persists.

It is a posting with 3 images, maybe this is the reason?

Also I manually enhanced the user’s trust level in the admin area from 0 to 4.

Identified problem.

Desired title “EF6 model first + Oracle.ManagedDataAccess.Client.EntitiyFramework” didn’t work.

Error: Entschuldige, es ist ein Fehler aufgetreten.

Changing title however to “EF6 model first” workes fine.

3 Likes