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') #6588

Closed
protteveel opened this issue Nov 4, 2022 · 2 comments
Closed

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

protteveel opened this issue Nov 4, 2022 · 2 comments

Comments

@protteveel
Copy link

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
...
@stale
Copy link

stale bot commented Apr 26, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale label Apr 26, 2023
@martinjagodic
Copy link
Member

Closing as stale

@martinjagodic martinjagodic closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants