[FIXED] Importing data from 1.5

ehd

Member
Importing the data from 1.5 to 2.* on a local XAMPP-install

If I try here: /admin.php?import/config

It fails because the last two fields cause problems:

data_directory : I use: C:\xampp\htdocs\xxx\data
internal_data_directory: C:\xampp\htdocs\xxx\internal_data

Oops! We ran into some problems.
The directory C:\xampp\htdocs\xxx\data does not contain the expected contents.

So the add-on runs but the groups and all messages are missing...
 
Reactions: DOA

ehd

Member
Thx. I have just tried to import, but get this:

InvalidArgumentException: Unknown column 'avatar_date' in src\XF\Import\Data\EntityEmulator.php at line 100
XF\Import\Data\EntityEmulator->set() in src\XF\Import\Data\AbstractEmulatedData.php at line 35
XF\Import\Data\AbstractEmulatedData->set() in src\XF\Import\Data\AbstractData.php at line 97
XF\Import\Data\AbstractData->bulkSet() in src\addons\Truonglv\Groups\Import\Importer\Group.php at line 219
Truonglv\Groups\Import\Importer\Group->importGroup() in src\addons\Truonglv\Groups\Import\Importer\Group.php at line 168
Truonglv\Groups\Import\Importer\Group->stepGroups() in src\XF\Import\Runner.php at line 160
XF\Import\Runner->runStep() in src\XF\Import\Runner.php at line 74
XF\Import\Runner->run() in src\XF\Admin\Controller\Import.php at line 232
XF\Admin\Controller\Import->actionRun() in src\XF\Mvc\Dispatcher.php at line 321
XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 248
XF\Mvc\Dispatcher->dispatchFromMatch() in src\XF\Mvc\Dispatcher.php at line 100
XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 50
XF\Mvc\Dispatcher->run() in src\XF\App.php at line 2177
XF\App->run() in src\XF.php at line 390
XF::runApp() in admin.php at line 13
 

ehd

Member
The above was beta 2. with beta 3 I just got this error:

InvalidArgumentException: Could not find 'likes' in data in src\XF\Import\Importer\AbstractImporter.php at line 213
XF\Import\Importer\AbstractImporter->mapKeys() in src\addons\Truonglv\Groups\Import\Importer\Group.php at line 580
Truonglv\Groups\Import\Importer\Group->importComment() in src\addons\Truonglv\Groups\Import\Importer\Group.php at line 473
Truonglv\Groups\Import\Importer\Group->stepEvents() in src\XF\Import\Runner.php at line 160
XF\Import\Runner->runStep() in src\XF\Import\Runner.php at line 74
XF\Import\Runner->run() in src\XF\Admin\Controller\Import.php at line 232
XF\Admin\Controller\Import->actionRun() in src\XF\Mvc\Dispatcher.php at line 321
XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 248
XF\Mvc\Dispatcher->dispatchFromMatch() in src\XF\Mvc\Dispatcher.php at line 100
XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 50
XF\Mvc\Dispatcher->run() in src\XF\App.php at line 2177
XF\App->run() in src\XF.php at line 390
XF::runApp() in admin.php at line 13
 

ehd

Member
I have just installed 2.0

The import ran though smoothly.

But there seems to be the problem that no post has been imported. Members are there, but every group's discussion is empty.

The import_log shows only "tl_group" and "tl_group_member"
 

ehd

Member
I've tried again, but just a very little number of posts have been imported:

Posts 235

The database shows for the 1.5 -add-on:

xfa_group_post 14563

Any idea what happened with the rest and why they haven't been imported?
 

DOA

Member
truonglv Is this able to import from 1.5 version wall posts, etc, yet? No discussions, posts or forums can be seen yet the importer says 8.000+ posts. Only the groups and members are imported.

Code:
Starting import from [Nobita] Social Groups...
- Step 1 of 9: Categories                00:00:00 [3]
- Step 2 of 9: Groups                    00:00:03 [34]
- Step 3 of 9: Members                   00:00:27 [2,224]
- Step 4 of 9: Member Roles              00:00:00 [0]
- Step 5 of 9: Events                    00:00:00 [0]
- Step 6 of 9: Comments                  00:00:02 [0]
- Step 7 of 9: Forums                    00:00:00 [0]
- Step 8 of 9: Custom Fields             00:00:00 [0]
- Step 9 of 9: Posts                     00:01:41 [8,498]
The data has been imported successfully. To finalize this import, you must continue via the control panel.
also;

Code:
Exception: [tl] Social Groups: Failed to import group cover. $errors=["Please upload an image that have at least 918x200 pixels."] $groupId=1 src/addons/Truonglv/Groups/App.php:145
Generated by: Unknown account Feb 12, 2019 at 8:55 PM
Stack trace
#0 src/addons/Truonglv/Groups/Import/Importer/Group.php(269): Truonglv\Groups\App::logError('Failed to impor...')
#1 src/addons/Truonglv/Groups/Import/Importer/Group.php(168): Truonglv\Groups\Import\Importer\Group->importGroup(Array)
#2 src/XF/Import/Runner.php(160): Truonglv\Groups\Import\Importer\Group->stepGroups(Object(XF\Import\StepState), Array, 8)
#3 src/XF/Import/Runner.php(74): XF\Import\Runner->runStep('groups', Object(XF\Import\StepState), 8)
#4 src/XF/Cli/Command/Import.php(66): XF\Import\Runner->run()
#5 src/vendor/symfony/console/Command/Command.php(255): XF\Cli\Command\Import->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 src/vendor/symfony/console/Application.php(953): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 src/vendor/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(XF\Cli\Command\Import), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 src/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 src/XF/Cli/Runner.php(63): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 cmd.php(15): XF\Cli\Runner->run()
#11 {main}
Request state
array(1) {
  ["cli"] => string(17) "cmd.php xf:import"
}
 

ehd

Member
I updated to 2.0.3, ran the importer again. Discussions are still empty.
 
Top