Advertisement:

Author Topic: Host migration, attachments not displaying  (Read 201 times)

Offline Blade~

  • Semi-Newbie
  • *
  • Posts: 47
  • Gender: Male
    • FilmWorkshop.net
Host migration, attachments not displaying
« on: September 11, 2019, 11:03:45 PM »
Hi all ...

We moved to a different host, all is well, EXCEPT attachments such as images and avatars are only showing the broken image icon. I set the new paths in settings but still no attachments are showing and if I click on any of the links below them they show me a distorted image or nothing at all - example below ... :( . If I look at the attachments folder on the server I see a bunch of files with a number then a long hex code. Is this how they supposed to be or something is messed up here?
Blade~

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,505
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Host migration, attachments not displaying
« Reply #1 on: September 11, 2019, 11:06:00 PM »
When you moved the files from your old host to the new host. Make sure in ftp you set the transfer mode to binary and not ascii
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,543
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Host migration, attachments not displaying
« Reply #2 on: September 11, 2019, 11:07:27 PM »
How were the files transferred? Some FTP clients (namely Filezilla) tend to break them because they assume ASCII transfer for files without filetype in their name, and need to be forced to used Binary mode.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Blade~

  • Semi-Newbie
  • *
  • Posts: 47
  • Gender: Male
    • FilmWorkshop.net
Re: Host migration, attachments not displaying
« Reply #3 on: September 11, 2019, 11:22:25 PM »
Just checked the backed up files on my laptop and the images are good there. If I add a .jpg extension to any of the files it displays the image correctly. Should I just upload these again to the new attachments folder with binary set ... yes I am using Filezilla.
Blade~

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,543
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Host migration, attachments not displaying
« Reply #4 on: September 11, 2019, 11:23:39 PM »
Just checked the backed up files on my laptop and the images are good there. If I add a .jpg extension to any of the files it displays the image correctly. Should I just upload these again to the new attachments folder with binary set ... yes I am using Filezilla.
Yes, do try that - should solve the issue :)
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Blade~

  • Semi-Newbie
  • *
  • Posts: 47
  • Gender: Male
    • FilmWorkshop.net
Re: Host migration, attachments not displaying
« Reply #5 on: September 11, 2019, 11:30:33 PM »
Great! That did it! Thank you for the quick help ... :)
Blade~

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,543
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Host migration, attachments not displaying
« Reply #6 on: September 11, 2019, 11:31:59 PM »
Glad you got it sorted :)
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas