Re: SMF 2.0.8 to ElkArte
Reply #1 –
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:
$attachment_UploadDir = unserialize($attachmentdir);
$attachmentUploadDir = $attachment_UploadDir[1];
and replace them with:
$attachment_UploadDir = @unserialize($attachmentdir);
$attachmentUploadDir = !empty($attachment_UploadDir[1]) && is_array($attachment_UploadDir[1]) ? $attachment_UploadDir[1] : $attachmentdir;
that should make it work.