XF 1.1 IPB Import - Server error

Junior

Well-known member
I'm attempting to merge an XenForo database with another Xenforo database by first importing to IPB then merging with XenForo. I've successfully merged into IPB 3.2.3 but when attempting to merge into my other XenForo account I get this error from Configure User Group Import:

Code:
Undefined index: g_avatar_upload
 
XenForo_Application::handlePhpError() in XenForo/Importer/IPBoard.php at line 448
XenForo_Importer_IPBoard->_calculateUserGroupPermissions() in XenForo/Importer/IPBoard.php at line 334
XenForo_Importer_IPBoard->stepUserGroups() in XenForo/Importer/Abstract.php at line 77
XenForo_Importer_Abstract->runStep() in XenForo/ControllerAdmin/Import.php at line 166
XenForo_ControllerAdmin_Import->_runStep() in XenForo/ControllerAdmin/Import.php at line 218
XenForo_ControllerAdmin_Import->_startStep() in XenForo/ControllerAdmin/Import.php at line 161
XenForo_ControllerAdmin_Import->actionStartStep() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in /home/x/public_html/support/admin.php at line 13
 
The top line is 448

Code:
if ($userGroup['g_avatar_upload'])
{
$perms['avatar']['allowed'] = 'allow';
$perms['avatar']['maxFileSize'] = intval($userGroup['g_photo_max_vars']); // take the first value from '500:170:240'
if ($perms['avatar']['maxFileSize'] > 2147483647)
{
$perms['avatar']['maxFileSize'] = -1;
}
}
 
return $perms;
}
 
That appears to be this function from my files:

Code:
	protected function _getUserGroupAvatarPerms(array $userGroup)
	{
		$avatarPerms = array();

		if (!empty($userGroup['g_avatar_upload']))
		{
			$avatarPerms['allowed'] = 'allow';
			$avatarPerms['maxFileSize'] = intval($userGroup['g_photo_max_vars']); // take the first value from '500:170:240'
			if ($avatarPerms['maxFileSize'] > 2147483647)
			{
				$avatarPerms['maxFileSize'] = -1;
			}
		}

		return $avatarPerms;
	}

My line numbers and code are different than yours. What version of XF?

The !empty($userGroup['g_avatar_upload']) should fix your error. But I would first advise you to upgrade to the latest version and run a file check.
 
Upgraded :oops:

Getting this now
Code:
Undefined index: port
 
XenForo_Application::handlePhpError() in XenForo/Importer/IPBoard.php at line 237
XenForo_Importer_IPBoard->_bootstrap() in XenForo/Importer/Abstract.php at line 87
XenForo_Importer_Abstract->_bootstrapImporter() in XenForo/Importer/Abstract.php at line 66
XenForo_Importer_Abstract->runStep() in XenForo/ControllerAdmin/Import.php at line 180
XenForo_ControllerAdmin_Import->_runStep() in XenForo/ControllerAdmin/Import.php at line 232
XenForo_ControllerAdmin_Import->_startStep() in XenForo/ControllerAdmin/Import.php at line 175
XenForo_ControllerAdmin_Import->actionStartStep() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in /home/x/public_html/support/admin.php at line 13

Edit:
I had continued the instillation from where it was after upgrading. I backed out and chose the right importer. So far so good. Thanks a lot Jake.
 
Top Bottom