Copied to clipboard

Flag this post as spam?

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


  • Nigel Wilson 944 posts 2076 karma points
    Dec 15, 2011 @ 19:48
    Nigel Wilson
    0

    Tag Deletion Bug

    Hi all 

    Yesterday I discovered a bug in the code relating to deleting tags which I think was introduced between release 1.0 and 1.1.

    When right clicking a tag and selecting "Delete" the tag would be deleted client side (removed from the tree) however the database call was not being activated.

    This I have corrected now and updated the package.

    If you have already installed the package then you can simply grab the Yoyocms.Umbraco.TagManager.dll.zip file in the documentation and replace the dll in the bin directory.

    NIgel

  • moalex 1 post 21 karma points
    Mar 28, 2012 @ 14:21
    moalex
    0

    Hi Nigel!

    Thanks for this package, it`s very simple and functional!

    We experienced problems with tags deletion and we have update Yoyocms.Umbraco.TagManager.dll from archive file in Documentation section, but stil can`t delete tags.

    When we try to delete tag appears popup notification baloon with the following text:

    "Error handling action

    There was an error processing the request"

    Can you help to fix this problem?

    Sincerely yours,

    Alex.

  • Zac 239 posts 541 karma points
    Jun 05, 2012 @ 17:50
    Zac
    0

    Hi Alex and Nigel,

      Did you have any luck solving this issue?  I encountered the same issue "Error handling action. Object reference not set to an instance of an object" upon attempting to delete any tag from the Tag Maintenance section.  I'm receiving this error in Chrome.

      It appears to be an issue with the delete function.  Here's the ajax/js error that is reported upon calling the Delete function via a post to /umbraco/webservices/legacyAjaxCalls.asmx/Delete 500 (Internal Server Error).  The full details are below.

      Great work on the project.  Is this open source?  If so, I could look into the error and fix it.

    Thanks

     

    /umbraco/webservices/legacyAjaxCalls.asmx/Delete 500 (Internal Server Error)  ScriptResource.axd:5
    Sys.Net.XMLHttpExecutor.executeRequest ScriptResource.axd:5
    Sys.Net._WebRequestManager.executeRequest ScriptResource.axd:5
    Sys.Net.WebRequest.invoke ScriptResource.axd:5
    Sys.Net.WebServiceProxy.invoke ScriptResource.axd:5
    Sys.Net.WebServiceProxy._invoke ScriptResource.axd:5
    umbraco.presentation.webservices.legacyAjaxCalls.Delete js:17
    umbraco.presentation.webservices.legacyAjaxCalls.Delete js:54
    actionDelete DependencyHandler.axd:64
    ctxMenu.action /umbraco/umbraco.aspx#content:212
    $.extend.contextmenu.exec DependencyHandler.axd:363
    (anonymous function) DependencyHandler.axd:365
    M DependencyHandler.axd:2
    f.event.handle DependencyHandler.axd:2
    f.event.add.i.handle.k

  • Zac 239 posts 541 karma points
    Jun 05, 2012 @ 18:22
    Zac
    0

    FYI: Here's the detailed error received by the ajax post failure.

    post: {"nodeId":"5","alias":"","nodeType":"tagMaintenance"}

    response:
    {"Message":"Object reference not set to an instance of an object.","StackTrace":" at umbraco.presentation.create.dialogHandler_temp.Delete(String NodeType, Int32 NodeId, String Text)\r\n at umbraco.presentation.webservices.legacyAjaxCalls.Delete(String nodeId, String alias, String nodeType)","ExceptionType":"System.NullReferenceException"} 

  • Nigel Wilson 944 posts 2076 karma points
    Jun 07, 2012 @ 21:45
    Nigel Wilson
    0

    Hi Alex and Summit

    Sorry but I did not receive any notification re the above - not sure why not.

    Will be in touch soon.

    Again sorry for inadvertently ignoring you.

    Nigel

     

     

  • Zac 239 posts 541 karma points
    Jun 07, 2012 @ 21:49
    Zac
    0

    Thanks a lot Nigel, I figured you weren't receiving the notifications.

    Thanks

    Zac

  • Nigel Wilson 944 posts 2076 karma points
    Jun 09, 2012 @ 20:17
    Nigel Wilson
    0

    Hi Alex and Summit

    I have just installed a clean copy of 4.7.2 with a starter kit and then installed the tag manager package.

    I have added tags via nodes in the content tree. These appeared as expected in the custom tag manager tree.

    I then deleted a tag within the custom tag manager tree - this worked fine. I reloaded the tree and the deleted tag was not listed. I have also checked the content node and the tag has been removed there too.

    So, sorry I can't replicate your problem and the package (for me) is working fine.

    Are you able to provide a bit more detail - the version of your site, is it an upgraded site, can you spin up a test site like I have done and does it work in that site.

    Cheers

    Nigel

  • Zac 239 posts 541 karma points
    Jun 10, 2012 @ 20:56
    Zac
    0

    Nigel,

      Thanks for all of your help resolving this.  Upon debugging this, I found that the issue was pretty simple.  The required entries to the umbraco\config\create\UI.xml file were not added on installation (probably due to a permissions issue when it was installed).  I thought I'd previously looked into this, but apparently not.  

      The fix is simple, just add the following xml to the UI.xml config file:

      <nodeType alias="tagMaintenance">
        <header>Tags</header>
        <usercontrol>/create/simple.ascx</usercontrol>
        <tasks>
          <create assembly="Yoyocms.Umbraco.TagManager" type="TagTasks" />
          <delete assembly="Yoyocms.Umbraco.TagManager" type="TagTasks" />
        </tasks>
      </nodeType>

    Thanks again for all of your help and great work on the package!

    Zac

  • Nigel Wilson 944 posts 2076 karma points
    Jun 11, 2012 @ 00:03
    Nigel Wilson
    0

    Hi Zac

    Good to hear you tracked down the problem and cheers for posting the reason - may assist others in the future.

    Cheers

    Nigel

Please Sign in or register to post replies

Write your reply to:

Draft