ZenphotoCMS Forum
random image in effervescence theme - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: random image in effervescence theme (/thread-1204.html)



random image in effervescence theme - monster - 25-02-2007

Hi,
I use modified effervescence theme in my gallery
http://www.pawelnawrocki.com/zenphoto/
generally it works great, but very rarely I get some minor bug,
which makes that no random image loads and I can see "Image not found", take a look
http://www.pawelnawrocki.com/files/ScreenShot020.jpg
Maybe you know what may cause this problem?
Try reloading few times this gallery http://www.pawelnawrocki.com/zenphoto/
and there is small chance, that you will hit on NoImage in the head

Thanks in advance




random image in effervescence theme - trisweb - 25-02-2007

Yes, it actually seems to be not found! I believe that's just a deleted/renamed/moved image that still has a database entry, which needs to be cleaned.

In admin, in the center column, by the image count, click "[Refresh]". that should fix it.




random image in effervescence theme - monster - 26-02-2007

hmm,
when i hit "refresh" in gallery stats window the number of photos doesn`t change :(
Admin page says that there are "There are 700 images in a total of 14 albums [refresh]"
but in fact there only 620 images in 12 albums,
why the [refresh] makes no effect? I have no idea :(
Maybe b/c of safe_mode is On?




random image in effervescence theme - trisweb - 26-02-2007

If that's true (your image counts) then it's definitely a database problem... hmm... I'm reworking the garbage collection code for 1.0.8, so perhaps that will help.

Until then, perhaps look manually at the database tables (albums first, then images), especially for photos with / or ./ in their album names.




random image in effervescence theme - monster - 26-02-2007

I deleted manually using phpMyAdmin right records from zen_images and zen_albums
and problem disappeared.
Many Thanks




random image in effervescence theme - trisweb - 26-02-2007

What did the deleted records look like? Did they have extra characters or something? Thanks.




random image in effervescence theme - bjornh - 26-02-2007

Monster, I really like you integration of lightbox into effervescence. Any chance that you can share the theme?




random image in effervescence theme - monster - 26-02-2007

@tris
they came from deleted subalbums
(I was doing some tests with subalbums, I deleted photos with ftp, but admin.php
didnt erase their records from database). when I delete photos from base albums everything goes right ...

@bjornh
we can negotiate :D lol
it`s very easy and takes less thank two minutes to implement slimbox/lightbox..whateverJS
to any theme you want :)
I have described in this topic
http://www.zenphoto.org/support/topic.php?id=1242&replies=9

But if you are lazy... (I suppose not :D) I can send you modified effervescence theme with lightbox system ...




random image in effervescence theme - trisweb - 26-02-2007

@monster -- gotcha. Thanks.




random image in effervescence theme - monster - 27-02-2007

@tris
It`s me to be grateful for your work.
Really great job.




random image in effervescence theme - bjornh - 27-02-2007

@monster
Thanks I will look at it. Time to start learning something about php :-)