forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: kateheaven on November 15, 2007, 01:11:31 am

Title: click thumbnail, full size picture different
Post by: kateheaven on November 15, 2007, 01:11:31 am
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
Title: Re: click thumbnail, full size picture different
Post by: Stramm on November 15, 2007, 07:58:46 am
We can't check when the gallery is offline.
Title: Re: click thumbnail, full size picture different
Post by: Joachim Müller on November 15, 2007, 08:13:51 am
Those are the replies to your other open threads:
"Gallery is currently offline - check back soon". Nothing to do or look at for us. Turn it back online if you want our help.
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.
Title: Re: click thumbnail, full size picture different
Post by: kateheaven on November 15, 2007, 01:05:08 pm
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
Title: Re: click thumbnail, full size picture different
Post by: Stramm on November 15, 2007, 01:20:32 pm
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.
Title: Re: click thumbnail, full size picture different
Post by: kateheaven on November 15, 2007, 06:12:06 pm
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...
Title: Re: click thumbnail, full size picture different
Post by: Stramm on November 15, 2007, 06:44:21 pm
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.
Title: Re: click thumbnail, full size picture different
Post by: kateheaven on November 15, 2007, 07:32:09 pm
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 ...
Title: Re: click thumbnail, full size picture different
Post by: Stramm on November 15, 2007, 07:40:25 pm
you modified core code... probably introduced with one of the changes
Title: Re: click thumbnail, full size picture different
Post by: kateheaven on November 15, 2007, 10:00:21 pm
what do you mean? i installed the latest version but haven't touched any of the pages ...

should i reinstall or...?
Title: Re: click thumbnail, full size picture different
Post by: Joachim Müller on November 16, 2007, 08:24:47 am
should i reinstall
no
Title: Re: click thumbnail, full size picture different
Post by: Stramm on November 16, 2007, 08:28:31 am
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.
Title: Re: click thumbnail, full size picture different
Post by: kateheaven on November 16, 2007, 04:16:45 pm
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 ...
Title: Re: click thumbnail, full size picture different
Post by: Joachim Müller on November 16, 2007, 04:31:29 pm
I've kept the original classic theme
Why?
Title: Re: click thumbnail, full size picture different
Post by: kateheaven on November 16, 2007, 04:52:33 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.
Title: Re: click thumbnail, full size picture different
Post by: kateheaven on November 19, 2007, 05:55:49 pm
sorry to bump this, but does anyone have any other suggestions for this problem? otherwise i'm a bit stuck ...

thanks.
Title: Re: click thumbnail, full size picture different
Post by: kateheaven on December 02, 2007, 08:29:49 pm
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.
Title: Re: click thumbnail, full size picture different
Post by: Nibbler on December 02, 2007, 09:22:15 pm
This looks like a bug - sub sub sub categories are not working correctly.
Title: Re: click thumbnail, full size picture different
Post by: Nibbler on December 02, 2007, 09:36:26 pm
Change thumbnails.php

Code: [Select]
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

Code: [Select]
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.
Title: Re: click thumbnail, full size picture different
Post by: kateheaven on December 02, 2007, 11:46:42 pm
it seems to have worked! thank you so much Nibbler!