[FIXED] Errors on import

hoerspiel

New Member
I have two errors, when i import my old XF1 Groups in a fresh XF2.1.2 Installation.

But it seems to work fine, anyway. But i have to test more.

May be its something, that will help you:

Log 1:
ErrorException: [E_NOTICE] Undefined index: user_group_ids
src/addons/Truonglv/Groups/Import/Importer/Group.php:127

#0 src/addons/Truonglv/Groups/Import/Importer/Group.php(127): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/var/kunden/web...', 127, Array)
#1 src/XF/Import/Runner.php(231): Truonglv\Groups\Import\Importer\Group->stepMemberRoles(Object(XF\Import\StepState), Array, 8)
#2 src/XF/Import/Runner.php(59): XF\Import\Runner->runStep('memberRoles', Object(XF\Import\StepState), 8)
#3 src/XF/Admin/Controller/Import.php(234): XF\Import\Runner->run()
#4 src/XF/Mvc/Dispatcher.php(321): XF\Admin\Controller\Import->actionRun(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Import', 'Run', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#6 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#7 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#9 src/XF.php(390): XF\App->run()
#10 admin.php(13): XF::runApp('XF\\Admin\\App')
#11 {main}

Log 2:
ErrorException: [E_NOTICE] Undefined index: expire_date
src/addons/Truonglv/Groups/Import/Importer/Group.php:286

#0 src/addons/Truonglv/Groups/Import/Importer/Group.php(286): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/var/kunden/web...', 286, Array)
#1 src/addons/Truonglv/Groups/Import/Importer/Group.php(166): Truonglv\Groups\Import\Importer\Group->importGroup(Array)
#2 src/XF/Import/Runner.php(231): Truonglv\Groups\Import\Importer\Group->stepGroups(Object(XF\Import\StepState), Array, 8)
#3 src/XF/Import/Runner.php(59): XF\Import\Runner->runStep('groups', Object(XF\Import\StepState), 8)
#4 src/XF/Admin/Controller/Import.php(234): XF\Import\Runner->run()
#5 src/XF/Mvc/Dispatcher.php(321): XF\Admin\Controller\Import->actionRun(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:Import', 'Run', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#7 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#8 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#10 src/XF.php(390): XF\App->run()
#11 admin.php(13): XF::runApp('XF\\Admin\\App')
#12 {main}
 

Truonglv

Staff member
Tech Support
What is version of groups in XF 1? Can you show me the table xf_team_member_role structure?
 

hoerspiel

New Member
Truonglv

1. Admin

Roles:
a:3:{s:7:"general";a:3:{s:13:"bypassPosting";s:1:"1";s:12:"invitePeople";s:1:"1";s:12:"editPostSelf";s:1:"1";}s:9:"moderator";a:15:{s:12:"removeMember";s:1:"1";s:16:"acceptDenyMember";s:1:"1";s:9:"banMember";s:1:"1";s:20:"approveUnapprovePost";s:1:"1";s:16:"stickUnstickPost";s:1:"1";s:11:"editPostAny";s:1:"1";s:13:"deletePostAny";s:1:"1";s:14:"editCommentAny";s:1:"1";s:16:"deleteCommentAny";s:1:"1";s:12:"editEventAny";s:1:"1";s:14:"deleteEventAny";s:1:"1";s:10:"manageLogo";s:1:"1";s:11:"manageCover";s:1:"1";s:9:"massAlert";s:1:"1";s:11:"updateRules";s:1:"1";}s:5:"forum";a:10:{s:13:"editThreadAny";s:1:"1";s:15:"deleteThreadAny";s:1:"1";s:18:"stickUnstickThread";s:1:"1";s:16:"lockUnlockThread";s:1:"1";s:22:"approveUnapproveThread";s:1:"1";s:14:"undeleteThread";s:1:"1";s:11:"editPostAny";s:1:"1";s:13:"deletePostAny";s:1:"1";s:17:"viewDeletedThread";s:1:"1";s:19:"viewModeratedThread";s:1:"1";}}

2. gruppenmoderator

Roles:
a:3:{s:7:"general";a:3:{s:13:"bypassPosting";s:1:"1";s:12:"invitePeople";s:1:"1";s:12:"editPostSelf";s:1:"1";}s:9:"moderator";a:15:{s:12:"removeMember";s:1:"1";s:16:"acceptDenyMember";s:1:"1";s:9:"banMember";s:1:"1";s:20:"approveUnapprovePost";s:1:"1";s:16:"stickUnstickPost";s:1:"1";s:11:"editPostAny";s:1:"1";s:13:"deletePostAny";s:1:"1";s:14:"editCommentAny";s:1:"1";s:16:"deleteCommentAny";s:1:"1";s:12:"editEventAny";s:1:"1";s:14:"deleteEventAny";s:1:"1";s:10:"manageLogo";s:1:"1";s:11:"manageCover";s:1:"1";s:9:"massAlert";s:1:"1";s:11:"updateRules";s:1:"1";}s:5:"forum";a:10:{s:13:"editThreadAny";s:1:"1";s:15:"deleteThreadAny";s:1:"1";s:18:"stickUnstickThread";s:1:"1";s:16:"lockUnlockThread";s:1:"1";s:22:"approveUnapproveThread";s:1:"1";s:14:"undeleteThread";s:1:"1";s:11:"editPostAny";s:1:"1";s:13:"deletePostAny";s:1:"1";s:17:"viewDeletedThread";s:1:"1";s:19:"viewModeratedThread";s:1:"1";}}

3. member

Roles:
a:11:{s:9:"canRemove";i:0;s:10:"canPromote";i:0;s:16:"canManageContent";i:0;s:22:"canApproveOrUnapproved";i:0;s:12:"manageAvatar";i:0;s:11:"manageCover";i:0;s:13:"bypassPosting";i:0;s:7:"banUser";i:0;s:9:"massAlert";i:0;s:12:"invitePeople";i:0;s:11:"updateRules";i:0;}

And thats a screenshot from the other rows:

Also 1,2,3:

3212

In XF1.5 i use version 2.7.8 from your plugin.

I think the upgrade is still working in XF 2.1.2 But its just a test installation, i have to upgrade again, if i make it public.
 
Top