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
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.
Comments on attachments error
Experienced
Usergroup: Customer
Joined: Jul 29, 2005
Total Topics: 30
Total Comments: 65
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Experienced
Usergroup: Customer
Joined: Jul 29, 2005
Total Topics: 30
Total Comments: 65
Yeah It was the slash. I must have deleted it at some point. Thanks!!!