Vanilla 1.0.1 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorketsugi
    • CommentTimeDec 19th 2006
     
    I'm using UTW 3.141592 on a trunk copy of WordPress (2.1alpha3), current at the time of posting.

    Whenever a comment is added to a post, the post's tags gets reset to DEFAULT_TAG_NAME.

    I don't really expect much to be done about it at this point, but I thought I'd just let you know that there may be a compatibility issue once WP 2.1 is released.
    • CommentAuthoradmin
    • CommentTimeDec 19th 2006
     
    Ooh. Interesting. Thanks for letting me know.
    • CommentAuthorketsugi
    • CommentTimeJan 5th 2007
     
    As an aside, this behaviour appears whenever a comment or a trackback is added to a post, whether by a non-registered or a registered user. However it doesn't seem to affect entries if the comment goes into the moderation queue or is marked as spam.

    It's getting a tad annoying now because it means that everytime I receive a comment or a trackback, I have to edit the entry and tag it again.
    • CommentAuthorketsugi
    • CommentTimeJan 5th 2007
     
    I logged the SQL queries that WP was doing when a new comment was added:

    INSERT INTO wp_comments
    (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved, comment_agent, comment_type, comment_parent, user_id)
    VALUES
    ('1', 'admin', 'ccc@xxx.com', 'http://ketsugi.com', '127.0.0.1', '2007-01-06 00:20:43', '2007-01-05 16:20:43', 'test', '1', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.7) Gecko/20060911 Camino/1.0.3', '', '0', '1')
    UPDATE wp_posts SET comment_count = 4 WHERE ID = '1'
    delete from wp_post2tag where post_id = 1
    DELETE FROM wp_postmeta WHERE meta_key LIKE '_utw_tags_%' AND post_id = '1'
    INSERT INTO wp_postmeta (post_id,meta_key,meta_value) VALUES ('1','_utw_tags_0','no tags')

    I guess the interesting bit is the delete statement for the wp_post2tag table. I'm not sure why exactly that's getting called, but this might help you in trying to pinpoint the problem.
    • CommentAuthoradmin
    • CommentTimeJan 9th 2007
     
    Have a look at this blog entry, and see if it fixes what you're seeing: http://moeffju.net/blog/2006/12/25/wordpress-21-alpha3-utw/
    • CommentAuthorketsugi
    • CommentTimeJan 9th 2007
     
    Hi,

    Yes that fixed it. I had to edit ultimate-save-tags-actions.php; editing ultimate-save-tags-actions-wordpress2.php didn't have any effect. Thanks!
    • CommentAuthorlesbessant
    • CommentTimeJan 16th 2007
     
    Testing with WP2.1 Beta4.

    This fix *does* work if the comment is automatically accepted. However, if it has to be approved, then when the admin approves it, the tags get wiped out as before.
    • CommentAuthorketsugi
    • CommentTimeJan 17th 2007
     
    Seems to be fixed in the 3.1415926 release. Thanks, Christine!
    • CommentAuthorketsugi
    • CommentTimeJan 17th 2007
     
    lesbessant is right: comments that go into the moderation queue, or get marked by Akismet, still end up deleting the tags.
    • CommentAuthoradmin
    • CommentTimeJan 17th 2007
     
    Pants.

    Will have to see what I can figure out..
    • CommentAuthorketsugi
    • CommentTimeJan 24th 2007
     
    Seems that receiving trackbacks or pingbacks also triggers the tag deletion.
    • CommentAuthorkylewriter
    • CommentTimeJan 25th 2007
     
    It's not just adding/moderating comments or trackbacks. I use the myStatus widget, and when I make changes in that, it also deletes the tags.