Announcement

#1 2014-10-22 21:13:03

Sislik
Member
2014-10-22
3

Two photos with the same name in different categories shows first one

Hello/Hi/Greetings,

If you upload two photos with the same name in different categories, Piwigo will always show the first one.

I’ve uploaded photo-001.jpg to one category and different file with the same name to different category. Upload was using FTP.
Thumbnails are generated correctly, if you open category, you will se there correct thumbnail, but if you select any photo, wrong photo is shown (label and everything belongs to wrong photo). If you somehow manage to display correct photo and then want to show next one, wrong picture is displayed and if you go to previous picture, you will get previous picture from gallery, where is the “wrong” photo.
My problem seems to be very similar or the same as this issue: http://piwigo.org/forum/viewtopic.php?id=22830 – but this thread is more than a year without response.

Thank you in advance,
Sislik

Piwigo version: 2.7.1
PHP version: 5.3.3
MySQL version: 5.1.61
Piwigo URL: http://photos.tichava.cz/

problem was also in Piwigo 2.6

Offline

 

#2 2014-10-22 21:31:40

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Two photos with the same name in different categories shows first one

Hello

a concrete example ?

I followed your steps on my test gallery, no problem
there is certainly something else

--

http://galerie.strangeplanet.fr/index.php?/category/66

both files upload by FTP, one by one (a sync for the first and a sync for the second), exact same names

Offline

 

#3 2014-10-22 21:38:58

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Two photos with the same name in different categories shows first one

I think it's written in the comment near picture url style that file name must be unique if you use 'file'

Offline

 

#4 2014-10-22 21:39:40

Sislik
Member
2014-10-22
3

Re: Two photos with the same name in different categories shows first one

Thank you for quick answer.

My problem was fixed by renaming file names and if I renamed it back, problem was back again.

check this category, thumbnails are correct:
http://photos.tichava.cz/index/category/34-garden
but if you click on a thumbnail, you will see photos from this gallery:
http://photos.tichava.cz/index/category … ionarspfad

Offline

 

#5 2014-10-22 21:41:21

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Two photos with the same name in different categories shows first one

good catch Rvelices, the problem is here because your forced "file"
change to "id-file" to avoid issues

Offline

 

#6 2014-10-22 21:42:42

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Two photos with the same name in different categories shows first one

before you ask : Piwigo is designed to allow one photo to be present in many albums, so we don't check in which album you curently are (saving ressources)

Offline

 

#7 2014-10-22 22:10:50

Sislik
Member
2014-10-22
3

Re: Two photos with the same name in different categories shows first one

Thank you very much for your assistance, problem fixed!
I would probably never figured out this without your help.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact