Fixed Error MemberGroup

Dinor

Member
Error Info
ErrorException: Use of undefined constant TEAM_DATAREGISTRY_KEY - assumed 'TEAM_DATAREGISTRY_KEY' - library/Nobita/Teams/Model/MemberGroup.php:26
Generated By: nobita.me, 28 minutes ago


Stack Trace
#0 /home/domains/public_html/library/Nobita/Teams/Model/MemberGroup.php(26): XenForo_Application::handlePhpError(8, 'Use of undefine...', '/home/do...', 26, Array)
#1 /home/domains/public_html/library/Nobita/Teams/Installer.php(319): Nobita_Teams_Model_MemberGroup->saveGroupPermDataCache()
#2 [internal function]: Nobita_Teams_Installer::install(false, Array, Object(SimpleXMLElement))
#3 /home/domains/public_html/library/XenForo/Model/AddOn.php(215): call_user_func(Array, false, Array, Object(SimpleXMLElement))
#4 /home/domains/public_html/library/XenForo/Model/AddOn.php(169): XenForo_Model_AddOn->installAddOnXml(Object(SimpleXMLElement), false)
#5 /home/domains/public_html/library/XenForo/ControllerAdmin/AddOn.php(187): XenForo_Model_AddOn->installAddOnXmlFromFile('/tmp/phpo0LCmc')
#6 /home/domains/public_html/library/XenForo/FrontController.php(347): XenForo_ControllerAdmin_AddOn->actionInstall()
#7 /home/domains/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /home/domains/public_html/admin.php(13): XenForo_FrontController->run()
#9 {main}


Request State
array(3) {
["url"] => string(43)
["_GET"] => array(1) {
["add-ons/install"] => string(0) ""
}
["_POST"] => array(3) {
["server_file"] => string(0) ""
["_xfConfirm"] => string(1) "1"
["_xfToken"] => string(8) "********"
}
}
 
Version 2.0.0a..

New install, don't upgrade
 
Version 2.0.0a..

New install, don't upgrade
DinorOkey! Simple to fixing.
Open the file: library/Nobita/Teams/Model/MemberGroup.php
Find the line:
PHP:
$this->_getDataRegistryModel()->set(TEAM_DATAREGISTRY_KEY, $all);
Replace by:
PHP:
if (!defined('TEAM_DATAREGISTRY_KEY'))
        {
            define('TEAM_DATAREGISTRY_KEY', 'Teams_group_perms');
        }

        $this->_getDataRegistryModel()->set(TEAM_DATAREGISTRY_KEY, $all);
 
Back
Top