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 05-12-2005, 12:13 AM
eplus_revenge eplus_revenge is offline
 
Join Date: May 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Upload Attachment Issue.

I get these error whenever trying to upload a new attachment..
Quote:
Warning: move_uploaded_file(/path/to/your/attachment/directory/88e7cefd87bdfeea948f173035fe2d26): failed to open stream: No such file or directory in /includes/functions_file.php on line 274

Warning: move_uploaded_file(): Unable to move '/tmp/phpWhNWHL' to '/path/to/your/attachment/directory/88e7cefd87bdfeea948f173035fe2d26' in /includes/functions_file.php on line 274

Warning: filesize(): Stat failed for /path/to/your/attachment/directory/88e7cefd87bdfeea948f173035fe2d26 (errno=2 - No such file or directory) in /includes/functions_file.php on line 286
(If anyone wants to see my functions_file.php ask
Reply With Quote
  #2  
Old 05-12-2005, 02:23 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

check the directory's permissions. You need to be able to write to it.

Also, make sure the path is correct. If the error message you are posting is exact, then you never set the proper path.
Reply With Quote
  #3  
Old 05-12-2005, 02:45 AM
shiva shiva is offline
 
Join Date: Apr 2002
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the same problem after a server move. Folders reset in my Attachments from 777 to 755, so you will have to chmod them all if wrong. They also changed the root path on me as well
After you check your attachments folders, and you are unsure about the folder root, I attached a simple php file that will show you the path in what ever folder you place it in. Check it with the path you have already set.
If they match, then it's more than likely that the ATTACHMENT path is wrong. (Yeap, there are 2, I didn't know this until I had the same problem)
You will have to change the path in MySQL.

(from http://www.vbulletin.com/forum/showp...69&postcount=2)
Go to the 'setting' table of your forum database

Change the value for 'attachfile' to '2' (That means you are storing files in your directory, and not the database)

Set the 'attachpath' to '/your/dir/here'

What you will need to do now is go to your admincp and open the options and press save, this will add your settings correctly.

This worked for me, so may work for you as well.
Attached Files
File Type: php forumpath.php (325 Bytes, 16 views)
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 03:24 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.03390 seconds
  • Memory Usage 2,196KB
  • Queries Executed 14 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete