Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-11-29 20:55:17
- alannie
- Member

- From: Minnesota, USA
- Registered: 2005-09-15
- Posts: 150
Error when recreating thumbnail
I keep getting this error every time I try to recreate a thumbnail after replacing an image:
Warning: imagejpeg() [function.imagejpeg]:
Unable to open '/path/to/site/images/19t.jpg' for writing:
Permission denied in /path/to/site/textpattern/lib/class.thumb.php on line 248
I can make it work if I manually go in and change the permissions of the thumbnail image to 666 (images folder is already set to 777), but this is getting to be a real pain. Is there something else I can do to fix this issue for once and all?
Offline
Re: Error when recreating thumbnail
What about permissions set to images folder?
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
#3 2007-11-29 21:21:54
- alannie
- Member

- From: Minnesota, USA
- Registered: 2005-09-15
- Posts: 150
Re: Error when recreating thumbnail
the_ghost wrote:
What about permissions set to
imagesfolder?
Already set to 777.
Offline
Re: Error when recreating thumbnail
What happens if you upload a new image through TXP and then recreate the thumbnail for that image… do you get the same error?
Which user on the server owns the files in the image directory? You can check this with most FTP clients.
Are new images owned by a different user than old images?
Offline
#5 2007-11-29 21:42:42
- alannie
- Member

- From: Minnesota, USA
- Registered: 2005-09-15
- Posts: 150
Re: Error when recreating thumbnail
If I upload a new image through TXP (as opposed to doing a “replace image”) and there is no previous thumbnail, creating a new thumbnail works fine.
I looked at the owners. For both images and thumbnails, the owner is the same: “nobody”. The group differs, though: image is “bin” and thumbnail is “users”.
Offline
Re: Error when recreating thumbnail
alannie wrote:
If I upload a new image through TXP (as opposed to doing a “replace image”) and there is no previous thumbnail, creating a new thumbnail works fine.
If you then change the thumbnail for that new image, does that also work fine?
I looked at the owners. For both images and thumbnails, the owner is the same: “nobody”. The group differs, though: image is “bin” and thumbnail is “users”.
If you compare old and new images/thumbnails, do you see a difference in who owns them?
Offline
Pages: 1