decaporg / decap-cms

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

TypeError: Cannot read properties of undefined (reading 'path') #7205

Closed drensing closed 2 weeks ago

drensing commented 1 month ago

Describe the bug Using Netlify as CMS - I am the user, not the developer. Developer unavailable at this time. Trying to upload a .pdf to the Media section of our CMS. Keeps supplying me with an error message. No longer shows me the other pieces of media that were in there, like images and other pdfs.

To Reproduce

Expected behavior I should be able to upload .pdfs or images. But keeps coming up with this error message (see screenshot below).

Screenshots image

Applicable Versions:

CMS configuration


local_backend:
  url: https://hybridcloud.hpecorp.net/api/v1
  allowed_hosts:
    - hybridcloud.hpecorp.net
backend:
  name: proxy
  proxy_url: https://hybridcloud.hpecorp.net/api/v1
editor:
  preview: false
media_folder: public/assets
public_folder: assets
collections:
  - name: Top Navigation
    label: Top Navigation
    folder: contents/nav/topmenu
    create: true
    slug: "{{year}}-{{month}}-{{day}}"
    fields:
      - label: Top Nav Title
        name: top_nav_title
        default: Top Nav - Do Not Change
        widget: string
      - label: Top Nav List
        name: top_nav_list
        widget: list
        fields:
          - label: Title
            name: title
            widget: string
          - label: Link
            name: link
            default: "#"
            widget: string
          - label: Has Sub Menu
            name: has_sub_menu
            widget: select
            default: Yes
            options:
              - Yes
              - No
          - label: Open in New Tab
            name: open_in_new_tab_menu
            widget: select
            default: No
            options:
              - Yes
              - No
          - label: Is Mega Menu
            name: is_mega_menu
            widget: select
            default: No
            options:
              - Yes
              - No
    publish: true
    type: folder_based_collection
    sortable_fields:
      - top_nav_title
    view_filters: []
    view_groups: []
    editor:
      preview: false
  - name: sub_nav
    label: Sub Navigation
    folder: contents/nav/submenu
    create: true
    slug: "{{year}}-{{month}}-{{day}}"
    fields:
      - label: Top Navigation Title
        name: title
        widget: relation
        collection: Top Navigation
        search_fields:
          - top_nav_list.*.title
        value_field: top_nav_list.*.title
      - label: Sub Menu Level 1
        name: sub_menu_1
        widget: list
        fields:
          - label: Title
            name: title
            widget: string
          - label: Link
            name: link
            widget: string
          - label: Has Sub Menu
            name: has_sub_menu
            widget: select
            default: No
            options:
              - Yes
              - No
          - label: Open in New Tab
            name: open_in_new_tab_menu
            widget: select
            default: No
            options:
              - Yes
              - No
          - label: Sub Menu Level 2
            name: sub_menu_2
            widget: list
            fields:
              - label: Title
                name: title
                widget: string
              - label: Link
                name: link
                widget: string
              - label: Has Sub Menu
                name: has_sub_menu
                widget: select
                default: No
                options:
                  - Yes
                  - No
              - label: Open in New Tab
                name: open_in_new_tab_menu
                widget: select
                default: No
                options:
                  - Yes
                  - No
    publish: true
    type: folder_based_collection
    sortable_fields: []
    view_filters: []
    view_groups: []
    editor:
      preview: false
  - name: footer
    label: Footer
    folder: contents/nav/footer
    create: true
    slug: "{{year}}-{{month}}-{{day}}"
    fields:
      - label: Site Resources
        name: site_res
        widget: list
        fields:
          - label: Title
            name: title
            widget: string
          - label: Link

...
martinjagodic commented 2 weeks ago

@drensing it seems that the error is from the about us section, but you did not provide a config for it. Please update the issues description with that.

drensing commented 2 weeks ago

Thank you. I connected with one of our developers here who seems to know what the issue is and can fix it.