vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Uploading Attachments or Avatar problem (https://vborg.vbsupport.ru/showthread.php?t=40992)

VeRT3X 07-12-2002 07:39 PM

Uploading Attachments or Avatar problem
 
I am doing coding and design for a client and when trying to upload an attachment (jpg image) or an avatar (gif image) it comes up with this error:

Quote:

"The uploaded file is not a valid GIF or JPG file. Please ensure that it is and try again."
when clearly its a JPG, under the size restriction and doesnt work for any image files.

When uploading a ZIP file or a TXT file like i tried it gives an error at the top saying that there is something wrong with functions.php with this message:

Quote:

Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/clientforum.url.here/httpdocs/admin/functions.php on line 1719

Warning: fopen("/tmp/php63LiUG","rb") - Operation not permitted in /usr/local/psa/home/vhosts/clientforum.url.here/httpdocs/admin/functions.php on line 1719

Warning: Supplied argument is not a valid File-Handle resource in /usr/local/psa/home/vhosts/clientforum.url.here/httpdocs/admin/functions.php on line 1720

Warning: Supplied argument is not a valid File-Handle resource in /usr/local/psa/home/vhosts/clientforum.url.here/httpdocs/admin/functions.php on line 1721
I edited the forum url since it is private until release, he is using Plesk control panel (if that matters). Please help, Thank you.

Admin 07-13-2002 07:03 AM

You need to enable safe mode uploading in the vBulleitn options.

InnerSelf 02-20-2003 07:04 AM

i had exactly the same problem with the upload.

now i did that safe mode on, and i made a dir on the server with chmod 777. but still i get errors (other ones as before)

Code:

Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/dragon.****.net/httpdocs/board/admin/functions.php on line 1737

Warning: stat failed for /images/attach/temp/vbaa788fe4b (errno=2 - No such file or directory) in /usr/local/psa/home/vhosts/dragon.****.net/httpdocs/board/admin/functions.php on line 1741


the 1737 line is this: move_uploaded_file($attachment, "$path");
and
the 1741 line is this: $filesize=filesize($attachment);

any help is welcome!!!


All times are GMT. The time now is 11:23 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.00931 seconds
  • Memory Usage 1,725KB
  • 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_code_printable
  • (2)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