What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • 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
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
 

Fred

Administrator
Staff member
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']);
            }
        }
 
Top