Netlify-cms: [Bug] CMS on Gitlab not displaying photos in media assets

Created on 14 Jun 2018  路  4Comments  路  Source: netlify/netlify-cms

I just setup Netlify CMS on my site on Gitlab, I noticed that in the admin, the media page doesn't show my pictures.
screen shot 2018-06-14 at 6 56 22 am

When I try to view the image, I noticed the url isn't encoded properly:
screen shot 2018-06-14 at 6 56 35 am

Steps to reproduce:

  • Add Netlify CMS to existing Gitlab site (Not using NPM)
  • View the Media assets

CMS Version
Netlify CMS version: 1.9.0
Browser version: Chrome 67

Here's my config file

backend:
  name: gitlab
  repo: namzo/ernestojeh.com
  branch: master
  site_domain: ernestojeh.com

display_url: https://ernestojeh.com
media_folder: "img/post" # Media files will be stored in the repo under images/uploads

collections:
  - name: "writing" # Used in routes, e.g., /admin/collections/blog
    label: "Writing" # Used in the UI
    folder: "_posts" # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
    fields: # The fields for each document, usually in front matter
      - {label: "Layout", name: "layout", widget: "hidden", default: "post"}
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Publish Date", name: "date", widget: "datetime"}
      - {label: "Body", name: "body", widget: "markdown"}

Thanks.

extensionbackends bug

All 4 comments

I'm having the same issue on GitHUB. Every once in a while images stop working. Screenshot:

screen shot 2018-07-09 at 8 52 14 pm

Edit: Looks like this is related to #787

@sbuys Yes I can confirm we are facing the same issue with Github as well a bug report was just filed by our client yesterday also about this.

Hi, looks like I'm still getting this error (but Github instead). It goes away sometimes after refreshing on the browser (Chrome).

Screen Shot 2019-11-19 at 8 03 51 AM

Netlify version 2.9.7

Thank you

Was this page helpful?
0 / 5 - 0 ratings