Error when adding page comments but still saves
Asked by John Robbins:

All users have Add Comments permission on the space. There are no restricted pages. When the user adds a comment and hits save, they get an error. When they refresh, the comment is there. Watchers get notification of the comment added. I had the user logoff and log back into Confluence. Same behavior. I tried adding Delete Comment permission, same error. They have access to View and Add Pages also.

No formatting or adding files, just raw text.

The error is :Something's gone wrong.

our team has been notified. If the problem persists, contact Atlassian Support.

Error details: Error: Object doesn't support property of method 'remove'....


Answers:
author: AhmadDanial
body: Hello, John.

A couple of questions that I need clarification on before we dig deeper into this:

* Are you running on Confluence Cloud / Server?
* Is it happening to a specific space or across all spaces on the Confluence instance?
* Which web browser are you using when you reproduced the issue? Is it also happening on other web browsers as well? Incognito / private mode?
* Can you enable the developer tools in the web browser, reproduce the issue, and provide the output to this ticket so we can review them together?

Looking forward to hear from you again soon. Thanks.

comments: author: John Robbins
body: Running Confluence Cloud.

I'll have to try to repro on other sites, I only saw the problem on one.

We're using Chrome, happens on IE also. No special mode.

I'll get the output and attach it. Thanks.


author: John Robbins
body: Okay, I found out the user was using IE 11. When she uses Chrome, everything works fine. So, it's not space specific it's browser specific.

I don't see the ability to attach a file. Let me paste it in:

```
Expected deferred object not returned by save handler
TypeError: Object doesn't support property or method 'remove'
{
[functions]: ,
__proto__: { },
description: "Object doesn't support property or method 'remove'",
message: "Object doesn't support property or method 'remove'",
name: "TypeError",
number: -2146827850,
stack: "TypeError: Object doesn't support property or method 'remove'
at value (https://d2uowa935fr33t.cloudfront.net/download/editor.7aefd4b675263d918b01-v33.js:1:11495)
at qi (https://d2uowa935fr33t.cloudfront.net/download/app.0add675ef171be683bc1-v33.js:36:72358)
at Vi (https://d2uowa935fr33t.cloudfront.net/download/app.0add675ef171be683bc1-v33.js:36:74142)
at Wa (https://d2uowa935fr33t.cloudfront.net/download/app.0add675ef171be683bc1-v33.js:36:83114)
at Ya (https://d2uowa935fr33t.cloudfront.net/download/app.0add675ef171be683bc1-v33.js:36:81040)
at Ha (https://d2uowa935fr33t.cloudfront.net/download/app.0add675ef171be683bc1-v33.js:36:80539)
at Ga (https://d2uowa935fr33t.cloudfront.net/download/app.0add675ef171be683bc1-v33.js:36:80365)
at Ba (https://d2uowa935fr33t.cloudfront.net/download/app.0add675ef171be683bc1-v33.js:36:79738)
at ya (https://d2uowa935fr33t.cloudfront.net/download/app.0add675ef171be683bc1-v33.js:36:78970)
at ai.enqueueSetState (https://d2uowa935fr33t.cloudfront.net/do",
Symbol()_1d.h5317c8vnd: undefined,
Symbol()_1e.h5317c8vnd: undefined,
Symbol()_1f.h5317c8vnd: undefined,
Symbol()_1g.h5317c8vnd: undefined,
Symbol()_1h.h5317c8vnd: undefined,
Symbol()_1i.h5317c8vnd: undefined,
Symbol()_1j.h5317c8vnd: undefined,
Symbol()_1k.h5317c8vnd: undefined,
Symbol()_1l.h5317c8vnd: undefined,
Symbol()_1m.h5317c8vnd: undefined,
Symbol()_1s.h5317c8vmn: undefined,
Symbol()_1t.h5317c8vmn: undefined,
Symbol()_1u.h5317c8vmn: undefined,
Symbol()_1v.h5317c8vmn: undefined,
Symbol()_1w.h5317c8vmn: undefined,
Symbol()_1x.h5317c8vmn: undefined,
Symbol()_1y.h5317c8vmn: undefined,
Symbol()_1z.h5317c8vmn: undefined,
Symbol()_13.h5317c8vnd: undefined,
Symbol()_14.h5317c8vnd: undefined,
Symbol()_20.h5317c8vmn: undefined,
Symbol(__ES6-PROMISIFY--CUSTOM-ARGUMENTS__)_1b.h5317c8vnd: undefined,
Symbol(__immutablehash__)_12.h5317c8vnd: undefined,
Symbol(Call API)_11.h5317c8vnd: undefined,
Symbol(extensions)_1n.h5317c8vnd: undefined,
Symbol(extensions)_1r.h5317c8vnd: undefined,
Symbol(extensions)_10.h5317c8vnd: undefined,
Symbol(extensions)_w.h5317c8vndu: undefined,
Symbol(failed)_17.h5317c8vnd: undefined,
Symbol(id)_1o.h5317c8vnd: undefined,
Symbol(id)_1q.h5317c8vnd: undefined,
Symbol(id)_x.h5317c8vndu: undefined,
Symbol(id)_z.h5317c8vndu: undefined,
Symbol(immer-proxy-state)_1c.h5317c8vnd: undefined,
Symbol(init)_15.h5317c8vnd: undefined,
Symbol(loaded)_16.h5317c8vnd: undefined,
Symbol(loading)_19.h5317c8vnd: undefined,
Symbol(observable)_v.h5317c8vn0u: undefined,
Symbol(react.async_mode)_s.h5317c8vn0u: undefined,
Symbol(react.context)_r.h5317c8vn0u: undefined,
Symbol(react.element)_l.h5317c8vn0u: undefined,
Symbol(react.forward_ref)_t.h5317c8vn0u: undefined,
Symbol(react.fragment)_n.h5317c8vn0u: undefined,
Symbol(react.portal)_m.h5317c8vn0u: undefined,
Symbol(react.profiler)_p.h5317c8vn0u: undefined,
Symbol(react.provider)_q.h5317c8vn0u: undefined,
Symbol(react.strict_mode)_o.h5317c8vn0u: undefined,
Symbol(react.timeout)_u.h5317c8vn0u: undefined,
Symbol(resolving)_1a.h5317c8vnd: undefined,
Symbol(subSchemaErrors)_1p.h5317c8vnd: undefined,
Symbol(subSchemaErrors)_y.h5317c8vndu: undefined,
Symbol(timeout)_18.h5317c8vnd: undefined
}

SCRIPT438: Object doesn't support property or method 'remove'
error-boundary.3f6ee9a2cc384c7e7eab-v33.js (1,6797)
```


author: AhmadDanial
body: Hi, John.

Thank you for the confirmation. While the dev team acknowledges that the issue through an internal bug report, the solution that was shared by one of the users who ran into this issue was to disable one or more third-party addon that was installed in the instance that did not play nice with IE.

May I know if it is possible for you to first try to disable the third-party addons one by one to determine if that is the case? I would advice you to perform this during low peak hours and let me know what the outcome is.


author: John Robbins
body: It's not a a third party add-on issue. I compared my add-ons with the person experiencing the issue. We have exactly the same add-ons. Her's fails when creating comments, I succeed.

Note: I'm a site admin, she is a confluence user. I tried with another confluence user using IE and he failed also. This certainly seems like a security bug to me.


author: AhmadDanial
body: Hi, John.

Thank you for the clarification. So, that was my point originally. Same add-ons but it failed on different browser (in this case, Chrome vs IE).

Researching through this specific error online:

```
SCRIPT438: Object doesn't support property or method 'remove'
```

It seems to be specific to IE. Since you mentioned about the difference in role (site admin vs user), can you please confirm if you as the site admin are unable to reproduce the issue on IE 11 on your end? That will help us further determine if it is reproducible under specific circumstances.


author: John Robbins
body: I thought I was clear but I guess not. I, as site admin using IE 11 can post comments w/o error. I am unable to reproduce the issue on IE 11.

I then added someone who was getting the error as a site admin. They continue to generate the same errors when posting comments.


author: John Robbins
body: To Clarify. Someone was getting the error as a confluence user. I promoted them to site admin and had them try to add comments again. They got the same errors as before. Promoting them to site admin did not fix the issue.


Tags: cloud

confluence-cloud