WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Attachments not uploading

Version: 3.12
printPrint


Attachments not uploading
pablo
Beginner

Usergroup: Member
Joined: Jan 30, 2003
Total Topics: 2
Total Posts: 3
0 of 1 people found this post helpful
Posted 10/17/04 - 07:52 PM:

quote post
#1
Strangely, only some attachments (old attachments that have been around since before my upgrade) are no longer displaying along with their respective links, while most others still display fine. I figured they must have gotten corrupted somehow since the attachment files associated with these links were indeed still in the attachments directory and weren't accidentally deleted. So I went to reupload (edit link, browse and reupload), and I get the following errors on upload:

Warning: fopen(html//cat309.htm): failed to open stream: No such file or directory in /.../filefunctions.php on line 148

Warning: fwrite(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 149

Warning: fwrite(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 150

Warning: fclose(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 151

Warning: fopen(html///cat105.htm): failed to open stream: No such file or directory in /.../filefunctions.php on line 148

Warning: fwrite(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 149

Warning: fwrite(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 150

Warning: fclose(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 151

Warning: fopen(html////link217.htm): failed to open stream: No such file or directory in /.../filefunctions.php on line 148

Warning: fwrite(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 149

Warning: fwrite(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 150

Warning: fclose(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 151

Warning: fopen(html/////comments217.htm): failed to open stream: No such file or directory in /.../filefunctions.php on line 148

Warning: fwrite(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 149

Warning: fwrite(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 150

Warning: fclose(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 151

Warning: move_uploaded_file(/.../attachments/bc25f2729ac8ea231e284869e92e6670.jpg): failed to open stream: Permission denied in /.../functions.php on line 401

Warning: move_uploaded_file(): Unable to move '/tmp/phplVT023' to '/.../attachments/bc25f2729ac8ea231e284869e92e6670.jpg' in /.../functions.php on line 401

I've tried chmoding attachments directory to 755 and 777, as well as reuploading download.php and filefunctions.php, to no avail.


Edit:

Hi again

I now see that I am getting similar fopen errors when I edit a link, validate a link, and probably other things.

This is a recent phenomenon ... I wasn't getting these errors immediately after upgrade, but I don't recall changing any switches/settings. The last thing I remember doing before seeing these errors was run the 'unused attachments' function, but only in 'list' mode and not auto-delete.

The type of errors I get on having just validated a link


Warning: fwrite(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 150

Warning: fclose(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 151

Warning: fopen(../html/cat132-2.htm): failed to open stream: No such file or directory in /.../filefunctions.php on line 148

Warning: fwrite(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 149

Warning: fwrite(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 150

Warning: fclose(): supplied argument is not a valid stream resource in /.../filefunctions.php on line 151

etc.


Can you help direct me to where I should look to correct this?




Edited by pablo on 10/18/04 - 01:55 PM

http://www.paulpolitis.com
http://art-and-photography.com
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6175
Posted 10/18/04 - 09:28 PM:
quote post
#2
Your static HTML page generation is not working, either due to an incorrect path or lack of permission. Actually it looks like you don't have a path, as far as I can tell.

In among all those HTML generation errors there is the one attachment related item:
Warning: move_uploaded_file(/.../attachments/bc25f2729ac8ea231e284869e92e6670.jpg): failed to open stream: Permission denied in /.../functions.php on line 401

Clearly, /.../attachments is a nonsense path therefore it can't move the file there. You're prefixing a /. or something probably with your file path setting.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.