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

Closed
HsiangNianian opened this issue Jan 23, 2023 · 1 comment
Closed

Comments

@HsiangNianian
Copy link

HsiangNianian commented Jan 23, 2023

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/
@HsiangNianian
Copy link
Author

ohh,i solved it

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