• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Applying new permissions to registered user group fails

#1
Hello,

I'm running on my forums XF 1.4.3. When I try to apply to my registered users group new permissions (I was trying to disallow all registered users from posting a thread in one of the subforums) it fails. The post request gets stuck and the page goes blank on the (....)/save portion of link.

What could be the problem? Is it a known bug? We have 15321 registered users at our forum.

Regards,
Furai
 

Amaury

Well-known member
#2
Try disabling all of your add-ons and then trying again. If it works, one of your add-ons is misbehaving. Re-enable them individually until you isolate the add-on responsible.
 

Brogan

XenForo moderator
Staff member
#3
Is it just that one node?

What is the node title and do you have any ad blockers installed in your browser?
 
#4
I have uBlock. Node title was something general like "Rejected Bugs". Anyway, I was able to change permissions for other groups. Only registered was a problem. I bet because of so many users in it.
 

Amaury

Well-known member
#5
I have uBlock. Node title was something general like "Rejected Bugs". Anyway, I was able to change permissions for other groups. Only registered was a problem. I bet because of so many users in it.
Is uBlock an add-on? Try disabling that and then try again.

I don't think having a lot of users in a user group would affect anything other than a rebuild process possibly taking a little longer.
 
#8
Actually I've checked for the server logs and I found that:
Code:
ErrorException: Fatal Error: Maximum execution time of 30 seconds exceeded - library/XenForo/Model/Permission.php:1709
Code:
array(3) {
  ["url"] => string(84) "(...)/admin.php?node-permissions/rejected-bugs.162/user-group/save"
  ["_GET"] => array(1) {
    ["node-permissions/rejected-bugs_162/user-group/save"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["permissions"] => array(2) {
      ["general"] => array(1) {
        ["viewNode"] => string(5) "unset"
      }
      ["forum"] => array(46) {
        ["doublepost_merge_minutes"] => string(1) "0"
        ["doublepost_bump_minutes"] => string(1) "0"
        ["viewOthers"] => string(5) "unset"
        ["viewContent"] => string(5) "unset"
        ["like"] => string(5) "unset"
        ["postThread"] => string(5) "reset"
        ["postReply"] => string(5) "unset"
        ["deleteOwnPost"] => string(5) "unset"
        ["editOwnPost"] => string(5) "unset"
        ["editOwnPostTimeLimit"] => string(1) "0"
        ["editOwnThreadTitle"] => string(5) "unset"
        ["deleteOwnThread"] => string(5) "unset"
        ["viewAttachment"] => string(5) "unset"
        ["uploadAttachment"] => string(5) "unset"
        ["votePoll"] => string(5) "unset"
        ["stickUnstickThread"] => string(5) "unset"
        ["lockUnlockThread"] => string(5) "unset"
        ["manageAnyThread"] => string(5) "unset"
        ["deleteAnyThread"] => string(5) "unset"
        ["hardDeleteAnyThread"] => string(5) "unset"
        ["threadReplyBan"] => string(5) "unset"
        ["editAnyPost"] => string(5) "unset"
        ["deleteAnyPost"] => string(5) "unset"
        ["hardDeleteAnyPost"] => string(5) "unset"
        ["warn"] => string(5) "unset"
        ["viewDeleted"] => string(5) "unset"
        ["viewModerated"] => string(5) "unset"
        ["undelete"] => string(5) "unset"
        ["approveUnapprove"] => string(5) "unset"
        ["viewSocialForum"] => string(5) "unset"
        ["joinSocialForum"] => string(5) "unset"
        ["maxSocialForums"] => string(1) "0"
        ["leaveSocialForum"] => string(5) "unset"
        ["viewSocialForumMembers"] => string(5) "unset"
        ["createSocialForum"] => string(1) "0"
        ["stickUnstickSocialForum"] => string(5) "unset"
        ["moveSocialForum"] => string(5) "unset"
        ["editSocialForum"] => string(5) "unset"
        ["deleteSocialForum"] => string(5) "unset"
        ["maxSocialForumAvatarSize"] => string(1) "0"
        ["addSocialForumModerator"] => string(5) "unset"
        ["killSocialForumModerator"] => string(5) "unset"
        ["assignSocialForumCreator"] => string(5) "unset"
        ["approveSocialForumJoin"] => string(5) "unset"
        ["rejectSocialForumJoin"] => string(5) "unset"
        ["killSocialForumMember"] => string(5) "unset"
      }
    }
    ["user_group_id"] => string(1) "2"
    ["_xfToken"] => string(8) "********"
  }
}
 

Brogan

XenForo moderator
Staff member
#9
We have far more than 15K members in the Registered user group here so that isn't the issue.

How many different user groups and nodes do you have?

You can try increasing the value for max_execution_time but that may not work, depending on how long it is actually taking the process to complete (plus it's not addressing the underlying issue anyway).
 
#10
Added this line:
Code:
ini_set('max_execution_time', 60);
To the forum's config.php and it worked.

As to the nodes and user groups...let me see.
46 user groups
128 nodes
 

Brogan

XenForo moderator
Staff member
#11
With that many user groups and nodes, that's a lot of permissions combinations and therefore rebuild time.

If changing the max_execution_time works then that's probably the best approach.

You may want to try running this to see if it improves things:
upload_2015-5-5_13-54-30.png
 
#12
Ok, thanks a lot for your time.

EDIT:
Is there anything else that could be done about it to speed up the process? Except for the obvious removing not needed forum groups?
 
Last edited: