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

XF 1.4 Getting Error when setting permission

clove28

Active member
#1
I was trying to change the permission of Registered Members (Post New Thread > Revoke) in one of my forums but I'm getting this error:

When I tried to change the other groups permissions, they were okay.
Code:
Error Info
 
ErrorException: Fatal Error: Maximum execution time of 30 seconds exceeded - library/XenForo/Model/Permission.php:1855
Generated By: Me, A moment ago
 
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
 
Request State
array(3) {
  ["url"] => string(101) "http://www.pinoyexpatforum.com/admin.php?node-permissions/articles-how-tos-guides.217/user-group/save"
  ["_GET"] => array(1) {
    ["node-permissions/articles-how-tos-guides_217/user-group/save"] => string(0) ""
  }
  ["_POST"] => array(3) {
    ["permissions"] => array(3) {
      ["general"] => array(1) {
        ["viewNode"] => string(5) "unset"
      }
      ["library"] => array(18) {
        ["viewAnyLibraryArticle"] => string(5) "unset"
        ["viewLibraryArticleContent"] => string(5) "unset"
        ["createLibraryArticle"] => string(5) "unset"
        ["createOwnArticlePage"] => string(5) "unset"
        ["createAnyArticlePage"] => string(5) "unset"
        ["moveOwnLibraryArticle"] => string(5) "unset"
        ["editOwnLibraryArticle"] => string(5) "unset"
        ["editOwnArticlePage"] => string(5) "unset"
        ["deleteOwnLibraryArticle"] => string(5) "unset"
        ["deleteOwnArticlePage"] => string(5) "unset"
        ["viewArticleAttachment"] => string(5) "unset"
        ["uploadArticleAttachment"] => string(5) "unset"
        ["stickLibraryArticle"] => string(5) "unset"
        ["moveAnyLibraryArticle"] => string(5) "unset"
        ["editAnyLibraryArticle"] => string(5) "unset"
        ["editAnyArticlePage"] => string(5) "unset"
        ["deleteAnyLibraryArticle"] => string(5) "unset"
        ["deleteAnyArticlePage"] => string(5) "unset"
      }
      ["forum"] => array(50) {
        ["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"
        ["Tinhte_XenTag_tag"] => string(5) "unset"
        ["Tinhte_XenTag_maximumTags"] => string(1) "0"
        ["Tinhte_XenTag_maximumHts"] => string(1) "0"
        ["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"
        ["Tinhte_XenTag_tagAll"] => 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) "********"
  }
}
 

Mike

XenForo developer
Staff member
#2
The main recommendation would be to put this in your config.php:
Code:
set_time_limit(120);
The registered group in particular may require a large amount of work to rebuild permissions when being changed.