1. REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Issue with clicking on user to open profile popup

Discussion in 'Sportsbook Support' started by nick-harper, Jun 7, 2018.

  1. nick-harper

    nick-harper New Member Pickem Sportsbook

    Since I have implemented this I get the following error on the popup where you click on the user's name

    Code:
    Error Info
    ErrorException: Argument 1 passed to XenForo_Permission::hasPermission() must be of the type array, boolean given, called in /home/skyblues/public_html/library/NFLJ/Sportsbook/XenForo/ControllerPublic/Member.php on line 23 and defined - library/XenForo/Permission.php:27
    Generated By: Cookie, 10 minutes ago
    Stack Trace
    #0 /home/skyblues/public_html/library/XenForo/Permission.php(27): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/home/skyblues/...', 27, Array)
    #1 /home/skyblues/public_html/library/NFLJ/Sportsbook/XenForo/ControllerPublic/Member.php(23): XenForo_Permission::hasPermission(false, 'nfljsb', 'viewBettingExch...')
    #2 /home/skyblues/public_html/library/XenForo/FrontController.php(351): NFLJ_Sportsbook_XenForo_ControllerPublic_Member->actionMember()
    #3 /home/skyblues/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #4 /home/skyblues/public_html/index.php(13): XenForo_FrontController->run()
    #5 {main}
     
  2. Bob

    Bob Developer Staff Member

    are you talking about this? or somewhere else?

    Selection_856.png
     
  3. nick-harper

    nick-harper New Member Pickem Sportsbook

    Yes thats the one! I get that error there.
     
  4. Bob

    Bob Developer Staff Member

    My guess (since I don't know what addons you have) is that another addon is not properly extending the Member Controller. Params Data that should be available (in this case, the params['user'] data) is not there. The global_permission_cache is needed for the permissions check and since the params['user'] data is somehow not available, its treating it as false (which is why an error is being thrown).

    With that said, I can certainly add additional code to check for the params['user'] missing, but the USER data should ALWAYS be there. What really needs fixing tho, is what ever is either removing that data or what ever is not properly extending the member controller as that is preventing other things from working!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.