1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 vb3 import error with attachments

Discussion in 'Installation, Upgrade, and Import Support' started by ibrian, Aug 10, 2014.

  1. ibrian

    ibrian Active Member

    Firstly, confession time - I'm only running php 5.2 on the server at the moment.

    I know xenforo advise 5.4 minimum but this was only intended as a test install to explore the import process from vb3.8, and see what would be required with the overall process.

    Everything has appeared to work - except that when importing attachments, the import has stopped on a page of error messages:

    The question is, are these caused by using php 5.2 rather than 5.4?

    Or, as I suspect, is there something else at play here?
  2. Mike

    Mike XenForo Developer Staff Member

    This isn't related to PHP 5.2. It's picked up a duplicate attachment somehow. The main guess is that something fell over and the request was resubmitted. If you look in your XF DB's xf_attachment and xf_attachment_data tables, try removing the records for ID 4994 from each. It should be able to continue, though if my first hypothesis is correct, then there may be other duplicates. At that point, I would suggest removing the records from these 2 tables with ID 4994 or higher (the import step will reinsert them).
  3. ibrian

    ibrian Active Member

    Many thanks for the reply - it sounds like it might be simpler to just empty the tables for xf_attachment, xf_attachment_data, and xf_attachment_view, and see if the importer will continue the attachments from the beginning.

    Does that sound like a logical plan?

    Am trying to be careful here. :)
  4. Mike

    Mike XenForo Developer Staff Member

    The importer will pick up from where it left off, so you would lose any attachments it already imported.
  5. ibrian

    ibrian Active Member

    Emptied the tables and tried again - all ran fine.

    Many thanks for the advice - I didn't dare touch anything. :)

Share This Page