Announcement

Collapse
No announcement yet.

Additional usergroups disappear

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Additional usergroups disappear

    Not sure if this is a bug or a feature, but I've lately had issues with some users losing their additional usergroup(s).

    I tested more thoroughly now, adding an additional usergroup to a test user, saving, and then reloading again. The additional usergroup was gone in 5 of 5 tests, and I am sure that it was there when I saved.

    I don't know if this is related, but both primary and additional user groups have rank insignia, set to display if displaygroup = this group.

    Also, two specific users have had their passwords reset every time I've tried to change their additional group.

  • #2
    Addition: I gave the user three additional groups, and they were all retained after save and reload, testing twice.
    However, after setting one of the additional groups as display group, saving and reloading, all three addtional groups were gone.


    (vB 5.5.5)

    Comment


    • #3
      Also, a slightly redacted excerpt from the error log around the time this happened last:

      [04-Dec-2019 10:21:56 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:21:56 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:21:56 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:21:56 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:21:56 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:21:56 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:21:56 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:21:56 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:21:56 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:21:56 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:21:56 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:21:56 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:43:15 Europe/Berlin] PHP Notice: Undefined index: nodetype in /home/********/public_html/core/vb5/route/legacy/archive.php on line 34
      [04-Dec-2019 10:43:15 Europe/Berlin] PHP Notice: Undefined index: nodetype in /home/********/public_html/core/vb5/route/legacy/archive.php on line 41
      [04-Dec-2019 10:43:15 Europe/Berlin] PHP Notice: Undefined variable: oldcontenttypeid in /home/********/public_html/core/vb5/route/legacy/archive.php on line 48
      [04-Dec-2019 10:44:06 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:44:06 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791
      [04-Dec-2019 10:44:06 Europe/Berlin] PHP Warning: A non-numeric value encountered in /home/********/public_html/core/vb/api/user.php on line 1791

      Comment


      • #4
        The "error" log provided doesn't actually show any errors. Notices and Warnings are not errors and will not affect the operation of the software.

        I cannot recreate your issue on my local installations or on a Cloud Installation. When you assign an Additional Usergroup in the AdminCP, you're clicking the "Save" button at the bottom of the profile editor correct? Changes are not automatically saved.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API - Full / Mobile
        Vote for your favorite feature requests and the bugs you want to see fixed.

        Comment


        • #5
          I had this same issue and thought it could relate to permissions or that some group settings overlap with others. The way that solved my problem was to reshuffle the primary and secondary groups of the user.

          Comment


          • Wayne Luke
            Wayne Luke commented
            Editing a comment
            To allow additional usergroups to override permissions, the primary usergroup must have the "Allow Users to have Member Groups" set to yes. This permission should only be set to No on "Banned Usergroups." Though people come up with weird use cases to have people in multiple usergroups but not inherit permissions.

        • #6
          Yes, I am sure that I clicked save, but I'll check the other stuff. The two additional user groups I used were of a cosmetic nature, i.e. their purpose was to give the user a new badge, not necessarily any new access rights or such. So there might be things that aren't really thought through when it comes to permissions.

          Comment


          • #7
            What was the user's display group set to? You may have to set it to the Additional Usergroup to have everything appear like Badges and Titles.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API - Full / Mobile
            Vote for your favorite feature requests and the bugs you want to see fixed.

            Comment


            • #8
              I think I've managed the original problem by creating new usergroups, but I've run into something new and related.

              I created several usergroups to be used as primary usergroups, and which controlled all rights and permissions. Then I created several other usergroups intended as additional usergroups. These had no permissions to them; only a badge and a name.

              Promotions work as intended, but the Display usergroup is stuck with the first additional usergroup it was promoted to. I can change it manually, and then it works.

              So, the question is: Is there any way to control the Display usergroup when you perform an automatic promotion? Or, automatically remove all additional usergroups but one, which would give the same result.

              Comment

              Related Topics

              Collapse

              • 720
                Error 508
                by 720
                When pressing "Mark channels read" in the main page of my forum, myself and other users get the error message 508.

                Running vB5.5.5, only third-party plugin is Tapatalk.
                ...
                Fri 15th Nov '19, 12:34am
              • bollie
                PHP Warning
                by bollie
                [Thu Mar 01 14:08:56.052710 2018] [:error] [pid 26055] [client 81.11.134.242:62458] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/pctuts/domains/pctuts.be/public_html/core/vb/api/user.php...
                Thu 1st Mar '18, 5:21am
              • saiff
                Invalid SQL: SELECT `varname`,`languageid`,`text` FROM phrase
                by saiff
                What is this error?



                Invalid SQL:
                SELECT `varname`,`languageid`,`text` FROM phrase
                WHERE `varname` IN ('Description cannot be empty. Please set this field.','go_back','my_profile','my_recent_posts','user_settings','log_out','logo','search' ,'filter_search','navbar_home','navbar_blogs','navbar_articles','navbar_social_groups','na vbar_158516011593_15751604158916081585','navbar_15751604157816081575160216101593','navbar_ 15781586161016101606_15751604160516081575159016101593','navbar_newtopics','navbar_todays_p osts','navbar_whos_online','navbar_mark_channels_read','navbar_member_list','search_in_tit les_only','advanced_search','notice_23_html','navbar_help','navbar_contact_us','go_to_top' ,'powered_by_vbulletin','footer_current_time','working_ellipsis','yes','no','ok','cancel')...
                Tue 25th Apr '17, 6:14am
              • saiff
                warnind: illegal string offest
                by saiff
                Hi,

                please help .

                Warning: Illegal string offset 'moderatorperms' in /home/user/public_html/vb/includes/vb5/template.php(329) : eval()'d code on line 738 Warning: Illegal string...
                Thu 15th Sep '16, 12:29pm
              • saiff
                Warning: Illegal string offset
                by saiff
                hi,
                when viewing some members blog, get this error

                [16-Apr-2017 10:10:15 Asia/Riyadh] Warning: Illegal string offset 'moderatorperms' in /home/usre/public_html/vb/includes/vb5/template.php(318)...
                Sun 16th Apr '17, 2:48am
              Working...
              X