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?
have you verified the paths to them is correct in the admin panel?
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?
Did you happen to transfer the files using "Filezilla" ?
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?
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.
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 :(
[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]
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?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg153.imageshack.us%2Fimg153%2F4448%2Fattachmentspic.jpg&hash=52320c201952674211492b5ccd7a4859fad4ed94)
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?
Sounds like they may have been corrupted when you moved them over. You may have to try overwriting them.
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?
Is this issue solved or do you still require assistance?
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.
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?
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?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg703.imageshack.us%2Fimg703%2F5771%2Fattachmenterror.jpg&hash=851d6c622bdf802ac96029daed49f277274fa946)
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?
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.
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.