![]() |
|
Image regeneration. - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Image regeneration. (/thread-2181.html) |
Image regeneration. - vikaskbh - 2008-02-02 Hi, Can any one tell me, when zen photo automatically do re-entries for albums & images though its already exist? i.g. One I have uploaded image & gave proper it's title & description. But after some time, i have noticed that in my newly added images, old images coming again. because album & images entries are again added to database automatically by zenphoto. Can any developer guide me how to disable it, I am still using old zen photo. Regards Image regeneration. - acrylian - 2008-02-02 Generally zenphoto should only images/albums to the database if you change anything on the filesystem or delete the cache. I don't know where this could come from, but zenphoto before 1.1. had some problems with database garbage problems sometimes. Which version are you using? Image regeneration. - vikaskbh - 2008-02-02 Can you tell me, which file, function I can refer, to stop this... Once you point me, the function, where zenphoto do this database adding stuff, i can write wrapper function to deal with it... Otherwise I have to digg into entire code once again after 6 months. Image regeneration. - vikaskbh - 2008-02-02 Is it...
// Set default data for a new Album (title and parent_id) Under... // Constructor class-album.php?????? & if ($new) { Under... // Constructor Image regeneration. - vikaskbh - 2008-02-02 or in classes.php function load() { If I comment $this->save(); will it affect anywhere else? Image regeneration. - sbillard - 2008-02-02 You should not mess with these functions. Things may not work correctly. If you have "orphan" records in your database, use the "refresh the database" button in admin or for individual albums on their edit page. If you wish to get rid of an old image, you must delete it from your albums folder either through the admin interface or via FTP. Zenphoto will always add back images it finds that are not in the database. Image regeneration. - vikaskbh - 2008-02-02 I don't know, what exactly happening, though image already is there in directory as well as database, sometimes it adds duplicate entries into database. Image regeneration. - vikaskbh - 2008-02-02 So, my newly added images show that old images as new images. Image regeneration. - vikaskbh - 2008-02-02 even it's adding robots.txt into database (because every search engine's find it)???? do you think, if you make unexpected requests... you can fill database with garbage??? Plz think about it... & it's really a bug, i am with you guys to resolve this bug. Image regeneration. - sbillard - 2008-02-02 Zenphoto will not add anything to the database that is a text file. Especially ones that are not in the albums folder. It sounds like there is something wrong with the pointer to your albums folder. Did you specify an external folder? Image regeneration. - vikaskbh - 2008-02-02 It may possible, sometimes so much parallel connection, in function load(), query entry = query_single_row('SELECT * FROM ' . prefix($this->table) . get's fail & next line if (!$entry) { get executed, so that duplicate entries are stored in database? Image regeneration. - vikaskbh - 2008-02-03 Have you done any load testing for large application? Image regeneration. - acrylian - 2008-02-03 See here: http://www.zenphoto.org/support/topic.php?id=2255&replies=3 Image regeneration. - vikaskbh - 2008-02-04 Sorry, I Found it, it's the problem of zenphoto plugin created my me.... Image regeneration. - sbillard - 2008-02-04 Thanks for letting us know. |