I can access admin just fine, but i cannot see any blogs i wrote before and when I create a blog post and try to save it I get this alert error:
‘Failed to persist entry: API_ERROR:not found’
I did some googling and found if I have : publish_mode: editorial_workflow. in my config that is what breaks it. So I removed it hoping that would fix it but it didnt.
Thank you! this is very helpful. I had to add the specific branch name in my admin config and updated all my packages and force netlify to use my version of node. Thanks again
When creating a new post/page, I get the following error message:
API_ERROR: tree.path contains a malformed path component
Here is my config.yml file
# using git as backend store
backend:
name: git-gateway
branch: master
publish_mode: editorial_workflow
media_folder: "/static/media" # Folder where user uploaded files should go
public_folder: "/media"
site_url: https://joelgie.com
editor:
preview: true
locale: 'fr'
# Allow local visit
# You need to run at the root of the project `npx netlify-cms-proxy-server`
local_backend: true
# i18n https://www.netlifycms.org/docs/beta-features/#i18n-support
i18n:
structure: multiple_folders
locales: [ en, fr ]
default_locale: en
collections:
- name: "post" # Used in routes, e.g., /admin/collections/blog
label: "Post" # Used in the UI
folder: "content/post" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{day}}-{{month}}-{{year}}{{slug}}" # Filename template, e.g., DD-MM-YYYY-title.md
nested:
depth: 100
path: "{{filename}}/index"
fields: # The fields for each document, usually in front matter
- {label: "Title", name: "title", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime"}
- {label: "Categories", name: "categories", widget: "list"}
- {label: "Body", name: "body", widget: "markdown"}
- name: "page" # Used in routes, e.g., /admin/collections/pages
label: "Pages" # Used in the UI
folder: "content/page" # 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., title.md
nested:
depth: 100
path: "{{filename}}/index"
fields: # The fields for each document, usually in front matter
- {label: "Layout", name: "layout", widget: "hidden", default: "blog"}
- {label: "Title", name: "title", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime"}
- {label: "Body", name: "body", widget: "markdown"}