Skip to content

Content disappearing since 1.5.2 #38

Closed

Description

@PerplexDaniel

We see some issues in 1.5.2 where content does not show up in the backoffice after publising and refreshing the page. Content still shows up on the front-end and still exists in the database.

This issue is seen internally at Perplex and also reported at Our Umbraco.

The data is still present in the database, so the issues is most likely caused by the changes in #34 , probably in the ToEditor().

I cannot reproduce this in the Demo Site included in the solution it seems, which is unfortunate.

Activity

  1. added
    accepted
    bug
    on Aug 27, 2020
  2. PerplexDaniel commented on Aug 27, 2020

    @PerplexDaniel
    MemberAuthor

    Possible fix in 69cc4f7, not sure why it ends up in the fallback case there.
    Turns out the ToEditor() from NestedContent which we call sometimes returns "" instead of an actual value.
    We see this in an 8.6.4 project, but not in 8.6.1 (DemoSite).

  3. PerplexDaniel commented on Aug 27, 2020

    @PerplexDaniel
    MemberAuthor

    It appears that this issue only occurred in multilingual settings, i.e. where the culture of the ContentBlocks property is not null.
    There was a bug in the way we were calling some Nested Content method in our ToEditor() method which is fixed by the linked PR.
    I believe this fixes the issue and will be released after some tests somewhere in the next 24 hours.

  4. duanleou90 commented on Aug 28, 2020

    @duanleou90

    It appears that this issue only occurred in multilingual settings, i.e. where the culture of the ContentBlocks property is not null.
    There was a bug in the way we were calling some Nested Content method in our ToEditor() method which is fixed by the linked PR.
    I believe this fixes the issue and will be released after some tests somewhere in the next 24 hours.

    I'm glad that you will fix it soon. Thanks!

  5. PerplexDaniel commented on Aug 28, 2020

    @PerplexDaniel
    MemberAuthor

    I have just released 1.5.3 which should fix this issue. If anyone still experiences issues with this when using 1.5.3, please let us know.

  6. duanleou90 commented on Aug 28, 2020

    @duanleou90

    I have just released 1.5.3 which should fix this issue. If anyone still experiences issues with this when using 1.5.3, please let us know.

    I have just tested it on my local instance. And it works well now. Thanks for fixing soon!

  7. joepvtl commented on Oct 21, 2020

    @joepvtl

    Hey @PerplexDaniel,

    We are experiencing this issue. We updated our environment from 1.4.2 to 1.6.0 and now when we save a page that has NC inside of the blocks they dissapear from the backoffice.

    We are using Umbraco 8.8.0

    -Joep

    cc// @vavdb

  8. PerplexDaniel commented on Oct 21, 2020

    @PerplexDaniel
    MemberAuthor

    Coincidentally someone on Our also reported this today.
    Seems indeed again related to the same section of the code, so until we have looked into this and released a fix I recommend to use <= 1.5.1.

    Apparently the issue now only occurs for certain data types which is interesting. I'll try to reproduce this later this week.

  9. PerplexDaniel commented on Oct 22, 2020

    @PerplexDaniel
    MemberAuthor

    Oh I see. Umbraco recently (I think in 8.7.0) changed the returned values from NestedContent's ToEditor() method which we call in ours. It used to be a simple List<JObject> (which is what we check for), but has been updated to IReadOnlyList<NestedContentValues.NestedContentRowValue> in this commit.

    So this probably was caused by the Umbraco upgrade rather than the original bug of this issue.
    Regardless, I have added a commit which should fix this. It no longer does an exact type check on List<JObject>. Will test it a bit more and should be released soon.

    You can of course clone the PR branch and compile Perplex.ContentBlocks.dll yourself to test if this fixes the issue.

  10. PerplexDaniel commented on Oct 26, 2020

    @PerplexDaniel
    MemberAuthor

    @joepvtl I just pushed 1.6.1 to NuGet, this should fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

acceptedbug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions