Skip to content

Clicking "or talk as anonymous" doesn't work #8982

Closed

Description

@geekgonecrazy

Description:

Allow read and allow write as anonymous turned on.

You click sign in to start talking or talk as anonymous

image

Clicking the button does nothing.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.59.3

Steps to Reproduce:

  1. Click Allow Anonymous Read / Allow Anonymous Write
  2. Open in new browser
  3. Click Or Talk as anonymous

Expected behavior:

allow to enter a username to talk as

Actual behavior:

Nothing

Relevant logs:

Might be relevant... Doesn't increment when button is pressed but is in browser logs several times:

Exception in template helper: TypeError: Cannot read property '_id' of null
    at Object.condition (https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:323:1327)
    at https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:181:40891
    at Array.map (<anonymous>)
    at Function.A.map.A.collect (https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:7:1106)
    at t.e [as getButtons] (https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:181:40806)
    at Object.messageActions (https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:243:42032)
    at https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:79:31289
    at https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:79:17146
    at https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:79:31922
    at Function.e._withTemplateInstanceFunc (https://s.rocket.chat/0e9b9d3ea29454961e3d11673f9fa698b04622fd.js?meteor_js_resource=true:79:37631)

Activity

  1. added
    area: ui/ux
    on Nov 29, 2017
  2. ggazzo commented on May 28, 2018

    @ggazzo
    Member

    @geekgonecrazy I think it's working now, am I wrong?
    udrwicg5k7

  3. geekgonecrazy commented on May 29, 2018

    @geekgonecrazy
    ContributorAuthor

    I don't recall which server this was. So i'll go ahead and close, looks like its working to me now too

  4. ggazzo commented on May 29, 2018

    @ggazzo
    Member

    ;)

  5. vplme commented on Jul 4, 2018

    @vplme

    I'm having an issue with the "Or talk as anonymous" button. Clicking it does nothing (docker image version 0.66.0). Tested in Safari, Chrome, Firefox.

    I downgraded to version 0.65.2 and in this version clicking on "Or talk as anonymous" button does show the choose username dialog.

  6. fais3000 commented on Jul 7, 2018

    @fais3000

    I'm having the same issue on 0.66.0

    Here is the error
    Exception in template helper: TypeError: Cannot read property '_id' of null at Object.condition (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:347:1290) at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:183:66053 at Function.h.map.h.collect (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:9:1316433) at t.e [as getButtons] (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:183:65968) at Object.messageActions (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:251:56551) at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:31314 at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:17160 at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:31947 at Function.e._withTemplateInstanceFunc (https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:37671) at https://chat.talkwithstranger.com/0e5d9793a5021d02505478d7d091c6982c968da4.js?meteor_js_resource=true:87:31854

  7. geekgonecrazy commented on Jul 11, 2018

    @geekgonecrazy
    ContributorAuthor

    @ggazzo looks like may not have gone away?

  8. SamirSaidani commented on Jul 13, 2018

    @SamirSaidani

    same issue with 0.66.2 docker version

    Exception while invoking method 'registerUser'
    Error: Can't call setUserId in a method after calling unblock at MethodInvocation.setUserId (/app/code/bundle/programs/server/packages/ddp-common.js:367:13) at AccountsServer.Ap._loginUser (/app/code/bundle/programs/server/packages/accounts-base.js:744:20) at MethodInvocation.registerUser (/app/code/bundle/programs/server/app/app.js:10709:20) at MethodInvocation.methodMap.(anonymous function) (packages/rocketchat_monitoring.js:2731:30) at MethodInvocation.methodsMap.(anonymous function) (/app/code/bundle/programs/server/packages/rocketchat_lib.js:2504:36) at maybeAuditArgumentChecks (/app/code/bundle/programs/server/packages/ddp-server.js:1877:12) at DDP._CurrentMethodInvocation.withValue (/app/code/bundle/programs/server/packages/ddp-server.js:902:126) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12) at DDPServer._CurrentWriteFence.withValue (/app/code/bundle/programs/server/packages/ddp-server.js:902:98) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1186:12) at Promise (/app/code/bundle/programs/server/packages/ddp-server.js:902:46) at new Promise (:null:null) at Session.method (/app/code/bundle/programs/server/packages/ddp-server.js:875:23) at /app/code/bundle/programs/server/packages/ddp-server.js:754:85

  9. fais3000 commented on Jul 13, 2018

    @fais3000
  10. SamirSaidani commented on Aug 2, 2018

    @SamirSaidani

    link with #11381

  11. 11 remaining items

  12. wreiske commented on Nov 15, 2018

    @wreiske
    Contributor

    I'm taking a look at this now @benjamin-dk

  13. wreiske commented on Nov 15, 2018

    @wreiske
    Contributor

    ticket-8982 mov
    Pushing my changes here in a few. Got this fixed.

  14. FaizanZahid commented on Nov 20, 2018

    @FaizanZahid

    very nice work guys!

  15. mjjabarullah commented on Nov 20, 2018

    @mjjabarullah

    can anyone make a video for how to fix this anonymous registration. ???[FIX] Fixed Anonymous Registration #12633

  16. added a commit that references this issue on Nov 21, 2018
  17. added a commit that references this issue on Nov 28, 2018
  18. added a commit that references this issue on Mar 8, 2019
  19. jonnytest1 commented on Jun 24, 2019

    @jonnytest1

    I just installed rocket chat via snap the other day ( version 1.0.3 ) and I also get this error ?

    (by the way I found it works if you disable allow anonymous read while the user in this buggy state and then instantly reenable it :P )

  20. mrmookie commented on Apr 1, 2020

    @mrmookie

    Same issue on version 2.4.11 snap Ubuntu 18.04. Unable to chat as anon.

  21. rasos commented on Apr 1, 2020

    @rasos
    Contributor

    @mrmookie is your behaviour also similar to #16756?

  22. geekgonecrazy commented on Apr 1, 2020

    @geekgonecrazy
    ContributorAuthor

    @RocketChat/frontend not sure if any new issues tracking? But looks like maybe this isn’t working?

  23. mrmookie commented on Apr 1, 2020

    @mrmookie

    After installing a new snap, it works fine, so it has something to do with one of the settings I messed with. I didn't change any permissions but I enabled a few things like translation, Google OAuth, etc.. I'll check my changes to see if I can reproduce. Thanks for opening it back up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ui/uxtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions