click thumbnail, full size picture different click thumbnail, full size picture different
 

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

click thumbnail, full size picture different

Started by kateheaven, November 15, 2007, 01:11:31 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

kateheaven

when I click a thumbnail in my gallery the picture that opens is not the same as the thumbnail I clicked. For example: http://www.nkidman.com/media/fanarchive/thumbnails.php?album=lastup&cat=215

http://www.nkidman.com/media/fanarchive/index.php

test account: test / test


thanks

Stramm


Joachim Müller

Those are the replies to your other open threads:
Quote from: GauGau on November 15, 2007, 06:43:18 AM
"Gallery is currently offline - check back soon". Nothing to do or look at for us. Turn it back online if you want our help.
Quote from: Stramm on November 15, 2007, 08:01:23 AM
you need to set your gallery back online so that supporters can have a look.
Stop wasting our time! Starting a lot of threads and then hiding your gallery from our eyes is just plain stupid.

kateheaven

Quote from: GauGau on November 15, 2007, 08:13:51 AM
Those are the replies to your other open threads:Stop wasting our time! Starting a lot of threads and then hiding your gallery from our eyes is just plain stupid.

it was a mistake, i'm sorry  ::)

the gallery is online now

http://www.nkidman.com/media/fanarchive/index.php

Stramm

Works fine for me.
Under certain circumstances this is however 'normal' behaviour. Let's say you browse an album (thumbnail view) and while you do that, someone uploads a new image. Then what you describe may occur. Reloading the page kinda 'resets' the addressing. This is cause Coppermine uses 'relative' addressing when browing albums (cause of better performance). This has been rewritten for CPG 1.5 and absolute addressing is used instead.

kateheaven

thanks for looking stramm. it's still a problem for me though ... it's not because something else has been uploaded while i'm browsing because nothing has been uploaded.

if you click one of the square thumbnails on http://www.nkidman.com/media/fanarchive/thumbnails.php?album=lastup&cat=215 (for example) i still find that I get a different full size image when I click it...

Stramm

hmm... dunno what's wrong with that. Probably recreating thumbs helps. HAve uploaded custom thumbs for these files. Or have you replaced the fullsized/ intermediate?? These are mainly landscape pics. Coppermine doesn't create square thumbs of them.

kateheaven

i've tried recreating thumbnails. it's only on the 'last uploads' page that it seems to be happening ... the thumbnails display fine and correspond properly with the full size image in the actual album view.

Looking back through the 'last uploads' pages of the Banners category (http://www.nkidman.com/media/fanarchive/index.php?cat=215), it seems to be displaying the last uploads from the entire gallery ...

Stramm

you modified core code... probably introduced with one of the changes

kateheaven

what do you mean? i installed the latest version but haven't touched any of the pages ...

should i reinstall or...?

Joachim Müller


Stramm

I do not see the version you've installed... for that code needs to be changed. Therefore my last statement. If you've made modifications, then it's of course hard to tell what to do next. Also it's a good idea to always have the standard theme uploaded. This way we can check your gallery with an unmodified classic theme and exclude theme problems.

No harm would do, to redo the upgrade if you haven't modded core code. Download a fresh copy (1.4.14) and follow the upgrading instructions in the docs.

kateheaven

I've downloaded a fresh version of 1.4.14, uploaded that, and gone to .../update.php  I've kept the original classic theme and haven't modified anything, anywhere. I've also checked and repaired the database in the domain cpanel. Still got the problem ...

Joachim Müller


kateheaven

Quote from: GauGau on November 16, 2007, 04:31:29 PM
Why?

...  rather than modifying it to add my own layout in. I uploaded a fresh version of it, I just didn't modify it so, as Stramm suggested, we could see whether it was a problem with the theme.

kateheaven

sorry to bump this, but does anyone have any other suggestions for this problem? otherwise i'm a bit stuck ...

thanks.

kateheaven

bumping this again. I've tried everything I can think of to try and fix this. I've deleted all files within the category I first noticed the problem in + that category, i've checked and repaired the database in the domain cpanel, i've downloaded a fresh copy of cpg and uploaded that, i've tried updating the thumbnails in admin tools ...    I'm still having the same problem though.

The URL is http://www.nkidman.com/media/fanarchive/index.php  and you can see an example of the problem here: http://www.nkidman.com/media/fanarchive/thumbnails.php?album=lastup&cat=11 - click the first thumbnail and you will see the intermediate picture you get is different than the original thumbnail.

Nibbler

This looks like a bug - sub sub sub categories are not working correctly.

Nibbler

Change thumbnails.php


function thumb_get_subcat_data($parent, &$album_set_array, $level)
{
    global $CONFIG;

    $result = cpg_db_query("SELECT cid, name, description FROM {$CONFIG['TABLE_CATEGORIES']} WHERE parent = '$parent'");
    if (mysql_num_rows($result) > 0) {
        $rowset = cpg_db_fetch_rowset($result);
        foreach ($rowset as $subcat) {
            $result = cpg_db_query("SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = {$subcat['cid']}");
            $album_count = mysql_num_rows($result);
            while ($row = mysql_fetch_array($result)) {
                $album_set_array[] = $row['aid'];
            } // while
        }
        if ($level > 1) thumb_get_subcat_data($subcat['cid'], $album_set_array, $level -1);
    }
}


to


function thumb_get_subcat_data($parent, &$album_set_array)
{
    global $CONFIG;

    $result = cpg_db_query("SELECT cid, name, description FROM {$CONFIG['TABLE_CATEGORIES']} WHERE parent = '$parent'");
    if (mysql_num_rows($result) > 0) {
        $rowset = cpg_db_fetch_rowset($result);
        foreach ($rowset as $subcat) {
            $result = cpg_db_query("SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = {$subcat['cid']}");
            $album_count = mysql_num_rows($result);
            while ($row = mysql_fetch_array($result)) {
                $album_set_array[] = $row['aid'];
            } // while
            thumb_get_subcat_data($subcat['cid'], $album_set_array);
        }   
    }
}


Please test and report back.

kateheaven

it seems to have worked! thank you so much Nibbler!