coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: mickc1303 on August 27, 2004, 04:55:15 PM

Title: Crop and Rotate Error
Post by: mickc1303 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


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
Title: Re: Crop and Rotate Error
Post by: mstralka 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
Title: Re: Crop and Rotate Error
Post by: wellz24 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?
Title: Re: Crop and Rotate Error
Post by: Joachim Müller 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
Title: Re: Crop and Rotate Error
Post by: wellz24 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.
Title: Re: Crop and Rotate Error
Post by: wellz24 on February 28, 2005, 05:42:25 PM
anybody?   ???
Title: Re: Crop and Rotate Error
Post by: Joachim Müller on February 28, 2005, 05:44:56 PM
http://coppermine.sourceforge.net/faq.php#lamesupport
Title: Re: Crop and Rotate Error
Post by: wellz24 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.
Title: Re: Crop and Rotate Error
Post by: Joachim Müller 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
Title: Re: Crop and Rotate Error
Post by: wellz24 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.    :\'(

Title: Re: Crop and Rotate Error
Post by: Joachim Müller 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 (http://coppermine.sourceforge.net/tutorial/) "Batch-resizing pics with Irfan View"

Joachim