Skip to main content
Topic: SMF 1.1.20 to ElkArte (Read 10278 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: SMF 1.1.20 to ElkArte

Reply #15

Sorry, we are discussing this in the german support forum too. O:-)

It seems there are a few thousand files missing on the server. Morle will look for it later.

Re: SMF 1.1.20 to ElkArte

Reply #16

Yes, I'm obviously an idiot...
Code: [Select]
$attachmentUploadDir = !empty($attachment_UploadDir[1]) && is_array($attachment_UploadDir[1]) ? $attachment_UploadDir[1] : $attachmentdir;
should be:
Code: [Select]
$attachmentUploadDir = !empty($attachment_UploadDir[1]) && is_array($attachment_UploadDir) ? $attachment_UploadDir[1] : $attachmentdir;
in import.php.
That should work for now, though I'm not entirely sure it would work for an SMF 2.0 with multiple attachments directories... :-\

Sorry... :-[
Bugs creator.
Features destroyer.
Template killer.

Re: SMF 1.1.20 to ElkArte

Reply #17

This time the importer worked without an error. The posts are there, but all the attachments are not displayed.
Emanuele, would you  please have a look into the adminpanel?  O:-)

Maybe something can be done here?
Last Edit: October 21, 2014, 02:35:48 pm by Ruth

Re: SMF 1.1.20 to ElkArte

Reply #18

I have changed the import.php . Now I get this error

Re: SMF 1.1.20 to ElkArte

Reply #19

Okay, I found another bug in the importer.
In smf2_importer.xml, find:
Code: [Select]
			$smf_attachments_dir =  rtrim($smf_attachments_dir, '/');
and replace it with:
Code: [Select]
			$attachment_UploadDir = @unserialize($smf_attachments_dir);
if (!empty($attachment_UploadDir[1]) and is_array($attachment_UploadDir))
$smf_attachments_dir = $attachment_UploadDir[1];
Bugs creator.
Features destroyer.
Template killer.

Re: SMF 1.1.20 to ElkArte

Reply #20

Sorry for the long silence.
I have been lost messing with the OpenImporter code (you may have read about it here.
I'm still a bit far from where I'd like to go, but I'll try to fix this attachments problem this week, unless maybe @TE (that is more familiar with the OI code) has an idea.

Also, the problem as I see it from the error message is that the attachment upload dir is not unserialized, in theory the code I posted works, and it worked for me on my testing install, so I'm a bit lost at what the issue now could be... :(

If you have a testing environment I can get access to with the two databases and OI I could try to see if I missed something that is not evident on my test install.
Bugs creator.
Features destroyer.
Template killer.

Re: SMF 1.1.20 to ElkArte

Reply #21

I will test migrate my SMF 2.0.7 next week (the last, final test), if this helps?

Re: SMF 1.1.20 to ElkArte

Reply #22

Do you use attachments?
Bugs creator.
Features destroyer.
Template killer.

Re: SMF 1.1.20 to ElkArte

Reply #23

Yep. Attachments, embedded Youtube videos, image links with and without IMG BBC, all kinds of this stuff.

Re: SMF 1.1.20 to ElkArte

Reply #24

You may have problems with attachments then... :(
Bugs creator.
Features destroyer.
Template killer.

Re: SMF 1.1.20 to ElkArte

Reply #25

Hm. I thought I didn't had before on my first try. But I didn't check all the attachments. It seemed they were okay.

Re: SMF 1.1.20 to ElkArte

Reply #26

Then that is interesting...
May I ask you some more questions?

Do you have one directory?
Did you upgrade from SMF 1.x?
Could you check in the database the value of attachmentUploadDir (settings table) and tell me if it is a simple path, or it looks like
Code: [Select]
s:31:"/this/is/a/demo/serialized/path";
Thanks! :D
Bugs creator.
Features destroyer.
Template killer.

Re: SMF 1.1.20 to ElkArte

Reply #27

Attachment related errors may depend on multiple attachment directories set in SMF, not sure but I think I didn't implement that until now.. the other related issue is probably the file encryption. SMF 1.1 didn't enforce filename encryption, thus there could be a mixture of encrypted and not encrpyted files..
Sorry, I'm still busy with RL stuff  :(
Thorsten "TE" Eurich
------------------------

Re: SMF 1.1.20 to ElkArte

Reply #28


Sure!


You mean for attachments? Yes, it's only one directory.


No, this forum started with 2.0.0.

Quote from: emanuele – Could you check in the database the value of attachmentUploadDir (settings table) and tell me if it is a simple path, or it looks like
Code: [Select]
s:31:"/this/is/a/demo/serialized/path";

It's a simple path:

Code: [Select]
/www/htdocs/xyz/prius/attachments