Home
Support Forums

Error: config must have required property 'media_folder'

Hi!

I’ve received this error message in http://localhost:8000/admin/

Error loading the CMS configuration

Config Errors:

config must have required property ‘media_folder’
config must have required property ‘media_library’
config must match a schema in anyOf config must have required property ‘backend’
config must have required property ‘collections’

Check your config.yml file.

But in my config.yaml file, these properties are configured:

backend:
  name: github
  repo: laiscavalcanti/subsidiario.com
  branch: main # Branch to update (optional; defaults to master)
  site_domain: https://kind-roentgen-c165d8.netlify.app/

publish_mode: editorial_workflow
media_folder: static/assets/img
public_folder: assets/img

collections:
  - name: 'posts'
    label: 'Posts'
    folder: 'posts'
    media_folder: 'static/assets/img'
    public_folder: 'assets/img'
    create: true
    slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
    fields: # The fields for each document, usually in front matter
      - {label: "Layout", name: "layout", widget: "hidden", default: "blog"}
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Publish Date", name: "date", widget: "datetime"}
      - {label: "Featured Image", name: "thumbnail", widget: "image"}
      - {label: "Rating (scale of 1-5)", name: "rating", widget: "number"}
      - {label: "Body", name: "body", widget: "markdown"}

Anyone has an idea of how to solve this error?

Thanks for any help!

Welcome to the forums @laiscavalcanti

You don’t appear to have media_library (that I can see) in your configuration.

1 Like