I get these errors when trying to upload profile pictures.
Warning: move_uploaded_file(/home/naijatal/public_html/media/images/profile/1/1215026613.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/naijatal/public_html/inc/images.inc.php on line 531
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php55LWsx' to '/home/naijatal/public_html/media/images/profile/1/1215026613.jpg' in /home/naijatal/public_html/inc/images.inc.php on line 531
Warning: chmod() [function.chmod]: No such file or directory in /home/naijatal/public_html/uploadPhoto.php on line 323
Warning: chmod() [function.chmod]: No such file or directory in /home/naijatal/public_html/uploadPhoto.php on line 324
Warning: chmod() [function.chmod]: No such file or directory in /home/naijatal/public_html/uploadPhoto.php on line 325
Warning: Cannot modify header information - headers already sent
by (output started at
/home/naijatal/public_html/inc/images.inc.php:531) in /home/naijatal/public_html/upload_media.php on line 188
Warning: Cannot modify header information - headers already sent
by (output started at
/home/naijatal/public_html/inc/images.inc.php:531) in /home/naijatal/public_html/inc/design.inc.php on line 495
Please advice on how to fix this. Thanks.