Netlify-cms: Can't publish a blog post "Failed to persist entry: TypeError: r.has is not a function"

Created on 29 Mar 2020  路  7Comments  路  Source: netlify/netlify-cms

Describe the bug
When i try to publish a blogpost, it don't works.
And my already posted post aren't displayed in the cms interface.
To Reproduce
Repo at this time
https://github.com/MattixNow/mattaio-website/tree/4047871fdd6cbf3d631682fe38cd4fbd7e703d44

git clone https://github.com/MattixNow/mattaio-website
cd mattaio-website
git checkout 4047871

The deploy to netlify

Expected behavior
The netlify cms soft should publish the post
Screenshots

image

Applicable Versions:

  • Netlify CMS version: 2.10.35
  • Git provider: Github
  • OS: Win10
  • Browser version Chrome 80
  • Node.JS version: v12.14.0

CMS configuration

backend:
  name: git-gateway
  branch: master
publish_mode: editorial_workflow

media_folder: "static/images/uploads"
public_folder: "/images/uploads"

collections:
  - name: "blog" # Used in routes, e.g., /admin/collections/blog
    label: "Blog" # Used in the UI
    folder: "/content/blog" # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
    fields: # The fields for each document, usually in front matter
      - { label: "Title", name: "title", widget: "string" }
      - { label: "Tags", name: "tags", widget: "string" }
      - { label: "Publish Date", name: "date", widget: "datetime", dateFormat: "DD.MM.YYYY" }
      # - { label: "Featured Image", name: "thumbnail", widget: "image" }
      - {
          label: "Description",
          name: "description",
          widget: "text",
          hint: "Only allows 255 characters",
        }
      - { label: "Body", name: "body", widget: "markdown" }

All 7 comments

hit the same issue, any updates guys?

I have the same issue

I desactived the editor_workflow at Gatsby config file, so then It works.

@ulises-castro unfortunately I need the editorial mode...

Can anyone please share the network traffic while the error occurs?

I don't know why, but my blog works now even with editor_workflow. @franva, look at on My blog repository

Same issue :))

Was this page helpful?
0 / 5 - 0 ratings