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.

Template error when in AdminCP

Not open for further replies.


New Member
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

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: {
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.
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.

Not open for further replies.