Fixed Problem with Register and Delete user accounts

Dadparvar

Active Member
Hi,

After upgrading to 2.5, some people have problem registering in site, and also when I want to delete a user account, this error log comes:
Code:
Server Error Log
Error Info
ErrorException: Fatal Error: Call to undefined method Nobita_Teams_Model_Member::countTeamsYouAdmin() - library/Nobita/Teams/XenForo/ControllerAdmin/User.php:10
Generated By: Hamed-Azimi, 1 minute ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
  ["url"] => string(209) "http://site.com/admin.php?users/15758/delete&&_xfRequestUri=%2Fadmin.php%3Fusers%2F15758%2Fedit&_xfNoRedirect=1&_xfToken=1%2C1456430648%2C14db5b8af54b10a2e4b205264b88330e8c3312c9&_xfResponseType=json"
  ["_GET"] => array(5) {
    ["users/15758/delete"] => string(0) ""
    ["_xfRequestUri"] => string(27) "/admin.php?users/15758/edit"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(53) "1,1456430648,14db5b8af54b10a2e4b205264b88330e8c3312c9"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}

and it doesn't let me delete user account.

Regards
 
Now when I want to delete a user:
Code:
The following error occurred:

Argument 2 passed to Nobita_Teams_Model_Team::countTeamsYouAdmin() must be of the type array, none given, called in /home/xenforo/domains/site.com/public_html/library/Nobita/Teams/XenForo/ControllerAdmin/User.php on line 11 and defined
XenForo_Application::handlePhpError() in Nobita/Teams/Model/Team.php at line 213
Nobita_Teams_Model_Team->countTeamsYouAdmin() in Nobita/Teams/XenForo/ControllerAdmin/User.php at line 11
Nobita_Teams_XenForo_ControllerAdmin_User->actionDelete() in XenForo/FrontController.php at line 351
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/xenforo/domains/site.com/public_html/admin.php at line 13

and the log:
Code:
Error Info
ErrorException: Argument 2 passed to Nobita_Teams_Model_Team::countTeamsYouAdmin() must be of the type array, none given, called in /home/xenforo/domains/site.com/public_html/library/Nobita/Teams/XenForo/ControllerAdmin/User.php on line 11 and defined - library/Nobita/Teams/Model/Team.php:213
Generated By: Hamed-Azimi, 1 minute ago
Stack Trace
#0 /home/xenforo/domains/site.com/public_html/library/Nobita/Teams/Model/Team.php(213): XenForo_Application::handlePhpError(4096, 'Argument 2 pass...', '/home/xenforo/d...', 213, Array)
#1 /home/xenforo/domains/site.com/public_html/library/Nobita/Teams/XenForo/ControllerAdmin/User.php(11): Nobita_Teams_Model_Team->countTeamsYouAdmin(15758)
#2 /home/xenforo/domains/site.com/public_html/library/XenForo/FrontController.php(351): Nobita_Teams_XenForo_ControllerAdmin_User->actionDelete()
#3 /home/xenforo/domains/site.com/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /home/xenforo/domains/site.com/public_html/admin.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
  ["url"] => string(209) "http://site.com/admin.php?users/15758/delete&&_xfRequestUri=%2Fadmin.php%3Fusers%2F15758%2Fedit&_xfNoRedirect=1&_xfToken=1%2C1456469991%2C465973f38f352d156e56b0248c896aaf74fde7eb&_xfResponseType=json"
  ["_GET"] => array(5) {
    ["users/15758/delete"] => string(0) ""
    ["_xfRequestUri"] => string(27) "/admin.php?users/15758/edit"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(53) "1,1456469991,465973f38f352d156e56b0248c896aaf74fde7eb"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
 
Registers have problem since yesterday.
I also see that although 2 new users created by me as test from ACP, but they are not showing in Statics widget as last user, and the last user shows the one who registered before these 2 users.
And all other info in statics widget are not updating since yesterday.
Maybe related to this add-on, because I didn't work with any other place of my site yesterday.
 
Registers have problem since yesterday.
I also see that although 2 new users created by me as test from ACP, but they are not showing in Statics widget as last user, and the last user shows the one who registered before these 2 users.
And all other info in statics widget are not updating since yesterday.
Maybe related to this add-on, because I didn't work with any other place of my site yesterday.
DadparvarNot ralate to my addon. The statistic not update realtime and make sure that users have valid state
 
Back
Top