Farjo

  • "a valuable asset to the community"
  • Posts: 492
Importer tool
« on January 22nd, 2014, 03:38 AM »Last edited on January 23rd, 2014, 02:21 AM
https://github.com/Wedge/importer

I have just used it and worked on my SMF 2 installation. However there was a bit of guesswork involved so to help others here's what I had to do.

1. the 'path to smf2' must be the relative address. So if wedge is in a subfolder off of your smf install then you need to input ../ (dot dot slash). For me SMF is in public_html and wedge is another folder off the root, and I access wedge using a subdomain. So I had to put ../public_html - the dot dot slash says "take me to the folder above this one." Absolute address works fine :)

2. The importer asks for the wedge database password but it then gave me an error as it wasn't able to read the SMF database. So the other thing I had to do was to give the wedge database user permission to the SMF database.

The above is not intended for techie people who are probably grinding their teeth at such language!

Anyway it worked well and everything seems to have been imported - even an unread message I received today :)

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Importer tool
« Reply #1, on January 22nd, 2014, 07:33 AM »
Absolute path works for me. Dunno why it didn't for you.
Database permissions van be complicated to get right. Honestly, I wouldn't know why you need access to one db on another...

As a reminder, the importer tool still doesn't support avatars, attachments and media items. I'll look into it when I'm done with fixing install problems.

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: Importer tool
« Reply #2, on January 22nd, 2014, 12:45 PM »
Attachments and avatars import is fixed. Please wait till Nao pushes the PR to master.
# dpkg-reconfigure brain
error: brain is not installed or configured

Farjo

  • "a valuable asset to the community"
  • Posts: 492
Re: Importer tool
« Reply #3, on January 22nd, 2014, 01:01 PM »
I'll have another look at the path later :)

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Importer tool
« Reply #4, on January 22nd, 2014, 02:23 PM »
Pushed to the repo.

Avatar & attachment confirmed to work fine. Thanks!
Also added some translatable strings.

Now, all we need to do is import Aeva Media settings and files... (I'm sure it'll be easy. Nah, just kidding.)

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: Importer tool
« Reply #5, on January 22nd, 2014, 02:26 PM »
Gotcha!
Just a pair of minutes ago I was thinking about a poll for that :)
Should not be very hard to do.

Farjo

  • "a valuable asset to the community"
  • Posts: 492
Re: Importer tool
« Reply #6, on January 23rd, 2014, 03:27 AM »
One picky thing: the importer has a readme file with the same name as the main wedge one so when uploading the importer files it'll be overwritten.

And one thing from my specific data conversion is that we have a news item that starts with a center BB tag. The importer brings this in as center] i.e. it misses the open square bracket. This in turn mucks up the layout of the whole board.
Re: Importer tool
« Reply #7, on January 23rd, 2014, 07:01 PM »
Imported from v2.0.6 (just upgraded to 2.0.7 today).

I am travelling and this hostel's WiFi is the slowest I have encountered. So maybe there was a stutter when it came to that date due to a bad connection. I'm moving on tomorrow so let's leave it until the evening or the next day and I will re-install and run the importer again. Hopefully their WiFi will be faster!
Re: Importer tool
« Reply #8, on January 25th, 2014, 07:02 PM »
Quote from Farjo on January 23rd, 2014, 07:01 PM
I am travelling and this hostel's WiFi is the slowest I have encountered. So maybe there was a stutter when it came to that date due to a bad connection. I'm moving on tomorrow so let's leave it until the evening or the next day and I will re-install and run the importer again. Hopefully their WiFi will be faster!
I spoke too soon - this hostel's WiFi is even worse :sob: So I'll try it when I can.

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Importer tool
« Reply #9, on January 29th, 2014, 10:17 AM »
Okay, I think I'm done with the mysqli upgrade...

I'm now fighting with custom attachment folders, or something, which Pandos added support for. Unfortunately, he forgot to create said folders... :P

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: Importer tool
« Reply #10, on January 29th, 2014, 10:21 AM »
Quote from Nao on January 29th, 2014, 10:17 AM
Okay, I think I'm done with the mysqli upgrade...

I'm now fighting with custom attachment folders, which Pandos added support for. Unfortunately, he forgot to create said folders... :P
No?
why create folders, if folders are already used?
I'm using custom folders over NFS. So for that it make no sense to create new folders in wedge.
Posted: January 29th, 2014, 10:20 AM

OK, one thing: it must be copied, because of the new extension.

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Importer tool
« Reply #11, on January 29th, 2014, 10:47 AM »
For instance, attachments/p2 in my source folder is trying to be copied to attachments/p2 in the new forum, and it gives me an error message saying it doesn't exist.

I've given up on this, and committed my current work (i.e. the MySQLi conversion for Lorenzo), but feel free to give it another try. In the meantime, all I can say is: it looks like the new version is working. Phew... ;)

MultiformeIngegno

  • Posts: 1,337
Re: Importer tool
« Reply #12, on January 29th, 2014, 10:50 AM »
Yeah! Will try it this evening (unfortunately I can't do my tests during the day as I'm in university). :)

Nao

  • Dadman with a boy
  • Posts: 16,079

MultiformeIngegno

  • Posts: 1,337
Re: Importer tool
« Reply #14, on January 30th, 2014, 01:18 AM »Last edited on January 30th, 2014, 01:55 AM
Ehm... so imbarassed... I had mistyped smf database............ now the problem is that now it's 10 minutes stuck at copying smileys.

SMF and wedge folders are all 775, chwoned to www-data:www-data (which is in root group).
If can be of any help this is the url I'm at import.php?step=1&substep=9&start=24750

EDIT: I reloaded the page and I got this:

Message: Undefined property: Importer::$xml
Trace: Undefined property: Importer::$xml
Line: 528
File: /var/www/.altro/tests/import.php

 wedge.jpg - 33 kB, 518x680, viewed 283 times.