Webmastersite.net
Register Log In

attachments error

Comments on attachments error

rw
Experienced

Usergroup: Customer
Joined: Jul 29, 2005

Total Topics: 30
Total Comments: 65
rw
Posted Jan 09, 2007 - 6:20 AM:

Hi,

When uploading image to attachments I get the following error on php5 machine. On php4 it works fine.

Warning: move_uploaded_file(home/wsn/public_html/attachments/butterfly.gif) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/wsn/public_html/filefunctions.php on line 140

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/usr/local/lib/php/uploadtemp/phpDaDPCB' to 'home/wsn/public_html/attachments/butterfly.gif' in /home/wsn/public_html/filefunctions.php on line 140
FillParent#: 0 number: 23

Thanks,
rw

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 09, 2007 - 5:31 PM:

You don't have permissions -- either you have the wrong file path (which seems likely if you have no leading / in it as you show there) or the attachments directory isn't 777.

PHP 5.2.0 is not compatible with WSN Links 3.x, but I'll presume you're on PHP 5.1 since you haven't said.
rw
Experienced

Usergroup: Customer
Joined: Jul 29, 2005

Total Topics: 30
Total Comments: 65
rw
Posted Jan 09, 2007 - 6:28 PM:

Yeah It was the slash. I must have deleted it at some point. Thanks!!!
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.