Advertisement:

Author Topic: Attachments broken after upgrading  (Read 14076 times)

Offline locutusweb

  • Semi-Newbie
  • *
  • Posts: 83
Attachments broken after upgrading
« on: November 20, 2008, 03:02:54 PM »
Hi All,

After upgrading SMF to 1.1.7, a lot of the attachments are broken. The links are still there but the images are wrongly encoded? Before upgrading, I made a backup, but I see that those are not viewable with for instance irfanview. New attachments are working fine.

I am using Joomla and the Joomlahacks bridge.

Here is a link to a post with attachments: http://www.mrscloudyspride.com/component/option,com_smf/Itemid,67/topic,321.0/

I hope someone can help me out.

I fear that Filezilla broke my backup... :(

Offline locutusweb

  • Semi-Newbie
  • *
  • Posts: 83
Re: Attachments broken after upgrading
« Reply #1 on: November 21, 2008, 11:35:44 AM »
After some more investigation work I see that a lot of the attachments are distorted, but visible. The downside: all thumbs are broken. Is there a way to rebuilt those thumbs? 

Offline Rumbaar

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,805
  • Gender: Male
  • Inherent Omniscience
    • Rumbaar.net
Re: Attachments broken after upgrading
« Reply #2 on: December 01, 2008, 06:26:27 PM »
I'm not sure that the appropriate security changes made with the 1.1.7 patch which affected key areas like attachments might not be compatible with the version of Joomla you're using.

We have a section of Joomla, it's best you post in there.  I'll move this thread.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Orstio

  • Guest
Re: Attachments broken after upgrading
« Reply #3 on: December 01, 2008, 08:35:11 PM »
Are your attachments still broken if you turn off SEF in Joomla?

Offline locutusweb

  • Semi-Newbie
  • *
  • Posts: 83
Re: Attachments broken after upgrading
« Reply #4 on: December 03, 2008, 03:00:56 AM »
Yes, they are still broken with SEF turned off. They are also broken when I don't use the bridge...

Offline Rumbaar

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,805
  • Gender: Male
  • Inherent Omniscience
    • Rumbaar.net
Re: Attachments broken after upgrading
« Reply #5 on: December 03, 2008, 05:52:50 AM »
Are the attachments physically still on the server?  If you access them directly do that load as normal?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Offline locutusweb

  • Semi-Newbie
  • *
  • Posts: 83
Re: Attachments broken after upgrading
« Reply #6 on: December 03, 2008, 09:04:00 AM »
The images are still on the server; if I open them, some of them have big beams in green or blue. Looks like they are really broken.  :'(

Offline Rumbaar

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,805
  • Gender: Male
  • Inherent Omniscience
    • Rumbaar.net
Re: Attachments broken after upgrading
« Reply #7 on: December 03, 2008, 03:57:28 PM »
Yeah I think the corruption is server side.  If you can't view them correctly when downloaded directly from the server.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Offline locutusweb

  • Semi-Newbie
  • *
  • Posts: 83
Re: Attachments broken after upgrading
« Reply #8 on: December 04, 2008, 02:35:43 AM »
Also downloaded files are corrupt :(

I suspect a bad FTP connection while uploading....

Offline Rumbaar

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,805
  • Gender: Male
  • Inherent Omniscience
    • Rumbaar.net
Re: Attachments broken after upgrading
« Reply #9 on: December 04, 2008, 04:07:08 AM »
That could do it, are you sure your host has done nothing as well?

So I guess it's a problem not related to SMF, so I'll mark it as solved.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Offline Spovik

  • Semi-Newbie
  • *
  • Posts: 11
Re: Attachments broken after upgrading
« Reply #10 on: July 26, 2009, 01:56:52 AM »
Sorry for digging up an old topic, but since this came up for me in the search engine, I thought it may help someone else.  The issue with the attachment move was that it appears FTP programs default these file to transfer as ASCII rather than Binary.  You'll notice file sizes are a few bytes off.

By manually selecting binary transfer, I was able to successfully move my attachments without issue.