![]() |
Please help! Attachments not showing after server move!
I am in desperate need for help! I'm not getting an answer at vb.com and I need to get my site back up and running ASAP.
My website was migrated from a shared hosting account to a VPS (same hosting company). Everything went well, but my attachments, both old and new are not showing. Same problem with album pictures, however custom avatars/signatures work fine. The file path has not changed and is still being stored outside public_html (/home/****/attachments) and I have ensured that the folder/files/sub directories are CHMOD 777. Storing attachments in the database does not solve the issue. Changing the file path, both inside and outside public_html does not solve the issue. mod_deflate is enabled on my server, however GZIP is disabled via .htaccess & vbulletin settings. (GZIP gives my site a content decoding error and I don't want GZIP enabled anyway). All modifications/plugins disabled - does not solve the issue. Debug - Nothing. show php info - Nothing. I can go through the upload process fine, but when I download zip/rar files and try to extract them to my computer I get an error (The archive is either unknown format or damaged) and images do not show up at all. I've been debugging for hours and I'm getting nowhere with this and I'm under pressure by advertisers/affiliates/users/staff to get the site back up and running. Someone please help me... |
Hmm...are newly uploaded files actually appearing in the right place, and do they look like they're the right size?
Edit: Also, when you download one of the files, is it the right size or s it small? If it's small you might try opening it with a text editor and see if it contains an error message instead of data. |
Quote:
Yep, I can confirm that they are uploading in the correct place and are the correct size. Images don't appear zip/rar files download but can't be extracted. This is the error I get: The archive is either in unknown format or damaged |
I see you have the forum closed. Is there any way I can get to the forum to see what's going on?
Also, you say zip files download but can't be opened - are the downloaded files the right size (sorry if you answered already, but from what you said I wasn't sure). |
What happens in Maintenance > Diagnostics > Upload - please post the results.
What do you have set for AdminCP > Settings > Options > Image Settings > Image Processing Library? |
Quote:
Edit: http://forum.trucksimcentral.com/showthread.php?p=829 Yes. On my computer the RAR file is 4.90KB. Uploaded on the forum it reads 4.9KB. Same with images etc. Apologies for not explaining that fully :P --------------- Added [DATE]1391020920[/DATE] at [TIME]1391020920[/TIME] --------------- Quote:
file_uploads: On open_basedir: None safe_mode: Off upload_tmp_dir: /home/trucksim/domains/forum.trucksimcentral.com/tmp upload_max_filesize: 2.00 MB No errors occurred while opening the uploaded file for reading. Image Processing Library is set to GD Thank you for replying! |
What version of PHP and MySQL are on the server? You are running 3.8.7, so you should make sure you are not running PHP5.4 or above.
|
Quote:
Edit: Mysql Version 5.1.63-0 |
Hmm, well it looks to me like the files start with 3 extra bytes, EF BB BF. When I edit the image attachment with a hex editor and delete those 3 bytes, the image works. The zip file still says it's corrupted, though. Googling EF BB BF, I find that those are bytes that are supposed to identify a file as UTF-8 encoded, but I don't know where they are coming from. Maybe someone else will know, but my next question would be, are those bytes there in the disk files? Could they have gotten corrupted in the transfer? I don't know if you have any way to check the files on the server, or to download one to your PC via another method (like ftp) and see if they look ok.
|
Quote:
I'm not sure how I would view attachment files as they end in .attach |
Quote:
Hmm, then it seems to me that would point to some kind of web server configuration issue, although I'm not sure. Hopefully someone else will know more. |
Check your config.php file and make sure you didn't save it as UTF-8 (with BOM). It needs to be edited with a plain text editor like notepad++ and it needs to be saved without the BOM!
|
Quote:
I always edit my files using FileZilla as my FTP client, which allows me to edit the files using notepad. --------------- Added [DATE]1391023948[/DATE] at [TIME]1391023948[/TIME] --------------- Quote:
|
I'm pretty sure Lynne is right though. I looked and you actually have those 3 bytes (a BOM) at the start of your forum pages, but it doesn't affect the html. But it's almost certainly because they're at the beginning of your config.php file. If you don't have a programming editor then get notepad++, edit a new copy of config.php on your PC, then upload it via ftp.
|
Quote:
|
Did you use something other than notepad? It could be that the problem is somewhere else, but I'm just making sure. It's actually one of those problems that comes up fairly regularly, but usually it's someone getting an error message that says "headers already sent".
Another thing I suppose you could do to verify that it's not a web server issue is to take one of the files, copy it under public_html somewhere, then download it directly and see if it comes through OK. |
You have a lot of odd characters on your site which would lead me to think the database wasn't transferred correctly. Did you import it using the command line? Did you make sure when you moved it to the new server, that the new server mysql was using the same collation and charset before you imported it?
|
Quote:
I can download files fine when I upload them to public_html --------------- Added [DATE]1391025670[/DATE] at [TIME]1391025670[/TIME] --------------- Quote:
I am considering uploading a back up database from last night and I've also got back up files from a few days ago which I am also considering overwriting the current files. Do you think this would make any difference? |
Quote:
|
Quote:
That seems like the last resort and I've run out of ideas now... |
I have not read this entire thread but what one thing I learned from some of the experts here is to start with the simple possibilities first. Did you check the path to your attachments directory?
Go to attachments/storage type and check the path and change to your new server if you have not checked this. |
You restored the site on this new server though, right? If your mysql is different on both servers, then restoring the backup isn't going to change things. There is something different between the two servers that is causing the issue.
Have you run Maintenance > Diagnostics > Suspect File Version? Have you turned on Show Invisible Characters when editing the text file to verify a BOM wasn't added? |
Quote:
Suspect File version brings up: class_core.php File does not contain expected contents functions.php File does not contain expected contents init.php File does not contain expected contents Replaced those files using original vBulletin files and my attachments are now working. Thank you to both yourself and kh99 for helping me with this issue! I really appreciate it :) |
I'm glad you got it working. :)
|
All times are GMT. The time now is 07:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|