• Resolved andrewfitz

    (@andrewfitz)


    Hi, I’m using groups and restrict categories, when I go to select which groups to restrict while editing a category, it only shows 2 of about 15. The same in posts and other areas, so it’s not a category-specific issue.

    Also, I can’t even add a new group. Each time I do it returns to the edit new group screen and doesn’t save.

    This was an upgrade from 1.x.

    Editing a group does not add it. Any way to get the rest of my groups to show up in the list? Pretty sure I also need to be able to add new groups!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Kento

    (@proaktion)

    Sounds like you’re not a member of the group(s) you want to use to restrict access – it will only show you the groups that you belong to in the “Read” field. Also if you try to create a group there that already exists, it will fail.

    Solution: Simply assign yourself to the groups you want to use to restrict access.

    Thread Starter andrewfitz

    (@andrewfitz)

    Okay, thank you I’ll try it. It won’t let me add groups even if I’m Admin? Admin should be able to add everything, don’t you think?

    As far as adding group, this was in the group main admin section, adding a new unique group.

    Thread Starter andrewfitz

    (@andrewfitz)

    Error log:

    Fatal error: Call to undefined function get_current_screen() in /public_html/wp-content/plugins/groups-restrict-categories/lib/admin/class-groups-restrict-categories-taxonomy-admin.php on line 367

    Plugin Author Kento

    (@proaktion)

    Thanks, yes please try adding yourself to the groups you want to use to restrict.

    But that it doesn’t let you add a new group is a different issue, if you have all permissions set for your admin account, then that shouldn’t happen. There must be some other issue preventing you from adding a group. Can you please enable debugging and try to add a group, then review the debug.log in wp-content and let me know if you see anything in there? A common issue would be PHP memory limits or conflicts with other plugins. But let’s see if you get anything in debug.log first?

    Plugin Author Kento

    (@proaktion)

    Thanks for posting the error (looks like you’ve updated to GRC 2.0.0) – it seems that the filter involved is invoked from somewhere too early. Do you have any surrounding context in the error log around the line where the fatal error comes up?

    Plugin Author Kento

    (@proaktion)

    Hi,

    Following up on this, I’ve found out a possible reason why this error is produced – as mentioned on https://codex.www.ads-software.com/Function_Reference/get_current_screen ” … there are cases where is_admin() will return true, but attempting to call get_current_screen() will result in a fatal error because it is not defined. …”

    Therefore GRC needs to be fixed to load the appropriate resource. This is not related to Groups directly but to this extension. A fix will be released shortly.

    Thanks for reporting this @andrewfitz!

    Cheers

    Plugin Author Kento

    (@proaktion)

    An updated version GRC 2.0.1 is available, please upgrade to that version which has this issue fixed.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Not showing up and won’t create new group’ is closed to new replies.