(2010-09-28, 07:57 PM)CaptOblivious Wrote: [ -> ]What about the post ID issue, wherein attachments get attached to the wrong post? I tried tracing the functions responsible for determining the new post ID from the old post ID, but there's a lot going on in there for me to follow. Is there anything I can do to help debug this issue?
I can confirm this problem as it happens with my install as well. I get a bunch of errors during attachement import and afterwards images are attached to the wrong posts.
Warning [2] mime_content_type(): File or path not found 'jpg' - Line: 130 - File: convert/boards/smf/attachments.php PHP 5.3.2-1ubuntu4.5 (Linux)
File Line Function
[PHP] errorHandler->error
/convert/boards/smf/attachments.php 130 mime_content_type
/convert/resources/modules/attachments.php 39 SMF_Converter_Module_Attachments->convert_data
/convert/boards/smf/attachments.php 105 Converter_Module_Attachments->insert
/convert/index.php 970 SMF_Converter_Module_Attachments->import
I tried out the latest svn from the stable-1.6 tree (yes this time I used all files :-)). Dylan already asked me for db access, so maybe he can squash this bug as well while having a visit.
And yes, my db is ancient as well, so it has both types of attachment file name conventions in there as well, might be part of the problem.
I tried the merge with default prefilled settings, so during the attachment part, the merger suggest the absolute filesystem path to my old attachment directory (without a / at the end) and I accepted that without any change and got the above described problems.
There is also a bug in the imported access rights of (at least) guests/aka no users, but I guess this has to go somewhere else.
ok, just compared my old and new attachment directory. 59 files made it over, out from 1628. Can't really say what makes these 59 so special to actually make it compared to the others.
interesting enough the mybb attachment table in the db has
Showing rows 0 - 99 (1,313 total, Query took 0.0016 sec)
entries.
which btw include entries pointing to avatar pictures and I thought you mentioned them not being migrated at all?
digging a bit more it seems to me this here is wrong, check out the attachment name row. I take it this should be the filename the forum uses for the attachment right? But then this shouldnt have the same name?
[
attachment=20083]
SELECT DISTINCT attachname
FROM
mybb_attachments
gives me
Showing rows 0 - 70 (71 total, Query took 0.0210 sec)
at least thats a lot closer to 59 then to 1313, but still odd.