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

Fixed 'Import Attatched Files' error

Discussion in 'Resolved Bug Reports' started by Lone Wolf, Jul 30, 2013.

  1. Lone Wolf

    Lone Wolf Well-Known Member

    I'm currently importing from vb 3.7 on the new XF 1.2 install and I get the following error when trying to 'Import Attatched Files'

    Fatal error: Call to undefined method XenForo_Model_Import::_importAttachment() in/home/site/public_html/ver3/library/XenForo/Model/Import.php on line 1906
     
  2. Tarion

    Tarion Member

    i think the attachment has to be in the database not in the filesystem.
     
  3. Mike

    Mike XenForo Developer Staff Member

    Easy fix. In XenForo\Model\Import.php, look for "_importAttachment" and replace it with "importAttachment" (remove the underscore).
     
    aculate and BamaStangGuy like this.
  4. Mike

    Mike XenForo Developer Staff Member

    Note that I've now updated the package with this fix as it basically applied to all importers.
     
    Alien, aculate, Jeremy and 3 others like this.
  5. Lone Wolf

    Lone Wolf Well-Known Member

    Thanks Mike, are you a ninja in your spare time?
     
  6. Mike

    Mike XenForo Developer Staff Member

    No, it's my day job. ;)
     
    Jeremy, shenmuee, Andrej and 5 others like this.
  7. jdeg

    jdeg Active Member

    Thanks Mike - I was getting this too
     

Share This Page