Copied to clipboard

Flag this post as spam?

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


  • Jeroen Vantroyen 54 posts 394 karma points c-trib
    May 17, 2021 @ 12:36
    Jeroen Vantroyen
    0

    After upgrade, variant properties are empty until item is saved again

    I just upgraded from 8.5.3 to 8.13. At first glance, all was well.

    However, when I fetch an item in the frontend, for instance: a list of menu-items, I see the value of all variant properties is empty.

    If I save the item in question, it starts working again. If I save and publish with descendants, only the top item starts working again. You can imagine I do not fancy going over each and every item and saving it, then doing it again for the production environment just after relasing the new version.

    While debugging, I can see the following:

    • item.properties[0]._sourceValue = "Photos"
    • item.properties[0].sourceValues[0].Value.sourceValue = null

    After saving the item (when it starts working), the values are reversed:

    • item.properties[0]._sourceValue = null
    • item.properties[0].sourceValues[0].Value.sourceValue = "Photos"

    I am assuming this has something to do with:

    • the newer version handling variant properties different?
    • some persisted cache containing older data? I tried clearing all caches that I know exist, to no avail.

    In the following screenshot, you see my debug window. Does this give any clue to any of you?

    enter image description here

  • Jeroen Vantroyen 54 posts 394 karma points c-trib
    May 17, 2021 @ 13:03
    Jeroen Vantroyen
    0

    Ha!

    After rebuilding indexes and doing an export/import with uSync and still not seeing my data, I realized I may have cleared the caches earlier, but in the wrong order.

    Usually, when I suspect a cache issue, I try "Reload memory cache" because it doesn't cost a lot. Then a "Rebuild Database cache", which takes longer and sometimes solves the issue.

    After the second one, nothing was working still, but when I did the first one again, all my data started appearing again.

    I will try again on a different environment, to confirm that's all there is to it.

  • Jeroen Vantroyen 54 posts 394 karma points c-trib
    Jun 24, 2021 @ 08:33
    Jeroen Vantroyen
    100

    Confirmed:

    1. Rebuild database cache
    2. Reload memory cache
Please Sign in or register to post replies

Write your reply to:

Draft