vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Upload Attachment Issue. (https://vborg.vbsupport.ru/showthread.php?t=81346)

eplus_revenge 05-12-2005 12:13 AM

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 ;)

amykhar 05-12-2005 02:23 AM

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.

shiva 05-12-2005 02:45 AM

1 Attachment(s)
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.


All times are GMT. The time now is 04:45 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.00955 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete