Closed makunoia closed 3 months ago
@makunoia That validation error mentioning "email" tells me that this collection was at one point auth enabled and you have ghost content in your database.
Using something like Beekeeper Studio or Mongo Compass can you connect to your database and inspect it for either content items that arent listed in Payload or for fields on existing items that shouldn't be there?
I bet this will fix your issue but let me know if it doesnt.
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
Link to reproduction
No response
Payload Version
3.0.0-beta.67
Node Version
v20.14.0
Next.js Version
15.0.0-rc.0
Describe the Bug
The Pages collection that comes with the fresh install of Payload v3 throws a ValidationError when adding a second item in the CMS. It seems to be trying to validate the action, but I find it weird since I'm already logged in to the CMS.
My other collections work just fine. I've even tried everything from commenting out all imports and all fields, even duplicating the collection with the same fields, and worked, tried to deploy the collection to production, and it also worked just fine there.
I eventually discovered this only happens if I set the collection slug to
pages
. Other slug values such aswebpage
,sitepage
make adding items to the collection work.The error only happens to slug
pages
Is this intended, or am I missing something here?Reproduction Steps
Consider the following Page collection:
Add first Page, everything runs as expected
Add second record, throws a Validation error
Adapters and Plugins
No response