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

XF 1.4 Error when trying to set permissions "500"

Discussion in 'Troubleshooting and Problems' started by Adam Bloch, May 30, 2015.

  1. Adam Bloch

    Adam Bloch Member

    When trying to save changes to the main registered users group permissions I get this error..



    ErrorException: Fatal Error: Maximum execution time of -1 seconds exceeded - library/XenForo/Model/Permission.php:1707
    Generated By: Administrators, 1 minute ago
    Stack Trace
    #0 [internal function]: XenForo_Application::handleFatalError()
    #1 {main}
    Request State
    array(3) {
    ["url"] => string(94) "http://www.audi-sport.net/xf/admin.php?user-groups/primary-registered-users-restrictive.2/save"
    ["_GET"] => array(1) {
    ["user-groups/primary-registered-users-restrictive_2/save"] => string(0) ""
    }
    ["_POST"] => array(10) {
    ["title"] => string(40) "[PRIMARY] Registered Users (restrictive)"
    ["display_style_priority"] => string(1) "1"
    ["user_title_override"] => string(1) "0"
    ["username_css"] => string(0) ""
    ["banner_text"] => string(0) ""
    ["user_banner_group_id"] => string(0) ""
    ["user_banner_group_id_shown"] => string(1) "1"
    ["banner_css_class"] => string(23) "userBanner bannerHidden"
    ["permissions"] => array(17) {
    ["general"] => array(30) {
    ["view"] => string(5) "allow"
    ["viewNode"] => string(5) "allow"
    ["viewMemberList"] => string(5) "allow"
    ["viewProfile"] => string(5) "allow"
    ["search"] => string(5) "allow"
    ["maxTaggedUsers"] => string(2) "21"
    ["editProfile"] => string(5) "allow"
    ["editCustomTitle"] => string(5) "allow"
    ["followModerationRules"] => string(5) "allow"
    ["KeywordAlert_canUse"] => string(5) "unset"
    ["bypassFloodCheck"] => string(4) "deny"
    ["report"] => string(5) "allow"
    ["cz_username_change"] => string(5) "allow"
    ["viewIps"] => string(4) "deny"
    ["bypassUserPrivacy"] => string(4) "deny"
    ["cleanSpam"] => string(4) "deny"
    ["viewWarning"] => string(4) "deny"
    ["warn"] => string(4) "deny"
    ["manageWarning"] => string(4) "deny"
    ["editBasicProfile"] => string(4) "deny"
    ["viewAnalyticsTab"] => string(5) "unset"
    ["viewAnalyticsRevenue"] => string(5) "unset"
    ["cz_easyban"] => string(4) "deny"
    ["editSignature"] => string(5) "allow"
    ["bdSocialShare_staffShare"] => string(4) "deny"
    ["bdSocialShare_twitter"] => string(5) "allow"
    ["bdSocialShare_facebook"] => string(5) "allow"
    ["bdSocialShare_threadAuto"] => string(5) "allow"
    ["bdSocialShare_statusAuto"] => string(5) "allow"
    ["bdSocialShare_resourceAut"] => string(5) "allow"
    }

    Edited out all the other options
     
  2. Mike

    Mike XenForo Developer Staff Member

    The issue is likely related to trying to set the execution time limit to -1. This isn't something that XF does though. For unlimited, the value should be 0. I'm not sure if that's indicating an add-on is doing it, if it's been added to config.php, or if there's a weird value in php.ini.
     
  3. Adam Bloch

    Adam Bloch Member

    Ok tried that

    ErrorException: Fatal Error: Maximum execution time of 0 seconds exceeded - library/XenForo/Model/Permission.php:1691
    Generated By: Administrators, 3 minutes ago
    Stack Trace
    #0 [internal function]: XenForo_Application::handleFatalError()
    #1 {main}
    Request State
    array(3) {
    ["url"] => string(94) "http://www.audi-sport.net/xf/admin.php?user-groups/primary-registered-users-restrictive.2/save"
    ["_GET"] => array(1) {
    ["user-groups/primary-registered-users-restrictive_2/save"] => string(0) ""
    }
    ["_POST"] => array(10) {
    ["title"] => string(40) "[PRIMARY] Registered Users (restrictive)"
    ["display_style_priority"] => string(1) "1"
    ["user_title_override"] => string(1) "0"
    ["username_css"] => string(0) ""
    ["banner_text"] => string(0) ""
    ["user_banner_group_id"] => string(0) ""
    ["user_banner_group_id_shown"] => string(1) "1"
    ["banner_css_class"] => string(23) "userBanner bannerHidden"
    ["permissions"] => array(17) {
    ["general"] => array(30) {
    ["view"] => string(5) "allow"
    ["viewNode"] => string(5) "allow"
    ["viewMemberList"] => string(5) "allow"
    ["viewProfile"] => string(5) "allow"
    ["search"] => string(5) "allow"
    ["maxTaggedUsers"] => string(2) "20"
    ["editProfile"] => string(5) "allow"
    ["editCustomTitle"] => string(5) "allow"
    ["followModerationRules"] => string(5) "allow"
    ["KeywordAlert_canUse"] => string(5) "unset"
    ["bypassFloodCheck"] => string(4) "deny"
    ["report"] => string(5) "allow"
    ["cz_username_change"] => string(5) "allow"
     
  4. Mike

    Mike XenForo Developer Staff Member

    It's not really clear what you changed specifically.

    Calling set_time_limit (http://php.net/manual/en/function.set-time-limit.php) with a value of 0 is defined to be unlimited so the behavior you're seeing does not fit with the PHP docs (or my experience). Hence, the specific method of change may be relevant (as well as any PHP extensions, such as something along the lines of Suhosin).
     

Share This Page