Hi,
i recently update to 1.4.5 but i have a strange problem now.
Zenphoto shows almost every picture twice on the search and tag sites.
In the backend it shows more pictures than my gallery actually has. When i update the database, the number of images goes back to normal and the "twin" pictures are gone. After about half an hour or so, they reappear.
I found out that zenphoto creates a folder "." in the _albums table and afterwards it creates every folder again, like "./Photos", "./Photos/Japan" etc.
There is no such folder in my filesystem.
Do you have a clue what kind of error this might be?
Thanks a lot!
Fuzzi
Comments
It does ofcourse create folders in the /cache directory but for sure nothing starting with a dot.
Files/folders starting with a dot are generally invisible files. Like the .htaccess file. Or the known files on Mac OS X like .DS_Store that are normally invisible.
Are you maybe uploading via FTP and using another tool for local image management that might use invisble files for managing its own stuff?
About the only thing I can think of is that the representation for the period on your system is somehow not the ASCII/UTF-8 period representation.
At any case, this is not something that has changed on the 1.4.5 release, so perhaps something on your server has changed?
I also ran the setupscript again and changed the charset to "filesystem" but 30 minutes after refreshing the zenphoto db the "." folder reappears in the database and the images start to double themselves.
do you have another guess where i might look for the error?
Thanks a lot, have a nice weekend!
Right now, i waited until zenphoto created every folder twice in the db and then i have set the duplicate albums invisible. That works quite well even if its a very dirty and unprofessional solution
Do you have any hint what i could do to exclude the images on search.php which "folder" in the db begins with ./?
Or do you have another guess what could cause the problem?
Thanks a lot
You could try the support build that should ignore files/folders beginning with "." explicitly now. Maybe that helps.
Is there a way to access the "folder" of the image on search.php so i can filter out the duplicate images in the template?
Zenphoto will discover them regardless if they are there. I still don't get what these folder actually are and why they are there at all. You could try a function to clear the database from these regulary.
Do you think this could have anything to do with this problem?
You can take a look at the `filter-file-searches` plugin that I mentioned. If you can discover the pattern of these folders you can modify that script to ignore them.