• This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.
  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Bug Fixed Error Creating Club

toodlez

Member
Joined
Jul 3, 2016
Messages
43
I have installed the system and set usergroup permissions. When I go to create a club I get the following error -

The following error occurred:
Undefined variable: club
  1. XenForo_Application::handlePhpError() in XFA/Roster/ControllerPublic/Club.php at line 643
  2. XFA_Roster_ControllerPublic_Club->actionSave() in XenForo/FrontController.php at line 351
  3. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  4. XenForo_FrontController->run() in /home/mysite/public_html/index.php at line 13

What's the error from here?
Thanks
 

Fredxd

Administrator
Staff member
Joined
Nov 14, 2015
Messages
1,599
Hi
I will give you little fix

In XFA/Roster/ControllerPublic/Club.php at line 643

Search

PHP:
if($club){
            if(!$clubPermission->canEditThreadClub($club)) {
                unset($clubInput['thread_id']);
            }
        }
Replace by

PHP:
if(isset($club)){
            if(!$clubPermission->canEditThreadClub($club)) {
                unset($clubInput['thread_id']);
            }
        }