Copied to clipboard

Flag this post as spam?

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

  • Chantal 15 posts 156 karma points
    Aug 02, 2021 @ 14:45

    Block List Editor Content keeps disappearing

    Hello there!

    I created a block list for my home page. There I have three different element types that the editor can choose from.

    I thought it would be nice if the editor could choose the background color for the sections they create. So I created an element type called bg settings and added a color picker with three colors. I added the bg settings as the settings element type as described in the documentation and went to the content section to try it out.

    I could click on the settings icon and choose a color, but as soon as i klicked save the block I just added the settings to dissapears. Also any blocks of the same type disappear too. When I then remove the bg-settings back in the settings section in the block list data type the blocks reappear (sometimes they don't and are gone for good, I tried multiple times). I tried the same with a numeric editor instead of a color picker, just to make sure it's not a problem of the color picker for some reason and I get the same result.

    Am I doing something wrong? By the way I'm using Versino 8.15.1, if that's relevant.

  • jake williamson 206 posts 871 karma points
    Aug 07, 2022 @ 23:49
    jake williamson

    hi chantal,

    did you ever solve this? we have the exact same problem in a project that started life in v9.

    everything was working completely fine then all of a sudden the block list content stopped saving to the database.

    the sequence is:

    1. edit a node
    2. add a content item in the block list (everything edits fine, looks fine in the editor etc)
    3. hit save or save and publish and the block list content disappears

    if you reload the node in the backoffice the block list content isn't there.

    we've also recently updated the project to v10 and the problem is still there.

    it's a real pain! there's no errors in the log or anything else that would indicate what the problem is...

  • Damien Holley 176 posts 536 karma points
    Aug 09, 2022 @ 00:02
    Damien Holley

    +1 here - getting blocklist blank out on 8.14 every time we publish to the server.

    I am not using settings on the block.

    My sequence:

    1. add blocks to the blocklist
    2. publish from develop branch to UAT
    3. all blocks added on UAT disappear
  • Rebecca 1 post 71 karma points
    Aug 23, 2023 @ 16:07

    I'm also having this same issue in version 10.2.1. Blocklist is full of content 16-17 items, then we

    1. Edit the node
    2. Add another item to block list
    3. Hit save and publish and list returns empty

    When I check the version history / i can see the old contents of the list in the previous version, but when i rollback the list is still empty.

    Anyone get anywhere with how to resolve this? Tempted to back to nested content until it stops happening at least the items stayed in place! :(

  • Kasper 11 posts 82 karma points
    7 days ago

    Not sure if this fix is too specific to my project, but wanted to post anyway in case it could help someone else narrow down the problem.

    I was facing this issue yesterday, and found the issue was lying with one of my notification handlers that was running on the 'publishing' event.

    The handler would try to deserialize the JSON property value from a blocklist property into a Umbraco.CMS.Core.Models.Blocks.BlockValue.cs object.

    This had previously worked when using NewtonSoft Json.NET, but after switching to using System.Text.Json, the ContentData property of the BlockValue would be empty.

    Switching back to NewtonSoft fixed the issue for now.

  • Damien Holley 176 posts 536 karma points
    6 days ago
    Damien Holley

    Avoid System.Text.Json it is very flakey and often hits major issues in my experience. I have tried using it in Net 6, Net 7, and Net 8.

    For the others, bust your cache and see if it comes back. Check in the SQL for the missing data, is it in the blocklist still or is the json for that now empty?

Please Sign in or register to post replies

Write your reply to: