Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2007-11-29 21:14:56

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

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 images folder?

Already set to 777.

Offline

#4 2007-11-29 21:23:20

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#6 2007-11-29 22:13:26

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

Board footer

Powered by FluxBB