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] 2   Go Down

Author Topic: Pics not showing up in Album  (Read 14953 times)

0 Members and 1 Guest are viewing this topic.

gtk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Pics not showing up in Album
« on: January 15, 2006, 05:17:02 am »

For an album, I went into admin menu, and I chose "delete original size photo".   Now, when I try to view that album, not all ictures are showing up.    Coppermine still thinks that some of the pictures still have an "intermediate" file.

How does coppermine determine whether to use the original file for display, or the "normal_" prefix file ?   

my coppermine is not modified.
« Last Edit: January 15, 2006, 10:37:31 pm by gtk »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Pics not showing up in Album
« Reply #1 on: January 16, 2006, 07:52:36 am »

if the full-size pic is larger (in terms of dimensions) than the intermediate size set up in coppermine's config, the intermediate sized pic won't be deleted. Exception: if you enable the option not to create an intermediate pic at all, then all intermediates are suppossed to be deleted when using the option in admin tools you refer to. However, I think there has been issues with this feature in older versions, so I suggested you post a link to your site to let us see what version you're using.
Logged

gtk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Pics not showing up in Album
« Reply #2 on: January 17, 2006, 04:12:38 am »

Thx for the reply.

All my sytem info is in my sig.  I'm running cpg 1.3.5.

I have it configured for itermediate pictures.

Coppermine is successfully deleting the full-size picture, but when you go back and view the album, coppermine still thinks the intermediate exists.

Is this the code in displayimage.php that determines whether an intermediate pics exists or not ?

 
Code: [Select]
   if ($mime_content['content']=='image') {
        if (isset($image_size['reduced'])) {
            $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
            $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
 
Logged

gtk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Pics not showing up in Album
« Reply #3 on: January 18, 2006, 11:08:28 pm »

Any suggestions ?
Logged

gtk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Pics not showing up in Album
« Reply #4 on: January 20, 2006, 04:33:00 pm »

Still need assistance   ???
Logged

gtk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Pics not showing up in Album
« Reply #5 on: January 20, 2006, 04:34:43 pm »

Am I providing enough information in my question ?
Logged

Nibbler

  • Guest
Re: Pics not showing up in Album
« Reply #6 on: January 20, 2006, 04:40:17 pm »

Post a link to your site as suggested.
Logged

gtk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Pics not showing up in Album
« Reply #7 on: January 20, 2006, 05:56:25 pm »

Here is an example:

http://www.msdeer.net/photos/displayimage.php?album=89&pos=0

Also,  Sometimes when a user uploads a large pic, I will run "convert" against it, to resize it and compress it.   That results in the "filesize" and "total filesize" not being accurate in the database.

I am working on a quick unix script to compare the database vaules for "filesize" and "total filesize', and update the database when it finds differences...  (after I back everything up, of course)....


Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Pics not showing up in Album
« Reply #8 on: January 20, 2006, 06:18:28 pm »

The missing normal-sized pic is suppossed to be at http://www.msdeer.net/photos/albums/userpics/normal_4%20PT.jpg
This is not possible, there mustn't be files directly in the userpics folder unless you did something wrong in the first place and FTP-uploaded pics there. Please confirm if that's what you did.
Logged

gtk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Pics not showing up in Album
« Reply #9 on: January 20, 2006, 06:29:15 pm »

I do not allow most users to have their own Album, so all pics they upload end up in "userpics".  Why are pics not supposed to be in "userpics" ?  That is where coppermine is putting them...

I copied the full-size file to "normal_4 PT.jpg" and it displayed correctly.  Then I went back into admin tools and deleted original sized photo.   The same thing happened, its still looking for "normal_4 PT"..


Thx for looking....


Greg
« Last Edit: January 20, 2006, 09:01:36 pm by gtk »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Pics not showing up in Album
« Reply #10 on: January 21, 2006, 06:13:59 am »

are you running safe mode?
Logged

gtk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Pics not showing up in Album
« Reply #11 on: January 22, 2006, 04:41:19 am »

are you running safe mode?
i'm not sure...  are you talking safe_mysqld ?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
MOVED: Re: Pics not showing up in Album (split topic)
« Reply #12 on: January 22, 2006, 11:25:35 am »

Split unrelated reply to this thread into a separate thread: cpg1.3 Upload.

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



i'm not sure...  are you talking safe_mysqld ?
I'm refering to PHP's safe mode (it's an option in php.ini)
« Last Edit: January 22, 2006, 12:01:36 pm by GauGau »
Logged

gtk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Pics not showing up in Album
« Reply #13 on: January 23, 2006, 07:21:18 pm »

PHP was compiled with " -enable-safe-mode'"
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Pics not showing up in Album
« Reply #14 on: January 23, 2006, 07:43:10 pm »

hm, do you really need safe mod? If the server is yours to administer, I recommend turning it off (recompiling PHP without that option, that is).
Logged

gtk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Pics not showing up in Album
« Reply #15 on: January 24, 2006, 01:37:54 am »

not my server..  :(   
Logged

gtk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Pics not showing up in Album
« Reply #16 on: January 25, 2006, 05:56:18 pm »

If someone can just point me to the code that determines whether to preface the picture with "normal_" or not, I can try and debug it..

thx
Logged

Nibbler

  • Guest
Re: Pics not showing up in Album
« Reply #17 on: January 25, 2006, 06:43:24 pm »

It's in displayimage.php

Code: [Select]
    if($CONFIG['thumb_use']=='ht' && $CURRENT_PIC_DATA['pheight'] > $CONFIG['picture_width'] ){ // The wierd comparision is because only picture_width is stored
      $condition = true;
    }elseif($CONFIG['thumb_use']=='wd' && $CURRENT_PIC_DATA['pwidth'] > $CONFIG['picture_width']){
      $condition = true;
    }elseif($CONFIG['thumb_use']=='any' && max($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']) > $CONFIG['picture_width']){
      $condition = true;
    }else{
     $condition = false;
    }

    if ($CONFIG['make_intermediate'] && $condition ) {
        $picture_url = get_pic_url($CURRENT_PIC_DATA, 'normal');
    } else {
        $picture_url = get_pic_url($CURRENT_PIC_DATA, 'fullsize');
    }

The code is fine, it's likely due to bad file dimensions in the db. If you upgrade to 1.4 then you can have Coppermine rescan the dimension information.
Logged

gtk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: Pics not showing up in Album
« Reply #18 on: January 25, 2006, 11:21:12 pm »

i just upgraded on my test box to 1.4.3 (Very quickly & easy I have to say).

How do you rescan the dimension info.  I could not find that in the docs anywhere..

Thx
Logged

Nibbler

  • Guest
Re: Pics not showing up in Album
« Reply #19 on: January 25, 2006, 11:28:15 pm »

It's in admin tools - 'Reload file dimensions and size information'
Logged
Pages: [1] 2   Go Up
 

Page created in 0.028 seconds with 20 queries.