Skip to content

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

@protteveel

Description

@protteveel

Describe the bug
Under Contents, go to Settings
Click on Site Settings
Under Profile Image
Click on Choose an Image
Click on Upload
Browse to an image
Select the image
Click on Open
=> Crash

To Reproduce
Under Contents, go to Settings
Click on Site Settings
Under Profile Image
Click on Choose an Image
Click on Upload
Browse to an image
Select the image
Click on Open
=> Crash

Expected behavior
Profile picture is selected and used
Screenshots

Applicable Versions:

  • Netlify CMS version: netlify-cms@2.10.192
  • Git provider: github
  • Browser version: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

CMS configuration

backend:
  name: github
  repo: protteveel/netlify-cms
  branch: master
media_folder: ./static/img
public_folder: img
collections:
  - name: Blog
    label: Blog
    folder: ./content/blog
    create: true
    fields:
      - label: Title
        name: title
        widget: string
      - label: Publish Date
        name: date
        widget: datetime
      - label: Tags
        name: tags
        widget: list
        required: false
      - label: Body
        name: body
        widget: markdown
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - date
      - commit_author
    view_filters: []
    view_groups: []
  - name: Projects
    label: Projects
    folder: ./content/projects/creations
    create: true
    fields:
      - label: Title
        name: title
        widget: string
      - label: Publish Date
        name: date
        widget: datetime
      - label: featured
        name: featured
        widget: boolean
        required: false
      - label: link to project repo or site
        name: link
        widget: string
      - label: Project Image
        name: image
        widget: image
      - label: Brief description
        name: description
        widget: string
      - label: Tags
        name: tags
        widget: list
        required: false
      - label: Fun Fact or Stat
        name: fact
        widget: string
        default: used by 20% of Fortune 500 companies!
        required: false
      - label: weight (lower get more visibility)
        name: weight
        widget: number
        valueType: float
        step: 10
        min: 0
        max: 1000
        value_type: float
      - label: Sitemap
        name: sitemap
        widget: object
        field:
          label: weight
          name: weight
          widget: number
          valueType: float
          step: 0.1
          min: 0
          max: 1
          value_type: float
      - label: Body
        name: body
        widget: markdown
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - date
      - commit_author
      - description
    view_filters: []
    view_groups: []
  - name: Contributions
    label: Contributions
    folder: ./content/projects/contributions
    create: true
    fields:
      - label: Title
        name: title
        widget: string
      - label: Publish Date
        name: date
        widget: datetime
      - label: featured
        name: featured
        widget: boolean
        required: false
      - label: link to project repo or site
        name: link
        widget: string
      - label: Project Image
        name: image
        widget: image
      - label: Brief description
        name: description
        widget: string
      - label: Tags
        name: tags
        widget: list
        required: false
      - label: Fun Fact or Stat
        name: fact
        widget: string
        default: used by 20% of Fortune 500 companies!
        required: false
      - label: weight (lower get more visibility)
        name: weight
        widget: number
        valueType: float
        step: 10
        min: 0
        max: 1000
        value_type: float
      - label: Sitemap
        name: sitemap
        widget: object
        field:
          label: weight
          name: weight
          widget: number
          valueType: float
          step: 0.1
          min: 0
          max: 1
          value_type: float
      - label: Body
        name: body
        widget: markdown
    publish: true
    type: folder_based_collection
    sortable_field
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions