Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Luke Alderton 192 posts 509 karma points
    Apr 27, 2012 @ 12:24
    Luke Alderton
    0

    Cant remove tags

    When in uBlogsy, I can't remove any tag from a post however it will let me add with no problem at all. uBlogsy was downloaded using the Ubraco Repository, the version is 2.1.0.0 on Umbraco version 4.7.1 using IIS 6.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 27, 2012 @ 14:25
    Anthony Dang
    0

    In firebug or chrome console, check to see if there are any js errors.

     

  • Luke Alderton 192 posts 509 karma points
    Apr 27, 2012 @ 15:13
    Luke Alderton
    0

    Ive checked through the code and compared it to another, older site I have, it seems that both sites are running Umbraco 4.7.1 however one has uBlogsy 2.1.0.0 (the one giving me trouble) and the other has 2.0.0.1, I've checked to see the difference in the Javascript and it seems that the 'handleClickDelete function is different between these two versions, this could possibly be what is causing it.

    I also recieve an error stating 'event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.' whenever I click delete on a tag.

  • Luke Alderton 192 posts 509 karma points
    May 18, 2012 @ 15:01
    Luke Alderton
    0

    Has this been solved?

  • Luke Alderton 192 posts 509 karma points
    May 25, 2012 @ 14:52
    Luke Alderton
    0

    I've noticed that if you add a tag, it can be removed streight away however if you publish the post that it's on, you then cant remove it and it's the same for any other tags you add. Tags can only be removed if the changes haven't been saved/published.

    Once again, any help would be appretiated.

    Thanks in advance.

  • Luke Alderton 192 posts 509 karma points
    May 25, 2012 @ 15:42
    Luke Alderton
    1

    Okay, I've solved the problem by commenting out lines 162 to 164 in the uTagsy.ascx file, the script that causes the problem looks like this:

    if (tagIndex == -1) {
    return false;
    }

    Thanks for the help anyway.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    May 29, 2012 @ 20:14
    Anthony Dang
    0

    Strange.

    I'll have to take a look at that.

    Is it only happening in chrome? and which verion of chrome?

     

  • Luke Alderton 192 posts 509 karma points
    May 30, 2012 @ 14:44
    Luke Alderton
    0

    this happens in all browsers not just chrome, the the problem seems to only happen on published tags.

  • Funka! 398 posts 661 karma points
    Jun 13, 2012 @ 23:39
    Funka!
    0

    I am also experiencing this. Clicking the [ X ] next to a tag doesn't do anything. This is in Chrome on Windows 7. Opening up Chrome's Inspector console does not reveal any JS errors when I click. It's just that nothing happens.  I then tried in Firefox 12, same (lack of) effect and nothing in the Firebug console either.

    Interestingly, our client reported another weird (possibly related!) error at one point with the tags. (See screenshot below.)  I have not been able to replicate this on my Windows machine; when I look at the posts I don't see this for myself. (Note, she is using Chrome on a Macintosh, so maybe that has something to do with it?) I also wonder if it has anything to do with the apostrophe she used in one of the tags? Here's the screenshot she sent me (with my own redactions, not hiding anythning unusual)...

    Thank you! In the meantime, I'll try the workaround that Luke suggested.

     

  • Funka! 398 posts 661 karma points
    Jun 14, 2012 @ 00:03
    Funka!
    0

    OK, I have spent a few moments debugging the problem, thanks to Luke's previous work. It seems that the "probably redundant check" that is happening on line 161 of uTagsy.ascx is confused. Only new, unpublished tags are prefixed with the nodeId. Previous, already-published tags are NOT prefixed with the nodeID.

    To test this, I added a new tag called "asdf" and then immediately tried to delete it. Pausing execution at this point shows that the "asdf" tag is prefixed, but all of the others are not. Here's a screenshot: (I had to tweak my screenshot because umbraco forums apparently limit max width to 500px, hopefully is readable enough to see what i'm talking about)

     

    Thanks again for your attention to this matter, and for all of your hard work in making this project in the first place!

     

  • Funka! 398 posts 661 karma points
    Jun 14, 2012 @ 00:04
    Funka!
    0

    Note to self, the 500px image shrinkage is apparently only shown to you in the richtext editor while composing the post. Acutal posted image looks fine.!

  • Funka! 398 posts 661 karma points
    Jun 14, 2012 @ 02:12
    Funka!
    0

    I ended up not just commenting out the lines 162 through 164, but modifying them since it looked like i still needed "tagIndex" to have an actual value... Here's what I changed:

    if (tagIndex == -1) {
        // MODIFYING TO FIX BUG, SEE  http://our.umbraco.org/projects/starter-kits/ublogsy/ublogsy-bugs/31235-Cant-remove-tags
        //return false;
        tagIndex = $.inArray(tagToRemove, uTagsy.tags); // Because published tags don't include the prefix!
    }

    Thanks again!

  • Luke Alderton 192 posts 509 karma points
    Jun 15, 2012 @ 12:11
    Luke Alderton
    0

    This works, thanks for looking further into it!

Please Sign in or register to post replies

Write your reply to:

Draft