craftcms / craftcms/cms

Project.yaml - Can't import saved single section

Open
#3,873 9 comments 0 reactions 1 assignee View on GitHub

@andris-sevcenko is already working on this.

Since Apr 25, 2019.

Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

It's probably linked with this issues #3872

The single section created in dev (my computer) can't be imported from production. But the information about the single section is saved in the project.yaml file and the save/import process worked without giving any warning or error.

Steps to reproduce
  1. Create a single section (about page)
  2. Save it
  3. Commit & push
  4. Pull on production
  5. connect to the admin backend
  6. Sync project.yaml successfully
  7. Settings -> Section -> About page not found

Content of the project.yaml file after saving the single section :

  1110210f-c336-4d4e-aa58-b88e747c34da:
    enableVersioning: true
    entryTypes:
      fe082a7a-8fde-42e8-aa38-6109efd67d55:
        fieldLayouts:
          b115c8ed-5043-4c01-8948-cd7851450efd:
            tabs:
              -
                fields:
                  4250bd56-6e1e-4ae5-9e53-14ead835c56c:
                    required: false
                    sortOrder: 1
                  6feb4c57-b081-47d7-beb6-53ce856da249:
                    required: false
                    sortOrder: 2
                name: Body
                sortOrder: 1
        handle: aboutUs
        hasTitleField: false
        name: 'About Us'
        sortOrder: 1
        titleFormat: '{section.name|raw}'
        titleLabel: ''
    handle: aboutUs
    name: 'About Us'
    propagateEntries: true
    siteSettings:
      8411df7a-72da-4f34-b4b6-95239a01a4e6:
        enabledByDefault: true
        hasUrls: true
        template: about-us.twig
        uriFormat: about-us
      ac387b80-8f2a-46d0-b351-1cba39d94849:
        enabledByDefault: true
        hasUrls: true
        template: about-us.twig
        uriFormat: about-us
      af413f49-9077-448b-b89b-aaebfe1cd80b:
        enabledByDefault: true
        hasUrls: true
        template: about-us.twig
        uriFormat: about-us
    type: single
Additional info
  • Craft version: 3.1.12
  • PHP version: 7.1.22
  • Database driver & version: MySQL 5.7.23
  • Plugins & versions:
  • Imager v2.1.4
  • Migration Manager 3.0.17
  • Redactor 2.3.1
  • Super Table 2.1.8

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.