Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Random bug where pages in a collection disappear (but still in database)

default discord avatar
markatomniux2 years ago
5

I started getting this really weird issue after upgrading to Payload 1.6 from 1.5.9. For context, I am using ISG with Next 13's App Directory, with a cache limit of 10 seconds while I make updates to the site for testing. I am using MongoDB Atlas, running Payload inside a Docker Container on Google Cloud Run.



I have found that when refreshing the page on my Next 13 app in quick succession, it causes Payload to freakout and hide all of the pages in my Pages collection. The data is still in Mongodb, and additionally, I can retrieve them by going to my global navbar which uses a relationship to my pages. I can then select the edit button in the relationship dropdown and save each page. This brings them all back, but it is going to be a pain to do when I have over 50 pages on my website.



Has anyone else had this issue?



I ran in the versions migration script, maybe it's an error with the new versions not playing nicely.

  • default discord avatar
    dragos.nedelcu2 years ago

    not sure if this is related, but after update to latest version on payload form plugin on random fields I miss the values even if in database the data is there (checked myself). Seems a bit the same behavior


    notice on the first image how the Rich text is empty and in the db the value is there

  • default discord avatar
    markatomniux2 years ago

    I do have the form plugin in my project. Maybe that is causing some of the issue

  • default discord avatar
    jessrynkar2 years ago

    hey

    @191776538205618177

    are you still experiencing this issue?

  • default discord avatar
    markatomniux2 years ago

    hi Jess, fixed it now, was caused by a failed migration

  • default discord avatar
    jessrynkar2 years ago

    Sweet 👍

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.