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

XF 1.4 Moved site to new server. Attachments now broken

Discussion in 'Troubleshooting and Problems' started by DGG, Nov 16, 2014.

  1. DGG

    DGG Member

    I recently moved my site to another server. I did this by copying all of my public_html folder over to new server and then exporting and importing the database over using myphpadmin.

    Everything now works exactly as before except that attachments aren't displaying and are showing up as broken images. The attachments folders (data and internal_data) were both copied over as-is, so I'm not sure why the attachments are broken.

    Can someone please suggest a fix? Thanks!
     
  2. AndyB

    AndyB Well-Known Member

    You will need to also copy the data and internal_data folders to your new server.
     
  3. Mike

    Mike XenForo Developer Staff Member

    Can you provide an example URL where it isn't working?
     
  4. DGG

    DGG Member

    Those were copied over in their entirety since I copied the entire public_html folder. I've checked and those two folders are on the new server as well, with the same exact files as from the older server.
     
  5. DGG

    DGG Member

    What's weird is that attachments aren't displaying in this thread: <removed>

    But, they are displaying properly in this thread: <removed>
     
    Last edited by a moderator: Dec 2, 2014
  6. AndyB

    AndyB Well-Known Member

    Please make sure the data and internal_data have a 777 permissions as well as the files in those folders.
     
  7. DGG

    DGG Member

    Yep, I chmod 777 those two folders right after copying all files over.
     
  8. Mike

    Mike XenForo Developer Staff Member

    If you look in the internal_data/attachments/0/ directory, what's the highest number file there? 22?
     
  9. DGG

    DGG Member

    Yes, 22.
     
  10. AndyB

    AndyB Well-Known Member

    What about the files in those two folders? Are they also 777.
     
  11. DGG

    DGG Member

    No. So files within the directories needed to be 777 as well?
    On the old site, I never had to chmod all files/folders within data and internal_data folders.
     
  12. AndyB

    AndyB Well-Known Member

    Yes.
     
  13. Mike

    Mike XenForo Developer Staff Member

    Those files are physically missing then. I'm not sure if the files were migrated before the DB. You can try recopying the files over (from data/ and internal_data/).
     
  14. DGG

    DGG Member

    Ah you solved it, thanks. Somehow the newer files (> 22) weren't copied over. I've found them and copied them over so everything now displays. Thank you Mike (and Andy)!
     

Share This Page