duplicated thumbnails

hi, sorry if this is a known problem, but I can't find it on the forum anywhere..

this issue is bugging me since ages: lots of times, when I rescan the directories for new files, I get the new files added twice in the thumbs listing.

example here:
http://foto.napodano.com/main.php?cmd=album&var1=2008%2Fmucca/

the album_files_####.php contains duplicated entries, and I don't have a clue why this happens.
of course the files have been uplodaded only once.

I have also tried waiting for the automatic rescan with no luck.

PS: here are two duplicate

PS: here are two duplicate entries as an example:

44 =>
array (
'file_name' => 'DSCN1861.JPG',
'visible' => 'true',
'desc' => '',
'long_desc' => '',
'params' => '',
'dir_logo' => 'true',
'view_count' => '1',
'vote_count' => '0',
'vote_avg' => '0',
'comment_count' => '0',
'use_for_logo' => 'false',
'file_time' => '1223751962',
'screenshot' => '',
'type' => 'I',
'keywords' =>
array (
),
),

56 =>
array (
'file_name' => 'DSCN1861.JPG',
'visible' => 'true',
'desc' => '',
'long_desc' => '',
'params' => '',
'dir_logo' => 'true',
'view_count' => '1',
'vote_count' => '0',
'vote_avg' => '0',
'comment_count' => '0',
'use_for_logo' => 'false',
'file_time' => '1223751962',
'screenshot' => '',
'type' => 'I',
'keywords' =>
array (
),
),

a control which avoids duplication would at least be something..

ditto - I have the same problem

I have looked at all possibilities. Duplicate thumbnails appear in random fashion.

I have an idea about what is

I have an idea about what is causing this: it seems that it happens if you have manually deleted a file from the gallery via FTP. probably then the database file of the gallery gets "corrupted", pointing to a non existent picture in its list, and next time phpAlbum parses the directory, the duplication happens

patrik's picture

Actually, I do delete files

Actually, I do delete files via FTP very often and never have this kind of problems. It would be cool if you could exactly describe how you get this to happen, so I could then find the bug and correct it.

Patrik

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.