Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
drensing opened this issue May 10, 2024 · 0 comments
Open

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

drensing opened this issue May 10, 2024 · 0 comments

Comments

@drensing
Copy link

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:

  • Decap CMS version: decap-cms@3.0.0
  • Git provider: proxy
  • Browser version: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0

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

...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant