Strange error msgs while adding files Strange error msgs while adding files
 

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

Strange error msgs while adding files

Started by nicholas, December 28, 2005, 10:33:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nicholas

I have uploaded a batch of images to my ftp-server.
When I hit the Batch Add Files and mark the files to be added in the apporpiate folders I do not get OK/NA/... but the sign for an image that is not to e showed. When I click on the image I get the following error msg:
Warning: imagejpeg(): Unable to access albums/trine-trold/Uge 23/thumb_DSC03183.JPG in /hsphere/local/home/erritzoe/img.barenkopf.com/include/picmgmt.inc.php on line 218

Warning: imagejpeg(): Invalid filename 'albums/trine-trold/Uge 23/thumb_DSC03183.JPG' in /hsphere/local/home/erritzoe/img.barenkopf.com/include/picmgmt.inc.php on line 218

Warning: chmod(): Unable to access albums/trine-trold/Uge 23/thumb_DSC03183.JPG in /hsphere/local/home/erritzoe/img.barenkopf.com/include/picmgmt.inc.php on line 224

Warning: chmod(): No such file or directory in /hsphere/local/home/erritzoe/img.barenkopf.com/include/picmgmt.inc.php on line 224

Warning: getimagesize(): Unable to access albums/trine-trold/Uge 23/thumb_DSC03183.JPG in /hsphere/local/home/erritzoe/img.barenkopf.com/include/picmgmt.inc.php on line 226

Warning: getimagesize(albums/trine-trold/Uge 23/thumb_DSC03183.JPG): failed to open stream: No such file or directory in /hsphere/local/home/erritzoe/img.barenkopf.com/include/picmgmt.inc.php on line 226
Ej muligt at oprette minibillede eller mellem stort billede.


This is really strange and I have no idea of how to solve the problem. Please suggest tasks to do :-)


nicholas

It doesn't work for me - This is what I changed in the file picmgmt.inc.php:


           // imagejpeg($dst_img, $dest_file, $CONFIG['jpeg_qual']);

                    $fh=fopen($dest_file,'w');
                    fclose($fh);
                    imagejpeg($dst_img, $dest_file, $CONFIG['jpeg_qual']);[/b]
         


I still get this error when I try to "batch add files" - and also when I upload files "one by one":

Warning: imagejpeg(): Unable to access ./albums/edit/preview_0e87a0a6.JPG in /hsphere/local/home/erritzoe/img.barenkopf.com/include/picmgmt.inc.php on line 229

Warning: imagejpeg(): Invalid filename './albums/edit/preview_0e87a0a6.JPG' in /hsphere/local/home/erritzoe/img.barenkopf.com/include/picmgmt.inc.php on line 229

Warning: chmod(): Unable to access ./albums/edit/preview_0e87a0a6.JPG in /hsphere/local/home/erritzoe/img.barenkopf.com/include/picmgmt.inc.php on line 235

Warning: chmod(): No such file or directory in /hsphere/local/home/erritzoe/img.barenkopf.com/include/picmgmt.inc.php on line 235

Warning: getimagesize(): Unable to access ./albums/edit/preview_0e87a0a6.JPG in /hsphere/local/home/erritzoe/img.barenkopf.com/include/picmgmt.inc.php on line 237

Warning: getimagesize(./albums/edit/preview_0e87a0a6.JPG): failed to open stream: No such file or directory in /hsphere/local/home/erritzoe/img.barenkopf.com/include/picmgmt.inc.php on line 237


I have verified that all the CMOS's are as supposed (777). The error occours nomatter which abum I try to add pictures to.

Pls suggest what to do :-)

Nibbler

Did you change the right bit ? Change both occurences of the code to be sure.

nicholas

I am sorry -that I didn't check for more occourences of the line - when I replaced the 2nd line it worked like a charm. Thanks so much for your help.
Happy new year. Thanks