Highland3r Posted July 12, 2009 Share Posted July 12, 2009 Warning: imagejpeg() [function.imagejpeg]: Unable to open '/root/public_html/images/category/c7bdfac4bedf72b85713aa675ff9e6f9.jpg' for writing in /home/sites/mydomain.co.uk/public_html/admin/library/functions.php on line 255 Warning: Cannot modify header information - headers already sent by (output started at /home/sites/mydomain.co.uk/public_html/admin/library/functions.php:255) in /home/sites/mydomain.co.uk/public_html/admin/category/processCategory.php on line 115 Function code reads Line 255: imagejpeg($dest,$destFile, $quality); Line 256: break; Line 257: case 3: Line 258: imagepng($dest,$destFile); Line 259: } Line 260: return $destFile; Line 261: Line 262:} Proccess Catagory code // finally remove the category from database; $sql = "DELETE FROM tbl_category WHERE cat_id IN (" . implode(',', $categories) . ")"; dbQuery($sql); header('Location: index.php'); } /* Recursively find all children of $catId Any help appreciated Quote Link to comment https://forums.phpfreaks.com/topic/165693-error-while-uploading-image/ Share on other sites More sharing options...
Highland3r Posted July 30, 2009 Author Share Posted July 30, 2009 anybody?? Quote Link to comment https://forums.phpfreaks.com/topic/165693-error-while-uploading-image/#findComment-886841 Share on other sites More sharing options...
Highland3r Posted August 11, 2009 Author Share Posted August 11, 2009 Could someone please help with this problem ? Warning: move_uploaded_file(/root/public_html/images/category/1cbb7d02e8a545ff42355f56d40f6cd0.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/sites/mysite.co.uk/public_html/admin/category/processCategory.php on line 149 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phppMcysd' to '/root/public_html/images/category/1cbb7d02e8a545ff42355f56d40f6cd0.jpg' in /home/sites/mysite.co.uk/public_html/admin/category/processCategory.php on line 149 Warning: Cannot modify header information - headers already sent by (output started at /home/sites/mysite.co.uk/public_html/admin/category/processCategory.php:149) in /home/sites/mysite.co.uk/public_html/admin/category/processCategory.php on line 220 Quote Link to comment https://forums.phpfreaks.com/topic/165693-error-while-uploading-image/#findComment-895659 Share on other sites More sharing options...
ngreenwood6 Posted August 11, 2009 Share Posted August 11, 2009 I guess my first question would be do you have permissions to that folder and/or file on the server. If you look up its rights what are they. Should be at least 755. Quote Link to comment https://forums.phpfreaks.com/topic/165693-error-while-uploading-image/#findComment-895686 Share on other sites More sharing options...
Highland3r Posted August 12, 2009 Author Share Posted August 12, 2009 i have set every file and folder to 755 still shows the same errors lol quite frustrating as the permissions is the first thing i changed to combat the problem any other suggestions ? Quote Link to comment https://forums.phpfreaks.com/topic/165693-error-while-uploading-image/#findComment-896674 Share on other sites More sharing options...
Highland3r Posted August 23, 2009 Author Share Posted August 23, 2009 surely sombody can help ???? Quote Link to comment https://forums.phpfreaks.com/topic/165693-error-while-uploading-image/#findComment-904589 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.