Fixed Undefined Index Private

Brent W

Well-known member
Code:
Server Error Log
Error Info
ErrorException: Undefined index: private - library/XenForo/Helper/UserChangeLog.php:141
Generated By: Tallguy88, Today at 7:50 AM
Stack Trace
#0 /home/nginx/domains/christianforums.com/public/library/XenForo/Helper/UserChangeLog.php(141): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/nginx/dom...', 141, Array)
#1 /home/nginx/domains/christianforums.com/public/library/XenForo/Helper/UserChangeLog.php(75): XenForo_Helper_UserChangeLog->_prepareCustomField('christian_denom...', Array)
#2 /home/nginx/domains/christianforums.com/public/library/XenForo/Model/UserChangeLog.php(242): XenForo_Helper_UserChangeLog->prepareField(Array)
#3 /home/nginx/domains/christianforums.com/public/library/XenForo/Model/UserChangeLog.php(209): XenForo_Model_UserChangeLog->prepareField(Array)
#4 /home/nginx/domains/christianforums.com/public/library/XenForo/ControllerAdmin/User.php(1376): XenForo_Model_UserChangeLog->getChangeLogs(Array, Array)
#5 /home/nginx/domains/christianforums.com/public/library/XenForo/FrontController.php(351): XenForo_ControllerAdmin_User->actionChangeLog()
#6 /home/nginx/domains/christianforums.com/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#7 /home/nginx/domains/christianforums.com/public/admin.php(13): XenForo_FrontController->run()
#8 {main}
Request State
array(3) {
  ["url"] => string(82) "http://www.christianforums.com/admin.php?users/stray-bullet.5260/change-log&page=3"
  ["_GET"] => array(2) {
    ["users/stray-bullet_5260/change-log"] => string(0) ""
    ["page"] => string(1) "3"
  }
  ["_POST"] => array(0) {
  }
}
 
What is the setting for your settings for the custom field "private"? It seems like there should be a sanity check to make sure:
PHP:
$fieldChoices = @unserialize($fieldInfo['field_choices']);
isn't empty.

But at the same time, it seems like maybe you had the "private" user field set as a different field type, the user set it, and then you switched the field. I could be off though, I just recall seeing [something like] that as an issue recently.
 
Top Bottom