forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Metapro on October 27, 2003, 08:03:27 pm

Title: Big Bug with albumview in "index.php"
Post by: Metapro on October 27, 2003, 08:03:27 pm
Can please anyone give me a little fast help with the following big problem/bug please?

The index.php doesnt display some albums, the album pictures are empty,
no link, no picture counts, etc.

Please look here if you cant understand my bad english ;)

http://www.fahrgeschaefte.com/index.php?cat=5&page=2

Not all albums have this problem, like you can see here:

http://www.fahrgeschaefte.com/index.php?cat=2&page=3

...or here:

http://www.fahrgeschaefte.com/index.php?cat=6

for example.

This problem is template independent. No errors with the previous Version 1.1 on this albums. Everything was displayed ok.

Please help me  :cry:
Title: Big Bug with albumview in "index.php"
Post by: jasendorf on October 27, 2003, 08:17:32 pm
can you post a screen shot of your config settings for albums?
Title: Big Bug with albumview in "index.php"
Post by: hardlocke on October 27, 2003, 08:36:22 pm
i had the same problem with coppermine 1.2..

just publish a picture to this album..... and the problem is gone  :lol:
Title: Big Bug with albumview in "index.php"
Post by: Metapro on October 27, 2003, 09:00:33 pm
I have 560 Albums in my Gallery, i dont really want to post 560 Fotos to correct this ;)

Here is a Screenshots of my Album View Settings:

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.h-o-m-e-p-a-g-e.info%2Fforumposts%2Falbumview.jpg&hash=c1e830560894fafcf630b7e7e2041572ffcfafcc)

I cant really look what Albums this are because there is no link to a special id or so.
Title: Big Bug with albumview in "index.php"
Post by: jasendorf on October 27, 2003, 10:15:02 pm
What's the use of empty albums?
Title: Big Bug with albumview in "index.php"
Post by: Metapro on October 27, 2003, 10:26:40 pm
Because Users can't submit new Album Names in the normal Gallery view i have to create a lot of albums.

My Gallery is used as an Database, so i have no use for "User Albums" in a special Folder, because noone will find the pictures in the correct Cathegorie Hierarchy.

But i think it should not matter if an album is empty or not. The function was correct in the version before. I just like to have it like it worked before. Please give me an idea how to fix this.
Title: Big Bug with albumview in "index.php"
Post by: Metapro on October 29, 2003, 03:50:39 pm
I still have this problem and cant find an solution. Please can anybody help me?
Title: Big Bug with albumview in "index.php"
Post by: Tarique Sani on October 29, 2003, 04:25:38 pm
I dont really understand the problem - you want links to your empty albums and their names showing up...
Right?
Title: Big Bug with albumview in "index.php"
Post by: DJMaze on October 29, 2003, 07:04:12 pm
You problem is caused in the list_albums() function which is located in index.php.
I noticed this bug while integrating features of 1.2 into CPG-Nuke.

The SQL query $alb_stats_q = db_query($sql); returns 0 cos there are no images.

So change
Code: [Select]
       if ($count > 0) {
            $visibility = $alb_thumb['visibility'];

into
Code: [Select]
       $visibility = $alb_thumb['visibility'];
        if ($count > 0) {


Then you see the album settings
Title: Big Bug with albumview in "index.php"
Post by: Joachim Müller on October 30, 2003, 08:00:14 am
@DJMaze: please start a tracker on this - this has to be checked in detail...

GauGau
Title: THANK YOU!
Post by: Metapro on October 30, 2003, 02:52:55 pm
Many Thanks to DJMaze. That solved the problem. If you click on the links above you can now see the albums correctly, even if they are empty...

Thanks again!

BTW: Could you implement this to further versions please, so i dont have to change this lines with every update?
Title: Big Bug with albumview in "index.php"
Post by: jasendorf on October 30, 2003, 02:59:55 pm
We will if/when we determine that it doesn't make a mess out of something else...  ;)