Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2007, 02:29 PM
jessej jessej is offline
 
Join Date: Jun 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Upload of file failed.

THIS IS POSTED AT vBulletin.com, and I have a support ticket opened, but the problem is illusive.. Any help or guidance is GREATLY appreciated!, thank you, jessej.
------------------------------------------------------------------------------------------------------------------

Many of my moderators (and now me too) have been getting this error, "Upload of file failed" when trying to upload files. These people were able to upload files before. Some are large files and some are small.

Over the last few months this problem went from one mod to 2, now to all. All of the user group options are correct.

I use the file system, and place the files in a file on my server. This has worked fine for a while also in the past. I have recently switched to a dedicated server, but this problem started on the shared server several weeks ago.

I went to the forums and searched and found this thread;
http://www.vbulletin.com/forum/showt...load+file+fail ed

I am hoping I can get the same analysis from you all on my system. I did enable phpinfo, and ran the upload diagnostics, and all showed ok.

I changed the "upload max file size" from 2mb to 8mb on the server.

I have made certain that attachment (file system file for attachments) is set to chmod777.

The comments from moderators when trying to upload files are;

"Well I tried again this morning...no go. Now instead of "upload failed" or "invalid file" it says what I posted yesterday..."not a post valid link, notify the administrator".

vBulletin Message
Invalid Post specified. If you followed a valid link, please notify the administrator


Upload of file failed. "
---------------------------

I have a support ticket opened on this. Any help is really appreciated.

I'm wondering if it can be something to do with using a file to store the attachments. Maybe I should change it to the database. Is this recommended to try, would it hurt anything to try it? It moves the files to the database and thats it, right?

also another thought, could it be any of the hacks i installed. i suppose i could disable them one by one and check that too.

hacks installed are;
ibproarcade for vBulletin - version 2.6.5
members who have visited - vers 4.4.3
members who are using flashchat - version 4.4.6
flashchat integration - version 3.55
active link security hack - vers 5.2
marquee system - vers 1.0.5

Thanks again for any light you can shed on this problem..
Reply With Quote
  #2  
Old 11-06-2007, 02:31 PM
Kalina's Avatar
Kalina Kalina is offline
 
Join Date: Mar 2005
Location: Canada
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you make sure that all the folders within the attachment's folder are also chmodded to 777?
Reply With Quote
  #3  
Old 11-06-2007, 02:40 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The sub folders of the main attachment folder does not need to be 777, only the attachment main directory needs the 777 permissions.

I would suggest that you have your server admin investigate this matter and check the apache logs.
Reply With Quote
  #4  
Old 11-06-2007, 02:45 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sub folders also need to be writable to the webserver (this will mostly mean world-writable, ie. 777).
Reply With Quote
  #5  
Old 11-06-2007, 02:47 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sub folders will automatically be given the correct permissions once vbulletin/apache adds a sub folder to the main attachment dir.

there is no need to modify the permissions of the sub folders as long as they are already there, that would indicate that the main folder already has 777 access if it wrote a sub folder.
Reply With Quote
  #6  
Old 11-06-2007, 02:59 PM
nexialys
Guest
 
Posts: n/a
Default

1- did you check if you overpass your hosting limit of storage?
2- is your php upload limit is higher than the files uploaded?
3- did you check if your host did not change the PHP permissions in specific situations? (some hosts disable chmod)
Reply With Quote
  #7  
Old 11-06-2007, 03:04 PM
jessej jessej is offline
 
Join Date: Jun 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

chmod777 on all folders. and not being sure i went in and did the chmod777 on all sub folders too. although you make a good point that the subs wouldnt write if the main wasnt 777.. but this was checked. i did change the upload max file size to 8mb .. it was at 2mb. what else? this one has us all perplexed. will check back in a bit, and thanks alof ro the replies. maybe we can crack this think wide open lol. thanks.
Reply With Quote
  #8  
Old 11-06-2007, 05:52 PM
Kalina's Avatar
Kalina Kalina is offline
 
Join Date: Mar 2005
Location: Canada
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
sub folders will automatically be given the correct permissions once vbulletin/apache adds a sub folder to the main attachment dir.

there is no need to modify the permissions of the sub folders as long as they are already there, that would indicate that the main folder already has 777 access if it wrote a sub folder.
When you move a site and can't do a proper restore and use FTP, then they do NOT get chmod at all, you have to do it yourself, I know cause I've moved many, many, many forums in the past with just ftp, I have to go into the attachments folder and chmod all the ones inside, manually.
Reply With Quote
  #9  
Old 11-06-2007, 06:29 PM
jessej jessej is offline
 
Join Date: Jun 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kalina View Post
When you move a site and can't do a proper restore and use FTP, then they do NOT get chmod at all, you have to do it yourself, I know cause I've moved many, many, many forums in the past with just ftp, I have to go into the attachments folder and chmod all the ones inside, manually.
This is a very accurate statement. This just happenned to me. Exactly what you say.. All of the child dirs, as well as the parent dir were all chmod'd 777 on the source server, and when they were ported over via FTP to the destination server, they went to 755, and I manually fixed them all. Thanks for the comments. jessej
Reply With Quote
  #10  
Old 02-26-2010, 03:57 PM
offervault offervault is offline
 
Join Date: Jan 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the same problem. vBulltein 4.0.2 PL1, fresh copy, not upgrade.

Here are my PHP settings from the Diagnostic tool :

file_uploads: On
open_basedir: None
safe_mode: Off
upload_tmp_dir: None
upload_max_filesize: 40.00 MB

Response : "No errors occurred while opening the uploaded file for reading."

But i still get the stupid red icon when i try to upload files from my computer.
If i upload files by URL it works just fine. I do not understand.

--------------- Added [DATE]1267207298[/DATE] at [TIME]1267207298[/TIME] ---------------

Found a solution for my problem. I have disabled all Ajax features and now at least my Attachments manager works.

Admin Panel -> Settings -> Options -> General Settings -> Disable AJAX Features

Quote:
Originally Posted by offervault View Post
I have the same problem. vBulltein 4.0.2 PL1, fresh copy, not upgrade.

Here are my PHP settings from the Diagnostic tool :

file_uploads: On
open_basedir: None
safe_mode: Off
upload_tmp_dir: None
upload_max_filesize: 40.00 MB

Response : "No errors occurred while opening the uploaded file for reading."

But i still get the stupid red icon when i try to upload files from my computer.
If i upload files by URL it works just fine. I do not understand.
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 09:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04314 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
  • (3)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
  • (1)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
  • (9)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