+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / News Module - Edit Sub Category Issue

News Module - Edit Sub Category Issue

4 posts, 0 answered
  1. Steven
    Steven avatar
    3 posts
    Registered:
    09 Jun 2008
    21 Jan 2011
    Link to this post
    We have a client that is making heavy use of the News Module in Sitefinity version 3.7 Standard Edition. To give you an idea of the heavy use, there are currently 4 main News Categories defined. Then 3 of the 4 main News Categories each have Sub Categories. One of them has 34 Sub Categories and another has 53 Sub Categories.

    The actual total number of News Categories and Sub Categories is 92, and that count includes the 4 main News Categories and Sub Categories. To give you a better picture, here is an actual outline of the News Categories in this site:

    Cases/Injuries (34 Sub Categories)

      17 Sub Categories
        - Each with 1 Sub-Category

    Frequently Asked Questions (0 Sub-Categories)

    How We Help (1 Sub Category)
       - 1 Sub Category

    Safety/Product Recalls (53 Sub Categories)

       Automobiles & Tires
        - 5 Sub Categories

       Child Products
        - 6 Sub Categories

       Food
        - 5 Sub Categories

       Health & Saftely
        - 6 Sub Categories

       Medical Products
        - 4 Sub Categories

       Pharmaceutical Products
        - 14 Sub Categories

       Road & Highway Safety
        - 6 Sub Categories

    The problem is that now when the client attempts to go into the Modules > News > Categories and then Edit a Sub Category, an Application Error occurs. The client is trying to Edit a Sub Category under "Parmaceutical Products" to move it to be listed under "Medical Products" (change its parent Sub Category).

    Here is the actual Application Error that is being returned and any help or direction that can be provided would be much appreciated:

    Server Error in '/' Application.


    You cannot change a value of an object that is not in transaction.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: Nolics.ORMapper.Base.NolnetException: You cannot change a value of an object that is not in transaction.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

     
    [NolnetException: You cannot change a value of an object that is not in transaction.]
       Nolics.ORMapper.Base.OdbClassHelper.CheckAssign(IOdbView clView, String propertyName, Object oldValue, Object newValue) +170
       Telerik.Cms.Data.PageContentBase.set_TemplateID(Guid value) +120
       Telerik.Cms.Data.StagedPage.Copy(StagedPage source, PageContentBase target) +113
       Telerik.Cms.Data.StagedPage.Publish() +215
       Telerik.Cms.Data.CmsPageContent.Publish() +93
       Telerik.Cms.Engine.ContentManager.UpdateContentCategory(String oldCategoryName, String newCategoryName) +1007
       Telerik.Cms.Engine.WebControls.Admin.CategoriesView`1.RenameCategory(Guid categoryId) +446
       Telerik.Cms.Engine.WebControls.Admin.CategoriesView`1.Button_Command(Object sender, CommandEventArgs e) +214
       System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +108
       System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135
       System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

     


    Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 Jan 2011
    Link to this post
    Hello Steven,

    It is a bug in our code. It comes from UpdateContentCategory method. We will try to sort out the issue for the next SP. Unfortunately I am not able to come up with a temp solution, because the UpdateContentCategory method could not be overridden.

    The error is thrown, because there is CategoriesTree or CategoriesList control on a page and when a category is renamed we are trying to update the reference.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Steven
    Steven avatar
    3 posts
    Registered:
    09 Jun 2008
    15 Feb 2011
    Link to this post
    Hello my Supervisor would like me inquire further about more details related to this bug. We are currently in a re-design/re-build mode on this project that contains the 92 News Categories and Sub Categories.

    We need to know the answer to the following questions if possible:

    Is the bug
    in the Telerik Sitefinity code that you referenced specific to the number of News Categories?

    Is the bug in the Telerik Sitefinty code that you referenced specific to the number of News Articles? For example, would a 1000+ News Articles be enough weight on the News Module to break it or trigger this bug and error?

    We are trying to get some more foresight into this News Module issue to better understand the nature of the bug and use this information to make better decisions on how to balance the data/content in the re-build of this clients website.

    Thanks,

    Steven
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Feb 2011
    Link to this post
    Hi Steven,

    The problem is not related to the number of categories or artilces. It could be caused even with one category on a page. When you rename a category our code is trying to rename the category that is displayed by CategoriesTree control and here is where the problem comes from. The actual page object cannot be added to data transaction - we cannot commit the transaction due to some reasons.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered