Page 1 of 1

ISP modified PHP tmp directory - now can't upload images

Posted: Mon Sep 17, 2007 7:30 pm
by digitalfilm
This is WAY over my head, but my ISP (who does a great job by the way) moved the php tmp file somehow and now I'm getting these errors. Can anyone interpret them for me? Is this something I can fix or does it require root access?

------
Warning: move_uploaded_file(/usr/www/users/mh8020/uploads/ActivityOwner.gif) [function.move-uploaded-file]: failed to open stream: Permission denied in /usr/www/users/mh8020/include/admin/images.inc.php on line 299

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/usr/tmp/phpi2ePUc' to '/usr/www/users/mh8020/uploads/ActivityOwner.gif' in /usr/www/users/mh8020/include/admin/images.inc.php on line 299
Unknown error occurred, file not uploaded. Maybe your filesize is larger than the maximum size allowed by your server installation. Check with your ISP or edit your php.ini file to allow larger file size uploads.

---

thanks

Re: ISP modified PHP tmp directory - now can't upload images

Posted: Mon Sep 17, 2007 7:36 pm
by garvinhicking
Hi!

Only your ISP can fix that by adjusting thepermission setup of the TMP dir and your user direcctory.

The error says, that your PHP account has no write (and maybe even no read) privilege to /usr/tmp/.

Regards,
Garvin

Thanx - opened trouble ticket with ISP

Posted: Mon Sep 17, 2007 8:02 pm
by digitalfilm
we'll see what they say and I'll post the solution here once resolved.

Trailing // error

Posted: Tue Sep 18, 2007 6:09 pm
by digitalfilm
For some reason media upload and plugin maintenance both put a trailing "/" on the path. For example:
/usr/www/users/mh8020//serendipity_config_local.inc.php

where is this extra // coming from?

Line 27 of config?

Posted: Tue Sep 18, 2007 6:32 pm
by digitalfilm
the trailing slash is throwing errors like this one:

Warning: fopen(/usr/www/users/mh8020/uploads/acc_image.jpg) [function.fopen]: failed to open stream: Permission denied in /usr/www/users/mh8020/include/admin/images.inc.php on line 226

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/www/users/mh8020/include/admin/images.inc.php on line 227

Warning: fclose(): supplied argument is not a valid stream resource in /usr/www/users/mh8020/include/admin/images.inc.php on line 228
https://my.pair.com/i/acc_image.jpg fetched as acc_image.jpg
Thumbnail created.
Done.

Re: Line 27 of config?

Posted: Wed Sep 19, 2007 1:47 pm
by garvinhicking
Hi!

That's not a problem!

//////////// is the same like /

You don't need to pay attention to this. Your problem is really only be caused by permissions.

Regards,
Garvin