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

The File Content Definition cannot generate ContentDefinition.json #14994

Closed
giantpenguin opened this issue Jan 5, 2024 · 3 comments
Closed
Labels

Comments

@giantpenguin
Copy link

giantpenguin commented Jan 5, 2024

Describe the bug

enable the File Content Definition feature, but file ContentDefinition.json is not generated or be generated with un-usable data likes
{ "ContentTypeDefinitionRecords": [], "ContentPartDefinitionRecords": [ { "Name": "PublishLaterPart", "Settings": { "ContentPartSettings": { "Attachable": true, "Description": "Adds the ability to schedule content items to be published at a given future date and time." } }, "ContentPartFieldDefinitionRecords": [] } ], "Identifier": "4pkwq8kekdarfx3zxx0nrx39xe" }

The OrchardCore.Commerce.Web reference OrchardCore 1.7.0
image

To Reproduce

  1. Run a new OrchardCore.Commerce.Web for setting up a site with the "Orchard Core Commerce - Development" recipe
  2. The setting-up site step success, you can see the start page with some test content
  3. Go to the Admin and enable the "File Content Definition" feature
  4. Go out to view the start page => see exception
  5. Check the App_Data/Sites/Default/ContentDefinition.json
  6. Go to the Admin and disable the "File Content Definition" feature => site will work again

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

@hishamco
Copy link
Member

hishamco commented Jan 7, 2024

Could you try to reproduce it on an ASP.NET Core app or move this to OC.Commerce repo

@giantpenguin
Copy link
Author

Could you try to reproduce it on an ASP.NET Core app or move this to OC.Commerce repo

Regarding the phrase "reproduce it on an ASP.NET Core app", I will try later to see any difference.

@giantpenguin
Copy link
Author

Clone this to OC.Commerce repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants