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.

Updated Template error when in AdminCP

Discussion in 'Sportsbook Resolved Bug Reports' started by ArcheXerxes, Aug 17, 2016.

  1. ArcheXerxes

    ArcheXerxes New Member Sportsbook

    I just installed Sportsbook and was looking through the different menus,

    I went

    AdminCP>Applications>Sportsbook>Sportsbook Options

    and the following message displays on the top bar

    Code:
    Template Errors: nflj_sportsbook_category_chooser
    Invalid argument supplied for foreach() in (Editing site address out here)/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 6:
    5:             ';
    6: foreach ($preparedOption['options'] AS $option)
    7: {
     
  2. Bob

    Bob Developer Staff Member

    You need to have at least 1 Sportsbook Category in order to use the Addon as there are several dependencies involving categories. That particular error will only happen when there are NO Sportsbook Categories in the system.
     
  3. Bob

    Bob Developer Staff Member

    Even tho this isn't a bug, I've modified the Admin Category Helper so that when there are no categories in the system, it passes in a DUMMY Category to the Option Category Chooser that is named "Error - No Categories in the system" with a Category ID of 0. This way an ERROR message shows up inside the Chooser instead of throwing an invalid argument template error message.

    Selection_643.png
     
  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.