PDA

View Full Version : Error editing/managing attachment


solidlink
11-22-2009, 02:15 PM
Warning: fopen(/home/whysg/domains/whysg.com/public_html/tmp/vbupload16356) [function.fopen]: failed to open stream: Permission denied in [path]/includes/class_upload.php on line 287

Upload Errors
http://i397.photobucket.com/albums/pp53/onestash/wii2-1.jpg:
Upload failed due to failure writing temporary file.
---------------------------

I got this error. Can someone please help ? I know it has to do with setting a folder writable? However I do not know which folder should I set as writable?

I "duplicated" this site from another VB website (although I have 2 valid licenses) and currently Im trying to get a mod (frontpage slideshow) to work. Can someone please help?Thanks.

--------------- Added 1258906840 at 1258906840 ---------------

Warning: move_uploaded_file(/home/whysg/domains/whysg.com/public_html/tmp/5bb8880eea8675aa350ea3b265b74c3f) [function.move-uploaded-file]: failed to open stream: Permission denied in [path]/includes/class_upload.php on line 376

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpKv8xcf' to '/home/whysg/domains/whysg.com/public_html/tmp/5bb8880eea8675aa350ea3b265b74c3f' in [path]/includes/class_upload.php on line 376

--------------------------

I got the above error when I tried to upload a picture from my computer instead of uploading from photobucket.

snakes1100
11-22-2009, 03:17 PM
chmod /tmp in your public_html folder to 777

solidlink
11-22-2009, 03:48 PM
Yes I know... but this was what happened when i tried to upload pictures after i chmod to 777

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/gavin/domains/wirebooth.com/public_html/forums/attachment/1) is not within the allowed path(s): (/home/whysg/:/tmp:/usr/local/lib/php/) in [path]/includes/functions_file.php on line 60

snakes1100
11-22-2009, 04:04 PM
Click the link in my signature related to fixing open_basedir restrictions, leave tmp 777 fro mthis point on.

You also didnt post that error in your 1st post, you should of posted you already tried chmoding it to 777

solidlink
11-22-2009, 11:36 PM
actually i duplicated this site from another site. but thats besides the point coz i have 2 licenses. wonder if this is the root of the problem?

--------------- Added 1258940503 at 1258940503 ---------------

now i got this error

Warning: fopen() [function.fopen]: open_basedir restriction in effect. File(/home/forums/tmp/vbupload10423) is not within the allowed path(s): (/home/whysg/:/tmp:/usr/local/lib/php/) in [path]/includes/class_upload.php on line 287

Warning: fopen(/home/forums/tmp/vbupload10423) [function.fopen]: failed to open stream: Operation not permitted in [path]/includes/class_upload.php on line 287

--------------- Added 1258940786 at 1258940786 ---------------

after changing to the full path i get this

Warning: move_uploaded_file(/domains/whysg.com/public_html/forums/tmp/154a6ad92aa4cf7c37c9d5b4b7a3b631) [function.move-uploaded-file]: failed to open stream: No such file or directory in [path]/includes/class_upload.php on line 376

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpCBqpBK' to '/domains/whysg.com/public_html/forums/tmp/154a6ad92aa4cf7c37c9d5b4b7a3b631' in [path]/includes/class_upload.php on line 376

ChopSuey
11-23-2009, 01:48 AM
I thought there was already a tmp folder?
/home/tmp ??

solidlink
11-23-2009, 06:20 AM
hmm i still cant fix the problem, got this error

Warning: move_uploaded_file(/domains/whysg.com/public_html/tmp/49eb03865175115a18b0229aa02d9422) [function.move-uploaded-file]: failed to open stream: No such file or directory in [path]/includes/class_upload.php on line 376

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php8fWpWt' to '/domains/whysg.com/public_html/tmp/49eb03865175115a18b0229aa02d9422' in [path]/includes/class_upload.php on line 376

ChopSuey
11-23-2009, 10:07 PM
You storing attachments to the db?

nuvar
11-23-2009, 11:27 PM
hmm... are you saying my configurations for the database is wrong? oops, im using 2 usernames..

ChopSuey
11-24-2009, 06:37 AM
What exactly are your attachment settings?
AdminCP> Attachments

nuvar
11-25-2009, 12:26 AM
I had a look through, all are set to "Yes"

ChopSuey
11-25-2009, 12:46 AM
No lol, where are your attachments being stored? Database or file system?
AdminCP > Attachments > Attachment Storage Type

nuvar
11-25-2009, 08:04 AM
"Move Items from File System into Database"

This is the selected option

ChopSuey
11-25-2009, 09:06 AM
Where are your attachments being stored? Whats the path?

nuvar
11-25-2009, 01:26 PM
aww my i've fixed the problem........ thanks chopsuey! :D