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

default discord avatar
Mark | Omniux
10 months 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.nedelcu
    10 months 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

    image.png
    image.png
  • default discord avatar
    Mark | Omniux
    10 months ago

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

  • discord user avatar
    jesschow
    Payload Team
    9 months ago

    hey @Mark | Omniux are you still experiencing this issue?

  • default discord avatar
    Mark | Omniux
    9 months ago

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

  • discord user avatar
    jesschow
    Payload Team
    9 months ago

    Sweet 👍

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.