News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Problem with attachments and avatars after site transfer?

Started by babyfiats, November 29, 2010, 01:15:57 PM

Previous topic - Next topic

babyfiats

I have just transferred my forum board smf 1.1.12 to another hosting company. Everything is working ok except for the avatars and attachments. I backed up the old attachment and avatar folders and uploaded them to the new server, but they still dont work.
Any ideas please?

Illori

have you verified the paths to them is correct in the admin panel?

babyfiats

Quote from: Illori on November 29, 2010, 01:21:27 PM
have you verified the paths to them is correct in the admin panel?
where in the admin panel are the paths located? I ran the repair_settings.php fix which changed a few of the settings, but I still have a problem?

Paul_Pauline

Did you happen to transfer the files using "Filezilla" ?
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

babyfiats

Quote from: Paul_Pauline on November 29, 2010, 02:21:25 PM
Did you happen to transfer the files using "Filezilla" ?
yes I did use filezilla, are there issues with filezilla?

Antechinus

Quote from: babyfiats on November 29, 2010, 01:38:27 PM
Quote from: Illori on November 29, 2010, 01:21:27 PM
have you verified the paths to them is correct in the admin panel?
where in the admin panel are the paths located? I ran the repair_settings.php fix which changed a few of the settings, but I still have a problem?
Admin > Attachments and Avatar Settings. You may also want to check the path for the Smileys directory. I've often had to set these manually for 1.1.x after shifting things around.

Paul_Pauline

Hopefully it is just a paths issue  O:)

I use Filezilla myself and it has never let me down  ............

However, you have to change the file transfer type default setting, from  "Auto"  to   "Binary"  or you can end up with corrupt image files   :(
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

Antechinus

[off-topic]

I've always left FileZilla on auto and have never had any problems with images. No idea why as I know the problem affects some people.

[/off-topic]

babyfiats

#8
I am still having problems.

My path on attachments  is:
/var/www/vhosts/club126uk.co.uk/httpdocs/smf/attachments

I dont know if this correct?
ftp path is
httpdocs/smf/attachments

The other thing is the contents of my backup attachment folder does not contain .jpg extensions

A screen grab of my attachment folder below, are they supposed to be jpg files?



babyfiats

another point

When using the new board, there is no problem adding picture attachments or avatars, so I guess this indicates that the paths are correct on the new board.

The problem is that the old backup files from the attachment folder will not display on the new board.

Any one help please?

Antechinus

Sounds like they may have been corrupted when you moved them over. You may have to try overwriting them.

babyfiats

Quote from: Antechinus on November 30, 2010, 12:45:21 AM
Sounds like they may have been corrupted when you moved them over. You may have to try overwriting them.
I have downloaded the attachment directory again using a different ftp client ws_ftp used binary mode. Deleted the attachment folder on the new server and uploaded the new attachment folder, still the same problem.

Any other ideas please?

JimM

Is this issue solved or do you still require assistance?
Jim "JimM" Moore
Former Support Specialist

babyfiats

Quote from: JimM on December 18, 2010, 07:28:21 PM
Is this issue solved or do you still require assistance?

Unfortunately I never found a fix. I tried all the suggestions but nothing worked. It appears that I am not alone with this problem going by recent similar support requests.

Kays

Hi, that is normal for there to be no file extension. If you add a file extension to one of the downloaded files, will it open?

That name format is what was used prior to 1.1.9 if you had "File Encryption" enabled. Are you able to view any recently uploaded files?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

babyfiats

Quote from: Kays on December 19, 2010, 11:37:01 AM
Hi, that is normal for there to be no file extension. If you add a file extension to one of the downloaded files, will it open?
That name format is what was used prior to 1.1.9 if you had "File Encryption" enabled. Are you able to view any recently uploaded files?

adding a file extension to the attachment file name i.e .jpg makes the file open (with my picture viewer program),  I have tried adding the .jpg extension to the files in the attachment folder and it makes no difference, the attachments are still not visible.
Just get the paper clip icon on the attachments, if you click on the paper clip I get a 404 error Attachment not found.

I can view all recent attachments uploads. It's just the old attachments from a server transfer that are causing the problem. I am not sure what you are reffering to with 'file encryption' enabled?


Kays

That's good news. At least they aren't corrupt.

Prior to 1.1.9 there was the option to encrypt the file names. But that got removed and all files are now encrypted. However using a different format. The file names are no longer shown and the hash used is longer. I'm suspecting that it's not recognising the older files properly. Hence not displaying them. But I need to look at the code to see how that works. Originally it used the settings variable for that.

Can you see them in the Admin CP > Attachments and Avatars > Browse files?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

babyfiats

Just checked the Attachments and Avatars > Browse files option.

All of the attachments are there, some of these attachments files will open ok, also checked the posts for these working attachments and they are visible on the threads.
However... The majority of the attachments in the browse file option will not open, I get the same error as before - 404 error Attachment not found.

Kays

There seems to be something messed up when the paths are put together. But the code seems normal.

Were you using SMF 1.1.12 on the old host and did things work properly then?

Any errors in the error log?

Using phpMyAdmin, check the Attachments folder. For the first image id #1 Berlin.jpg. Is there a value in the file_hash column? There shouldn't be.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: