No internet connection
  1. Home
  2. Issues

Error creating a new post in the General group

By Adrián López @adrianlzt
    2019-11-14 14:59:43.617Z

    If I try to add a reply to a post on the General group this error is shown:

    Something went wrong: [DwE500REX]
    
    java.lang.UnsupportedOperationException: Not implemented: Loading Everyone group members [TyE2ABKR05]
    	at com.debiki.core.Prelude$.unimplemented(Prelude.scala:114)
    	at com.debiki.core.Prelude$.unimplementedIf(Prelude.scala:118)
    	at com.debiki.dao.rdb.UserSiteDaoMixin.loadMembersOfBuiltInGroup(UserSiteDaoMixin.scala:186)
    	at com.debiki.dao.rdb.UserSiteDaoMixin.loadGroupMembers(UserSiteDaoMixin.scala:167)
    	at com.debiki.dao.rdb.UserSiteDaoMixin.loadGroupMembers$(UserSiteDaoMixin.scala:157)
    ...
    

    Full error

    Same error happens if i try to create a new post. But I can create the post in another group and then move it to the General group.

    Some days ago I was modifying the groups and notifications, but I don't remember exactly what.

    Looks like, the post trying to generate a notification to "Everyone" but not being able to get the users of that group.

    I have tried to disable notification for everyone group, but still the same error.

    • 11 replies
    1. A
      Adrián López @adrianlzt
        2019-11-14 15:00:41.096Z

        Oh, just found how to fix it.

        I had the second These people set to Everyone.
        That was the problematic setting.

        1. Progress
          with handling this problem
        2. Thanks for reporting, and for the stack trace — it was helpful to see where, higher up in the stack, this starts happening.

          Ok so this is a bug — it shouldn't be possible to configure notifications for the Everyone group, ... because the Everyone group includes also people who might not be members (and they shouldn't get notifications).

          Good that you found a work-around for now.

          I'm wondering what kind of notifications were enabled for the Everyone group?
          Was it maybe for new topics across the whole site?
          Or maybe new topics in the General category?
          (Maybe e.g. site wide notifications are still enabled, for the Everyone group? hmm)

          1. Now, on the Everyone notifications configuration page, I'm instead showing this text + a link:

            Go here (link) instead, and configure notifications for the All Members group
            

            ... in the next version, some time next week hopefully.

            And, if you've already configured notifications for Everyone, and want to undo that, you can add this to the URL: #configEveryone=true, then, you'll be able to configure the Everyone group (instead of seeing the "Go here ..." text).

            So, the full URL would then be: http://your-server-addr/-/groups/everyone/preferences/notifications#configEveryone=true, to configure Everyone's notifications.

            1. @KajMagnus marked this topic as Started 2019-11-16 04:12:47.161Z.
            2. A
              Adrián López @adrianlzt
                2019-11-17 10:16:00.645Zreplies toKajMagnus:

                I had notifications for new topics on the general category.
                Thanks for the fix!

                1. Now I've deployed a new version with this bug fixed to Talkyard .net — I don't remember if you're hosted by me or if you're self-hosted? In the latter case, it'll take some more days or a week before the fix will appear.

                  I'll close this issue in a while then (ok?).

                  1. @KajMagnus marked this topic as Done 2019-11-23 12:07:46.751Z.
                  2. A
                    Adrián López @adrianlzt
                      2019-11-25 10:07:38.251Zreplies toKajMagnus:

                      We are self-hosted.
                      Thanks!

                      1. KajMagnus @KajMagnus2019-12-04 08:47:31.677Zreplies toadrianlzt:

                        @adrianlzt — do you use Gmail OpenAuth login? If so, then, before upgrading to the next version, you need to enable Google's People API, in Google's developer console. Let me know if you need help / info about how to do that?

                        (Background: Google has deprecated their old G+ API, and instead, there's a new API, "People API".)

                        1. A
                          Adrián López @adrianlzt
                            2019-12-05 09:18:02.505Zreplies toKajMagnus:

                            I was using the third option described here, the one without static IP neither auth.

                            The problem is those emails are sent directly to spam (even I'm sending only to own gapps domain).

                            We don't use an account solely for talkyard, to avoid paying one.

                            1. A
                              Adrián López @adrianlzt
                                2019-12-05 10:17:33.308Zreplies toadrianlzt:

                                Finally I have configured using the auth. I leave here the email config if anyone is interested:

                                talkyard.smtp.host="smtp.gmail.com"
                                talkyard.smtp.enableStartTls=false
                                talkyard.smtp.tlsPort="465"
                                talkyard.smtp.checkServerIdentity=true
                                talkyard.smtp.user="some@domain.com"
                                talkyard.smtp.password="PASSWORD"
                                talkyard.smtp.fromAddress="some@domain.com"
                                
                                1. KajMagnus @KajMagnus2019-12-05 12:23:57.564Zreplies toadrianlzt:

                                  Oh I didn't mean the SMTP config and Gmail for sending emails — instead, I meant when people login to your forum, to post comments — then, maybe they can login via email + password, or Facebook, or Gmail, ...

                                  ... And in case you've enabled Gmail login — then you need to go to Google's Developer Console, login, and toggle the People API enabled:

                                  https://console.developers.google.com/apis/api/people.googleapis.com

                                  Some docs by Google: https://support.google.com/googleapi/answer/6158841?hl=en

                                  1. A
                                    Adrián López @adrianlzt
                                      2019-12-05 17:15:14.973Zreplies toKajMagnus:

                                      Ahmm, thanks!
                                      We use local users only.

                                      But finally get the mail config right, so thanks anyway!