Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strapi collection type goes blank after adding new components to dynamic zone at fixed time of the day #20307

Open
x-uchiha-obito opened this issue May 14, 2024 · 0 comments
Assignees
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information

Comments

@x-uchiha-obito
Copy link

x-uchiha-obito commented May 14, 2024

Bug report

Required System information

  • Node.js version: 18.20.2
  • NPM version: 10
  • Strapi version: 4.13.6
  • Database: postgres
  • Operating system:
  • Is your project Javascript or Typescript: Typescript

Describe the bug

There is collection type page which is having a dynamic zones which includes multiple components. We did not face any issues as such. But since last couple of days, whenever we add a new component and include it in dynamic zone we see the after few hours strapi page UI breaks with the error in console.

TypeError: Cannot read properties of undefined (reading 'reduce')

After debugging further, saw that after strapi makes a fetch call to /content-manager/content-types/api::page.page/configuration , it returns some configuration where for newly added components in dynamic zones, the layout object is empty and does not contain edit field.

The issues fixes upon redeployment/restart of strapi however that leads to data loss which was authored recently for page collection type.

Steps to reproduce the behavior

  1. Create new components
  2. Add component to dynamic zone for a collection type
  3. Deploy App
  4. Author content
  5. Next day morning, error appears

Expected behavior

The page collection type should not go down.

Screenshots

image image image

Server side logs:

image image

Code snippets

If applicable, add code samples to help explain your problem.

Additional context

Add any other context about the problem here.

@x-uchiha-obito x-uchiha-obito changed the title Strapi collection type goes blank after adding new components to dynamic zone after few hours Strapi collection type goes blank after adding new components to dynamic zone post few hours May 14, 2024
@x-uchiha-obito x-uchiha-obito changed the title Strapi collection type goes blank after adding new components to dynamic zone post few hours Strapi collection type goes blank after adding new components to dynamic zone at 8:00 AM ( fixed time ) everyday May 14, 2024
@joshuaellis joshuaellis added issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information labels May 14, 2024
@x-uchiha-obito x-uchiha-obito changed the title Strapi collection type goes blank after adding new components to dynamic zone at 8:00 AM ( fixed time ) everyday Strapi collection type goes blank after adding new components to dynamic zone at fixed time of the day May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:content-manager Source is core/content-manager package status: pending reproduction Waiting for free time to reproduce the issue, or more information
Projects
Status: To be reviewed
Status: To review
Development

No branches or pull requests

3 participants