Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: crop and rotate - save error why?  (Read 4692 times)

0 Members and 1 Guest are viewing this topic.

Skipper

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
crop and rotate - save error why?
« on: September 26, 2004, 09:40:20 pm »

When someone clicks "crop and rotate" on the preview a pic bit, and then clicks save pic, they get the following error. Is it because of the CHMOD needs setting to 777 on that file?

Or another reason? Anyway, here's the error:

Quote
Warning: copy(albums/1 Police/01010048.jpg): failed to open stream: Permission denied in /home/emergen/public_html/gallery/picEditor.php on line 159

Thanks.

P.S I'm using theme project vii. Thanks
« Last Edit: September 27, 2004, 06:29:29 am by GauGau »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: crop and rotate - save error why?
« Reply #1 on: September 27, 2004, 01:00:15 am »

There could be several reasons.  First, you should avoid using spaces in your directory names on the server.

You will need to provide more info for us to be able to help.

Turn on debug mode, and post here the output when this occurs.  provide a test user account, with log on and upload permissions.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Skipper

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: crop and rotate - save error why?
« Reply #2 on: September 27, 2004, 11:57:04 am »

Notice: Undefined variable: img_dir in /home/emergen/public_html/gallery/picEditor.php on line 119

Notice: Undefined index: id in /home/emergen/public_html/gallery/picEditor.php on line 122

Warning: copy(albums/1 Police/01010048.jpg): failed to open stream: Permission denied in /home/emergen/public_html/gallery/picEditor.php on line 159

Here is the output in debug mode.

I have sent you a personal message with the details for admin. Thanks
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: crop and rotate - save error why?
« Reply #3 on: September 28, 2004, 12:02:15 am »

Please do not send pms to members of the dev team, unless they ask for it.  In this case, it was needed, but that was not clear from your post.

When someone clicks "crop and rotate" on the preview a pic bit, and then clicks save pic, they get the following error

This sounds like you have users doing this.  As there are no user galleries, and users cannot do this action in the public albums, even to their own pics, this must be when you are doing it, as admin, unless you have applied a mod.

I uploaded a pic into a test album, viewable only to admin.  I then cropped, and rotated, without any errors.  please read my pic info before you delete this file and album  ;)

If you are still having this problem, please give a deep link to a pic this happens with.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Skipper

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: crop and rotate - save error why?
« Reply #4 on: September 28, 2004, 11:26:30 am »

Sorry I didn't want to post access to my admin on a public forum (which I'm sure you would have said if i did, so I used my common sense).

Anyway, to be honest I did only try it on one image and It didn't work. It was this picture:

http://www.emergencyvehicles.org.uk/gallery/picEditor.php?id=1

and I've just tried it on this one too, and it still does not work:

http://www.emergencyvehicles.org.uk/gallery/albums/edit/01010070.jpg?1401023076

Use the same admin access as usual if you need to.

Thanks a lot.

Skipper
Logged

Nibbler

  • Guest
Re: crop and rotate - save error why?
« Reply #5 on: September 28, 2004, 12:55:28 pm »

Your problem could well be related to the size of the pic, the one you posted is over 4 times the size of my screen.

Also why have you uploaded into /edit ? That's just asking for trouble...
Logged

Skipper

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: crop and rotate - save error why?
« Reply #6 on: September 28, 2004, 01:32:09 pm »

Your problem could well be related to the size of the pic, the one you posted is over 4 times the size of my screen.

Also why have you uploaded into /edit ? That's just asking for trouble...

I've just looked in the /edit folder and there are only 2 pics there. God only nows how they were uploaded into there, because I didn't do it...or atleast I don't think i did.

I've never thought about the size of the pic being the problem. Maybe it is. But a lot of the pictures are that size (well a bit smaller - that's a one off) anyway. I'd have to do a lot or editing. Can you set upload permissions for stting the max size of a pic? What size do you suggest I set it to?

thanks.

Skipper
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: crop and rotate - save error why?
« Reply #7 on: September 28, 2004, 02:57:47 pm »

You can rotate the large images, but it is the image size that's causing the problem with the crop.  It is able to do the thumb and normal pics, but not the full size.

But when you do a smaller pic, such as the one I uploaded, it works fine.

I would suggest you ask your users to re-size their images before upload, to a maximum of 1000 px.  If your users, like mine, had problems with this, a little tutorial on how to use Irfanview might help.  It certainly did with my users.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Skipper

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: crop and rotate - save error why?
« Reply #8 on: September 28, 2004, 03:01:18 pm »

ok thanks for your help. I'll get something sorted.
Logged

Skipper

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: crop and rotate - save error why?
« Reply #9 on: September 28, 2004, 03:08:24 pm »

One last thing...

When you say ask visitors to upload images no bigger then 1000 pixels, do you mean put a restriction on the upload size.

Do you also mean 1000x1000 pixels? Can you also restrict upload file size? If so, what size wouild you suggest for a site like mine, as i'm not too sure.

Many thanks.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: crop and rotate - save error why?
« Reply #10 on: September 28, 2004, 06:41:56 pm »

The setting in config would be 1000, so yes, 1000 x 1000 would be the max.
The file size is actually less important in this issue than the pixel size.  A 1600 x 1200 pic saved at 100kb may fail, where the same pic, saved at 800 x 600, but at better quality and at 1mb may succeed, on the same server.

It depends on your server settings, as to max memory allowed for the action, and max post size, but your best bet would be to do a bit of testing, say starting at 1200 x 800, and see what size always works.

Then set that as your site max.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Skipper

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: crop and rotate - save error why?
« Reply #11 on: September 28, 2004, 07:55:42 pm »

ok thanks for your help. I'll do a bit of fiddling.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.