decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.96k stars 3.05k forks source link

TypeError: undefined is not an object (evaluating 'e.replace') #7269

Closed taylorbrumett closed 3 months ago

taylorbrumett commented 3 months ago

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

CMS configuration


backend:
  name: github
  repo: fntechgit/fnevent-2024sjshof-theme
  branch: main
  commit_messages:
    create: Create {{collection}} “{{slug}}”
    update: Update {{collection}} “{{slug}}”
    delete: Delete {{collection}} “{{slug}}”
    uploadMedia: "[skip ci] Upload “{{path}}”"
    deleteMedia: "[skip ci] Delete “{{path}}”"
load_config_file: false
media_folder: static/img
public_folder: /img
collections:
  - label: Configurations
    name: configurations
    media_folder: ""
    public_folder: ""
    editor:
      preview: false
    files:
      - label: Site Settings
        name: site-settings
        file: src/content/site-settings/index.json
        fields:
          - label: Site Metadata
            name: siteMetadata
            required: false
            widget: object
            fields:
              - label: Title
                name: title
                required: false
                widget: string
              - label: Description
                name: description
                required: false
                widget: text
              - label: Image
                name: image
                required: false
                widget: image
          - label: Favicon
            name: favicon
            required: false
            widget: object
            fields:
              - label: Image for favicon generation (squared, at least 512x512)
                name: asset
                required: false
                widget: image
          - label: Widgets
            name: widgets
            required: false
            widget: object
            fields:
              - label: Chat
                name: chat
                required: false
                widget: object
                fields:
                  - label: Enabled?
                    name: enabled
                    required: true
                    widget: boolean
                    default: true
                  - label: Show QA
                    name: showQA
                    required: false
                    widget: boolean
                    default: false
                  - label: Show Help
                    name: showHelp
                    required: false
                    widget: boolean
                    default: false
                  - label: Default Filter Criteria
                    name: defaultScope
                    widget: select
                    options:
                      - label: In this Room
                        value: page
                      - label: All Attendees
                        value: show
                    default: page
              - label: Schedule
                name: schedule
                required: false
                widget: object
                fields:
                  - label: Allow Clickable Behavior
                    name: allowClick
                    required: false
                    widget: boolean
                    default: true
          - label: Site Font
            name: siteFont
            required: false
            widget: object
            fields:
              - label: Font Name
                name: fontFamily
                required: false
                widget: text
                default: Nunito Sans
              - label: Regular Font
                name: regularFont
                required: false
                widget: object
                fields:
                  - label: Font File
                    name: fontFile
                    required: false
                    widget: file
                    media_folder: /static/fonts/
                    public_folder: 
...
martinjagodic commented 3 months ago

Hi @taylorbrumett, please fill out all the fields in the issue template. The information you provided is not enough to debug the problem.

I'm closing the issue for now. Once you add the missing information, I can open it again.