Page 1 of 1

Picture upload failing

PostPosted: Mon Feb 12, 2007 6:11 pm
Author: DDay629
Your phpBB Version: 2.0.22
phpBB Type: phpBB / IMPortal
MODs: Yes
Your knowledge: Basic Knowledge
Board URL: http://forum.clanpla.org

PHP Version:
MySQL Version:


What was done before the problem appeared?
The picture function in profiles refuses to upload files and when you see the upload successful page, it shows this error at the top of the page:

Warning: copy(./images/photos/130232952045d0fe8bb2d52.jpg): failed to open stream: Permission denied in /home2/clanpla/public_html/forum/profilcp/functions_profile.php on line 820

Warning: Cannot modify header information - headers already sent by (output started at /home2/clanpla/public_html/forum/profilcp/functions_profile.php:820) in /home2/clanpla/public_html/forum/includes/page_header.php on line 1156

Warning: Cannot modify header information - headers already sent by (output started at /home2/clanpla/public_html/forum/profilcp/functions_profile.php:820) in /home2/clanpla/public_html/forum/includes/page_header.php on line 1158

Warning: Cannot modify header information - headers already sent by (output started at /home2/clanpla/public_html/forum/profilcp/functions_profile.php:820) in /home2/clanpla/public_html/forum/includes/page_header.php on line 1159



What was done to try to solve the problem?
Nothing yet.



De.scription and Message

As it says, I have pretty basic knowledge, so I hope you guys can help.

DDay

PostPosted: Mon Feb 12, 2007 9:39 pm
Author: Michaelo
As the actual upload works we can try to remove the report by placing @ in front of the function...
This is a test only but you can try it and see how you go...
Code: Select all
 OPEN] . "/$new_filename");  AND REPLACE WITH  @$move_file($photo_filename, './' . $board_config['photo_path'] . "/$new_filename");  

Let me know how it goes...
Mike

PostPosted: Mon Feb 12, 2007 11:43 pm
Author: DDay629
It doesn't actually work. It just says and thinks it does. It then doesn't show any picture.

DDay

PostPosted: Tue Feb 13, 2007 2:37 am
Author: Michaelo
I see, I get the same report but the file does upload... will see if the guys have any input...

Re: Picture upload failing

PostPosted: Wed Feb 14, 2007 1:44 am
Author: Teelk
CHMOD the folder images/photos to 777. It's missing from the install instructions.