![]() |
Upload.php on line 171 Error
I just updated to the latest version of photoplog a few days ago, almost a week actually and now when I or one of my users who can upload images attempts to do so the following error appears at the top of the page.
Code:
Warning: move_uploaded_file(/home/###/public_html/photoplog/images/1/1_058a.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/###/public_html/photoplog/upload.php on line 171 Code:
Sorry, Username: Bad Type - File is of the Wrong MIME Type EDIT: I discovered I didn't chmod my image directory to 777. I just did so and attempted to upload only to get a new error message: Code:
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/home/####/public_html/photoplog/images/1/large/1_058.JPG' for writing in /home/####/public_html/photoplog/functions.php on line 150 Code:
Sorry, Username: Bad Save - Thumbs Creation Failed |
Check that the PhotoPlog images directory, and all subdirectories within the PhotoPlog images directory, have 777 permissions. On a *nix server, to set 777 permissions in one go via hell, cd to your PhotoPlog images directory, and then type the following:
Code:
find YOUR_PHOTOPLOG_IMAGES_DIR -type d | xargs chmod 777 |
As I mentioned in my earlier post I chmod the images directory(/photoplog/images) and all folders inside to 777 but still get an error.
Code:
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/home/####/public_html/photoplog/images/1/large/1_058.JPG' for writing in /home/####/public_html/photoplog/functions.php on line 150 Code:
Sorry, Username: Bad Save - Thumbs Creation Failed |
Functions.php on line 150 Error when uploading images
After my upgrade I am getting this error when attempting to upload.
Code:
Warning: imagejpeg() [function.imagejpeg]: Unable to open '/home/user/public_html/photoplog/images/1/large/1_069.JPG' for writing in /home/user/public_html/photoplog/functions.php on line 150 Any help would be appreicated. |
Doh, misread, sorry. Disregard this post. Hope you get some support
|
Double check that the permissions are 777 on all directories inside the PhotoPlog images directory and that PHP is configured with safe mode set to off:
Code:
/home/####/public_html/photoplog/images |
Quote:
|
Look for safe_mode on your PHP info page. The following code will generate a PHP info page for you:
Code:
<?php |
All times are GMT. The time now is 11:53 AM. |
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.