Renaming Tags Problem
|
Jonreynolds
Joined: 2008-03-09
Posts: 96 |
Posted: Thu, 2011-01-13 23:04
|
|
Hi all, I am using the latest git pull. I went to manage Tags to rename some tags (something I was used to doing in G2). The facility is obviously there but there seems to be some problems. 1. When just capitalising a tag e.g. from 'tag' to 'Tag' it says, error, tag already exists. So I got round this by renaming it twice: 'tag' > 'tagx' > 'Tag'. 2. Now that I have renamed some tags, they now appear as (0) items, and not all appear in the tag cloud any more. As if they have been lost Hope someone can help. Jon Reynolds |
|

Posts: 96
p.s. I have tried running the update tag maintenance task to no avail.
The odd thing is this only happened to some of the tags, not all.
Jon Reynolds
www.jcrdevelopments.com
Posts: 96
Hmm, funky update.
I decided to re-add the same tag that had gone missing to some items and bang, they ALL came back (but not with the new name)
So is rename not quite working?
Can I edit these in my database directly for now?
Thanks
Jon Reynolds
www.jcrdevelopments.com
Posts: 25964
The rename issue should be fixed now.
https://github.com/gallery/gallery3/commit/02f30b91bf8f68118a578de2194e66a7a16a291a
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 96
Rename issue fixed, but it seems to break when you click on a tag in the cloud. Get an internal server error.
Also, the tags that I renamed before this update, they work, as in when I click on them (before applying the update) I get the dynamic views of the items with that tag, but the size of the tag in the cloud does not represent the number of items with that tag.
The system thinks it has zero tags with that name...is there a way I can get it to 're-count' items with that tag?
Thanks
Jon Reynolds
www.jcrdevelopments.com
Posts: 25964
Example?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 25964
We have to distribute the tags in seven 'buckets'.
you have 3 buckets in use now:
902 photos are tagged with charlie so that get size 7
208 photos are tagged with rhys so that gets size 1
the rest are smaller so they get size 0
If you want more even fost size distribution you would have to edit the tags module algorithm for the bucket sorting or change some tags for more even distrobution.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 96
Hmm, sorry, the first part of my reply seems to have gone away.
...and I was just about to say that I still had the problem with the tag cloud but that was my error... the numbers were not sufficient to make a difference to the tag cloud link sizes... I added some more to change the numbers and the sizes do change
Thank you very much for the prompt update!
For future reference, when I come across bugs like this, is it best to just start a new post in forums highlighting my problem or is there a bug tracker somewhere that would be better?
Jon Reynolds
www.jcrdevelopments.com
Posts: 25964
There is a bug tracker but is is best to post in the forums first after you try an experimental version.
http://sourceforge.net/apps/trac/gallery/report just login and you will see a new ticket link. Registration is free.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 18
Hi,
may I report about tags too? Not the renaming, but tags... Ok - I use czech charset and special characters (žščř...). If I create new tag with some of those chars, it writes it correctly into db but when I click on some tag in the cloud (or list), no tagged pics show. I discovered it's because the producted link of the tag is written wrongly: http://amihere.shacknet.nu/gallery3/index.php/tag/jesky%EF%BF%BD_ instead http://amihere.shacknet.nu/gallery3/index.php/tag/jesky%C5%88. So there's some problem in the interpreting of special characters in the generated link.
I know it's problem with the charsets in the links and the only idea occurre to me is to make some workaround with shown name and generated name in the database.
So you could have db table with one more column: Id, name_with_spec_chars (shown in the cloud), name_without_spec_chars (generated in the links), count.
For example: Id(1), name_with(jeskyňaření), name_without(jeskynareni), count()
Do you thing it is implementable into tags system?
Posts: 25964
žščř
works for me
another thread with special characters:
http://gallery.menalto.com/node/100057
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 18
All right, clear testing gallery 3.0 works fine. So I don't know what's wrong with the "older" one because it's the same release and is only two days older...
Anyway - isn't better the system with "non-special-chars-links"? Because I cannot imagine how someone abroad writes czech chars and on the other side how I can write for example azbuke or mentioned swedish or german chars. I'm not programmer so I cannot help you or write some code myself, but as user it's much comfortable to remember non-diacritics links instead links with the strange unwritable "hooks over n" for me
And if gallery3 supports editable links and names for albums/photos, why not for tags which generate links too?
Posts: 25964
I will let our internationalization expert chime in.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 18
Dave, some questions: Are the tags written into file? Or are they stored somehow in a var directory? Because I copied var dir from the gallery with corrupted chars into new one with own set of tags and the tags were somehow rewritten and now there is the corrupted set of old tags in the new gallery... Ghost in the machine or are the tags stored on more places with db included?
EDIT: I found database.php now and the access to old gallery
So it's ok now
Posts: 25964
Tags are stored in the DB.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team