Skip to content

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

@HsiangNianian

Description

@HsiangNianian

Describe the bug
I tried to upload or delete pics and nothing happen.
In addition,it seems that there is sth wrong with the create new post.

To Reproduce
none

Expected behavior
none

Screenshots
image

Applicable Versions:

  • Netlify CMS version: netlify-cms@2.10.192
  • Git provider: github
  • Browser version: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

CMS configuration

backend:
  name: github
  repo: retrofor/retrofor.github.io
publish_mode: editorial_workflow
media_folder: static/img/post
public_folder: /img/post
collections:
  - name: blog
    label: Blog
    folder: blog
    create: true
    slug: "{{slug}}"
    fields:
      - label: Title
        name: title
        widget: string
      - label: Author
        name: author
        widget: string
        default: WithdewHua
      - label: Type
        name: type
        widget: string
        default: post
      - label: Categories
        name: categories
        widget: list
      - label: Tags
        name: tags
        widget: list
      - label: Series
        name: series
        widget: list
        required: false
      - label: Publish Date
        name: date
        widget: datetime
      - label: Lastmod
        name: lastmod
        widget: date
        default: ""
        required: false
        format: YYYY-MM-DD
      - label: Description
        name: description
        widget: text
        required: false
      - label: Featured Image
        name: featured
        widget: image
        required: false
      - label: Featured Alt
        name: featuredalt
        widget: string
        required: false
      - label: Featured Path
        name: featuredpath
        widget: string
        default: img/post
        required: false
      - label: Slug
        name: slug
        widget: string
        required: false
      - label: Draft
        name: draft
        widget: boolean
        default: false
        required: false
      - label: Show TOC
        name: showtoc
        widget: boolean
        default: true
        required: false
      - label: Post Content
        name: body
        widget: markdown
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - date
      - author
      - description
    view_filters: []
    view_groups: []
slug:
  encoding: unicode
  clean_accents: false
  sanitize_replacement: "-"
isFetching: false
error: null

Additional context
other errors:

  1. Failed to persist entry: API_ERROR: Although you appear to have the correct authorization credentials, the retrofor organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited. For more information on these restrictions, including how to enable this app, visit https://docs.github.com/articles/restricting-access-to-your-organization-s-data/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions