I know this is a bit of an old topic, but I’ve just completed a comparably sized vb4 migration and am missing a LOT of image attachments, somewhere on the order of 75% of them I’d wager. They are not tombstoned, and all the threads have been rebaked.
Has anyone else dealt with this? How should I go about recovering those images?
Yes, quite a few ‘Attachment file doesn’t exist’ errors with some ‘Couldn’t find attachment record for post.id=xxx, import_id=xxx’ sprinkled in.
The thing that has me scratching my head is that these are posts that I know have intact attachments, and that those attachments are in the ATTACHMENT_DIR global directory. The threads with missing images are missing ALL the associated images, which seems… not random.
I’m at a loss to find any common factor among the threads/posts with lost images either.
Yup. Sounds like you figured it out. Having stuff like that go wrong is far more the norm than the exception. Then you have to figure out whether to fix it in the database or fix the code to deal with your broken database.
Usual thing with any data migration, whatever script you find will never cater for all eventualities. It doesn’t help that the only time I’ve got spare to work on this seems to be late at night, (it’s a freebie for my car club). The vBulletin site is pretty heavily customised so I’ll see what other surprises come up.
I can understand that there is a script who can handle the vbulletin 4 imports but I don’t see anything in regard with all URLs being redirected to the new discourse URL format.
How do you guys handle this? What happens with all the outside links your forums have?
Thank you @RGJ , but can you explain how does this work in real life? what is this script exactly doing? it creates some kind of alias URLs (in discours) to current/correct discourse imported URLs?
How would you recommend to move an old domain on Vbulletin (www.example1.com) to a new domain on discourse (www.exmple2.com)
I think, somehow ideal it would be the old forum domain to redirect all the incoming traffic/links to the new domain based on a list of 301 rewrites. How would you recommend to make such a redirect rewrites list?
I have an issue with attachments not importing completely, similar to what has been mentioned before but the script is not putting out any errors.
The database is small (71M) and the entire import finishes in 0min 23seconds.
A majority of attachments are missing from the posts.
I ran the SQL queries on my vb4 database directly as they are in the script and they are returning the correct data, so I am not sure where the problem is at this time…
Are the missing attachments not directly linked in the posts? I believe the script pulls only the images that are mentioned in the posts, not those that are merely attached to the post.
I have a script that imports those but haven’t yet managed to submit a PR.
If you’ve got a budget, let me know. I intend to submit a version after I finish this import, but I need to remove a fair amount of code that’s just for this import, which is why it didn’t happen a year ago…