OrchardCMS / OrchardCore.Commerce

The commerce module for Orchard Core.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The File Content Definition not generate ContentDefinition.json (OCC-213)

giantpenguin opened this issue · comments

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

Steps to reproduce the behavior:

  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.

Jira issue