Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2014, 04:13 PM
MylesM MylesM is offline
 
Join Date: Aug 2009
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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...
Reply With Quote
  #2  
Old 01-29-2014, 05:07 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-29-2014, 05:23 PM
MylesM MylesM is offline
 
Join Date: Aug 2009
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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.
Thank you for the reply.

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
Reply With Quote
  #4  
Old 01-29-2014, 05:34 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #5  
Old 01-29-2014, 05:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What happens in Maintenance > Diagnostics > Upload - please post the results.

What do you have set for AdminCP > Settings > Options > Image Settings > Image Processing Library?
Reply With Quote
  #6  
Old 01-29-2014, 05:40 PM
MylesM MylesM is offline
 
Join Date: Aug 2009
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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).
Yep, I'll open the forums up so you can take a look. I'll put a test thread up also so you can see what I mean.

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:
Originally Posted by Lynne View Post
What happens in Maintenance > Diagnostics > Upload - please post the results.

What do you have set for AdminCP > Settings > Options > Image Settings > Image Processing Library?
Diagnostics are all fine:

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!
Reply With Quote
  #7  
Old 01-29-2014, 05:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 01-29-2014, 05:58 PM
MylesM MylesM is offline
 
Join Date: Aug 2009
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Hi, currently running PHP Version 5.3.3-7

Edit: Mysql Version 5.1.63-0
Reply With Quote
  #9  
Old 01-29-2014, 06:10 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 01-29-2014, 06:16 PM
MylesM MylesM is offline
 
Join Date: Aug 2009
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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.
As album pictures are also not working, but I can download the image via FTP as I have them stored in the file system - they look fine to me.

I'm not sure how I would view attachment files as they end in .attach
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04217 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete