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 Error  (Read 4503 times)

0 Members and 1 Guest are viewing this topic.

mickc1303

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Crop and Rotate Error
« on: August 27, 2004, 04:55:15 pm »

While trying to perform a 'crop and rotate' I get the following error.

Warning: copy(albums/edit/set11436.jpg): failed to open stream: Permission denied in /usr/local/psa/home/vhosts/sexy-honey.com/httpdocs/picEditor.php on line 124

which relates to the following code in picEditor.php

Code: [Select]
if ($_GET['id']){
   //Copy the Image file to the editing directory
   if (copy($CONFIG['fullpath'].$CURRENT_PIC['filepath'].$CURRENT_PIC['filename'],$img_dir.$CURRENT_PIC['filename']))
   $newimage = $CURRENT_PIC['filename'];
}else if(!isset($newimage)){
   $newimage = $_POST['newimage'];
}

Anybody have any idea what is causing this problem?  and a solution
Logged

mstralka

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 178
Re: Crop and Rotate Error
« Reply #1 on: August 27, 2004, 05:41:12 pm »

You probably don't have the albums/edit folder permissions set to 777 - see
http://coppermine.sourceforge.net/manual.php#how
Logged
GO IRISH

wellz24

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Crop and Rotate Error
« Reply #2 on: February 25, 2005, 06:30:16 pm »

I have the same error appear when trying to edit files.


"Warning: copy(albums/userpics/2004/2004 - Dublin/Image(190).jpg): failed to open stream: Permission denied in /home/someth/public_html/picEditor.php on line 159"

And albums>edit folder is set to 777.

Any other suggestions?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Crop and Rotate Error
« Reply #3 on: February 26, 2005, 02:18:08 pm »

yes, several. All of them can be seen if you search for your error message and go through the results from oldest to newest.

Joachim
« Last Edit: February 28, 2005, 05:43:39 pm by GauGau »
Logged

wellz24

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Crop and Rotate Error
« Reply #4 on: February 27, 2005, 02:03:11 pm »

ok, i've been through previous posts, and i can't find any that seems to help me.

http://forum.coppermine-gallery.net/index.php?topic=7099.0

This sounds like a similar problem to mine but i only get the 1 error message:-

Warning: copy(albums/userpics/2004/2004 - Dublin/Image(175).jpg): failed to open stream: Permission denied in /home/someth/public_html/picEditor.php on line 159

"I to seem to be having issues witht the rotation of images.   Although my issue seems to be that the only the main picture does not rotate.  All thumnails do, but not the main and even the normal picture you see when you click a thumbnail rotates, but as soon as you click the normal picture to see an enlarged view the demensions are correct but the picture is still turned side ways."

Would be appreciated if somebody was so kind as to help.
Logged

wellz24

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Crop and Rotate Error
« Reply #5 on: February 28, 2005, 05:42:25 pm »

anybody?   ???
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Crop and Rotate Error
« Reply #6 on: February 28, 2005, 05:44:56 pm »

Logged

wellz24

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Crop and Rotate Error
« Reply #7 on: March 02, 2005, 12:45:12 pm »

C'mon man, i was being nice and polite. All i'm after is a little help, or if you don't know, just say...

I understand you're doing all this volunterally, and fair play to ya, but i've got no where else to find help on this.

Ta.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Crop and Rotate Error
« Reply #8 on: March 03, 2005, 10:05:53 am »

appears to be a permission problem, try re-applying proper permissions using CHMOD via your ftp client (as suggested in the docs, install secition). You could try safe mode section from the docs as well.

Joachim
Logged

wellz24

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Crop and Rotate Error
« Reply #9 on: March 03, 2005, 02:06:29 pm »

Thanks, but still no luck.

Considerring i know nothing about low level languages, the error is always permission denied on line 159?

          copy($img_dir.$newimage,$CONFIG['fullpath'].$CURRENT_PIC['filepath'].$CURRENT_PIC['filename']);

Does that shed any light on anything?

Again, thx 4 your time.

If not I guess i'll just have to make sure my pics are cropped and rotated prior to upload.    :\'(

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Crop and Rotate Error
« Reply #10 on: March 04, 2005, 06:06:30 am »

if you're the only one who uploads, then yes: you should resize, crop and rotate pics before upload. There are many tools that let you do this even for several files at once - I recommend the use of Irfan View, see the tutorial "Batch-resizing pics with Irfan View"

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.