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: Strange error msgs while adding files  (Read 4322 times)

0 Members and 1 Guest are viewing this topic.

nicholas

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Strange error msgs while adding files
« on: December 28, 2005, 10:33:33 pm »

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 :-)
« Last Edit: December 29, 2005, 05:02:34 pm by Nibbler »
Logged

Nibbler

  • Guest
Logged

nicholas

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Strange error msgs while adding files
« Reply #2 on: December 29, 2005, 04:16:38 pm »

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

Code: [Select]

           // 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 :-)
Logged

Nibbler

  • Guest
Re: Strange error msgs while adding files
« Reply #3 on: December 29, 2005, 04:25:59 pm »

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

nicholas

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Strange error msgs while adding files
« Reply #4 on: December 29, 2005, 04:53:04 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.