Crop and Rotate Error Crop and Rotate Error
 

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]

Main Menu

Crop and Rotate Error

Started by mickc1303, August 27, 2004, 04:55:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mickc1303

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

mstralka

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

wellz24

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?

Joachim Müller

#3
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

wellz24

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.

wellz24


Joachim Müller


wellz24

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.

Joachim Müller

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

wellz24

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.    :\'(


Joachim Müller

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