Skip to main content
Topic: OpenImporter (Read 59351 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: OpenImporter

Reply #165

LOL

Neither did I, that's why I decided to play with it. :P
Bugs creator.
Features destroyer.
Template killer.

Re: OpenImporter

Reply #166

https://github.com/emanuele45/openimporter/compare/moar...emanuele45:phar2

Instead of tons of files, a phar archive, but instead of two files (a phar and a php that runs the phar, only a php that writes the phar and runs it. 8)
Rather cool except for the usual problems coming from permissions, but... who cares! :P
Bugs creator.
Features destroyer.
Template killer.

Re: OpenImporter

Reply #167

I just remember that the phar file did not worked in my case so I used the normal importer. I hope this is better for you developers to maintain the importer.

Keep up the good work guys ;)  and greetings from adriatic sea ;)
sorry for my bad english

Re: OpenImporter

Reply #168

phar-out baby :P

Re: OpenImporter

Reply #169

Yeah, I remember your problem with phar, but I've never been sure it was a problem with the "phar" itself or a but somewhere. I just blamed phar because it seemed the thing.

Phar are (in theory) more for "end-user" convenience, with a phar archive you have to upload one or two files, instead of... something around 500 of the "normal" application.
If the "single file" version I built demonstrates to be a viable solition, it is 1 file of 520 KiB, instead the original "expanded" directory are 496 files and 2.8 MiB (both after removing all the tests and part of the readme/licences files).
From a "dev" point of view, anyway, the phar looks much cleaner than a bunch of files in a directory. 8)
Bugs creator.
Features destroyer.
Template killer.

Re: OpenImporter

Reply #170

I downloaded the importer from http://openimporter.github.io/openimporter/
I used the same user for both database, but when I start the importer I get this:
I controlled in cpanel and that user has all the privileges for both databases

Code: [Select]
Sorry, the database connection information used in the specified installation of your forum cannot access the installation of SMF 2.0. This may either mean that the installation doesn't exist, or that the MySQL account used does not have permissions to access it.

The error MySQL gave was: SELECT command denied to user 'XX_xx'@'localhost' for table 'smf_members''
error_line 353
error_file /home/....domain.it/importer/OpenImporter/Importer.php

p.s. I also tried installing elkarte in the same database, but same result
Am I missing something? Thank you in advance
Last Edit: May 19, 2015, 06:55:37 pm by radu81
sorry for my bad english

Re: OpenImporter

Reply #171

Could you try the one attached to the first message of this topic?
Bugs creator.
Features destroyer.
Template killer.

Re: OpenImporter

Reply #172

I tried, the importer starts but I am stuck on this:

Code: [Select]
Unsuccessful!
This query:
An exception occurred while executing '
SHOW COLUMNS
FROM [icode]xxx_sharkracingclub[/icode].smf_likes;':

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xxx_sharkracingclub.smf_likes' doesn't exist;
Caused the error:
Table 'xxx_sharkracingclub.smf_likes' doesn't exist

Line: 151
File: /home/.../importer/OpenImporter/Database.php

I set the importer to import only from thank-o-matic mod and not the other Likes mods

***edit***
I tried without importing from thank-omatic and I was able to complete the migration
Last Edit: May 20, 2015, 05:30:13 am by radu81
sorry for my bad english

Re: OpenImporter

Reply #173

Ouch!
There is something broken in the logic of the likes conversion.
I'll have a look this afternoon. ;)

Ohhh yes, I see. I'm an idiot.
I'll fix it this afternoon. :(
Bugs creator.
Features destroyer.
Template killer.

Re: OpenImporter

Reply #174

I have some problems testing it right now (i.e. I'm in the middle of some work and can't stop to setup everything needed... :-[), would you mind replacing the file Importers/sources/SMF2_0_Importer.php with the one attached?
It should fix the importing from the Thank you mod.

The problem was that, while redesign the importer, I overlooked the fact some code was executed even if it was not supposed to be. :-[
Bugs creator.
Features destroyer.
Template killer.

 

Re: OpenImporter

Reply #175

Thank you Emanuele. That worked, the "thank-you" data was corrected imported even if I got a notice
Notice: Undefined variable: table in /home/../Importers/sources/SMF2_0_Importer.php on line 130
Importing likes from Thank you mod... ✔

Notice: Undefined variable: table in /home/.../Importers/sources/SMF2_0_Importer.php on line 130
Recalculating statistics...

There is another issue: the category boards were not imported, I have all my boards into one category named "General Category"

p.s. there is no hurry for me, I am only doing some tests ;)
Last Edit: May 20, 2015, 08:23:15 am by radu81
sorry for my bad english

Re: OpenImporter

Reply #176

Hi there,

I`m trying to migrate my forum from mybb 1.8.5 to ElkArte using the open importer

when I try to do so I get the following fatal error:

Fatal error: Call to a member function query() on null in /xxx/importer/OpenImporter/Importer.php on line 475

please help ;)

Re: OpenImporter

Reply #177

Hi and welcome to Elk. :)

Ouch, that looks like a bug... will check.
In the meantime, could you try the zip file attached to the first message of this topic?
Bugs creator.
Features destroyer.
Template killer.

Re: OpenImporter

Reply #178

thanks,

sure I will try.

Re: OpenImporter

Reply #179

ok, the zip file works for me (some DB issues).

Thanks for your help.
Last Edit: June 19, 2015, 05:38:00 am by Ohhnow