1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then 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.

Fixed 1.1.0 Undefined index: wins

Discussion in 'Sportsbook Resolved Bug Reports' started by SneakyDave, Apr 18, 2013.

  1. SneakyDave

    SneakyDave Member Sportsbook

    This wouldn't be related to the previous bug I reported, would it?

    Code:
    #0 /[blah]/library/NFLJ/Sportsbook/Listener/Trophy.php(60): XenForo_Application::handlePhpError(8, 'Undefined index...', '/[blah]...', 60, Array)
    #1 [internal function]: NFLJ_Sportsbook_Listener_Trophy::criteriaUser('sportsbook_wins', Array, Array, false)
    #2 /[blah]/library/XenForo/CodeEvent.php(54): call_user_func_array(Array, Array)
    #3 /[blah]/library/XenForo/Helper/Criteria.php(383): XenForo_CodeEvent::fire('criteria_user', Array)
    #4 /[blah]/library/XenForo/CronEntry/Trophy.php(45): XenForo_Helper_Criteria::userMatchesCriteria('a:1:{i:0;a:2:{s...', false, Array)
    #5 [internal function]: XenForo_CronEntry_Trophy::runTrophyCheck(Array)
    #6 /[blah]/library/XenForo/Model/Cron.php(356): call_user_func(Array, Array)
    #7 /[blah]/library/XenForo/Cron.php(29): XenForo_Model_Cron->runEntry(Array)
    #8 /[blah]/XenForo/Cron.php(64): XenForo_Cron->run()
    #9 /[blah]/cron.php(12): XenForo_Cron::runAndOutput()
    #10 {main}
    
    Request State
    Code:
    [/SIZE][/SIZE]
    [SIZE=13px]array(3) {[/SIZE]
    [SIZE=13px]  ["url"] => string(51) "http://[blah]/cron.php?1366299660"[/SIZE]
    [SIZE=13px]  ["_GET"] => array(1) {[/SIZE]
    [SIZE=13px]    [1366299660] => string(0) ""[/SIZE]
    [SIZE=13px]  }[/SIZE]
    [SIZE=13px]  ["_POST"] => array(0) {[/SIZE]
    [SIZE=13px]  }[/SIZE]
    [SIZE=13px]}
     
  2. Bob

    Bob Developer Staff Member

    undefined means that there is no data present when there needs to be "SOME" data. So ya, it could be. I just created a "Wins" based trophy and manually ran it. Didn't throw any errors.

    You can remove that trophy from yourself, run the cron manually and see if it throws the error again.
     
  3. Bob

    Bob Developer Staff Member

    Did that come up in the Server Error Logs panel in XF? (attempting to reproduce, so I need to know).
     
  4. SneakyDave

    SneakyDave Member Sportsbook

    Yes it did. It's related to the previous bug. I updated that, I think there is an id still wrong in your admin template.

    Just like you said, a user criteria is checked, but there wasn't a value assigned to it.
     
  5. Bob

    Bob Developer Staff Member

    It was another "disabler" issue with the template (same div ID) causing values to pass when they shouldn't.
     
  6. SneakyDave

    SneakyDave Member Sportsbook

    Well, I updated my "nflj_sportsbook_trophy_user_criteria_content" template to the latest version, and it fixed the problem of setting the user criteria for sportsbook trophies, but when I run the cron, I still get that error above.

    Are one of my trophies out of whack?
    You want me to send a database dump of what they look like?
     
  7. Bob

    Bob Developer Staff Member

  8. Bob

    Bob Developer Staff Member

    I've got every combo of Sportsbook trophy's possible and can't produce the above error. Maybe its conflicting with other data?
     
  9. SneakyDave

    SneakyDave Member Sportsbook

    I did the template update to the most recent version again, but I still get the error.

    I noticed this though...
    Choosing a checkbox puts the cursor for the criteria in the input box for that value. That works for all of the Sportsbook user criteria options, EXCEPT "User has wagered at least X amount:" and "User has lost at least X amount:". The disable still doesn't work for those either it appears.

    Let me apply the template change again.
     
  10. Bob

    Bob Developer Staff Member

    I just NOW updated it... grab the one I posted AFTER you read this post lol
     
  11. SneakyDave

    SneakyDave Member Sportsbook

    I resaved all my user trophies, and the problem seems to be fixed now I hope.

    But the 2 user criteria "User has wagered at least X amount:" and "User has lost at least X amount:" still don't appear to have their disable function working. I can enter values in them without being checked.
     
  12. Bob

    Bob Developer Staff Member

    no, there is another conflict now.. hang on.
     
  13. SneakyDave

    SneakyDave Member Sportsbook

    Yes, I was just going to say, one of them was fixed, but it looks like "User has lost at least X amount:" disabling still doesn't work. Just let me know, thanks!
     
  14. Bob

    Bob Developer Staff Member

    just fixed the disabler for the lost criteria...
     
    SneakyDave likes this.
  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.