ElkArte Community

General => OpenImporter => Topic started by: morle800 on September 25, 2014, 04:47:20 pm

Title: SMF 2.0.8 to ElkArte
Post by: morle800 on September 25, 2014, 04:47:20 pm
hello ,
When migrating from SMF to Elk I get the following error message :

SMF is Elk installed in a subdirectory in the root . Data in a database,
Does anyone have an idea what could be the error ?
L
thx
Title: Re: SMF 2.0.8 to ElkArte
Post by: emanuele on September 27, 2014, 03:47:45 am
Sorry to mix the two topics, I posted an answer here:
http://support.elkarte-hilfe.de/index.php/topic,88.msg486.html#msg486
and now I don't have the password handy, so I answer here before I forget.

The importer doesn't take in consideration the fact that there may be just one directory.
I can't fix it *now*, but I can tell you how to fix it. In import.php find the lines:
Code: [Select]
$attachment_UploadDir = unserialize($attachmentdir);
$attachmentUploadDir = $attachment_UploadDir[1];
and replace them with:
Code: [Select]
$attachment_UploadDir = @unserialize($attachmentdir);
$attachmentUploadDir = !empty($attachment_UploadDir[1]) && is_array($attachment_UploadDir[1]) ? $attachment_UploadDir[1] : $attachmentdir;
that should make it work.
Title: Re: SMF 2.0.8 to ElkArte
Post by: morle800 on October 04, 2014, 03:52:19 pm
many thanks , open importer works
Title: Re: SMF 2.0.8 to ElkArte
Post by: emanuele on October 05, 2014, 04:30:20 am
YAY!
Now I have to remember to apply the fix.

/me keeps the topic unread
Title: Re: SMF 2.0.8 to ElkArte
Post by: emanuele on October 12, 2014, 08:25:51 am
Fix sent:
https://github.com/OpenImporter/openimporter/pull/25
and merged.