jekyll-admin icon indicating copy to clipboard operation
jekyll-admin copied to clipboard

Admin pages duplicated

Open damienlethiec opened this issue 4 years ago • 4 comments

Description:

Hi there,

Weird bug: we use Jekyll admin in production. A few days ago, our client went to the admin and found the pages duplicates (cf screenshot). When we restart the server, the bug disappears. Any idea of the reason?

Thanks a ton in advance !

image

Versions

  • Version of JekyllAdmin I'm using : 0.11.0
  • Version of Jekyll I'm using : 3.8.5

damienlethiec avatar Mar 01 '21 14:03 damienlethiec

Hi @damienlethiec!

Could you reproduce the issue again or was it a one time thing?

mertkahyaoglu avatar Apr 11 '21 14:04 mertkahyaoglu

I'm also experiencing this.

Jekyll Admin: 0.11.0 Jekyll: 4.1.0

Edit: It seems to be when I edit my config from admin page.

coreycarvalho avatar May 01 '21 18:05 coreycarvalho

I managed to trace the error back to https://github.com/jekyll/jekyll-admin/blob/1e8766166c74f013979536575b1e9ceddbb86be6/lib/jekyll-admin/file_helper.rb#L27

It looks like site.read might be causing the entire site (assets, html pages, etc) to be duplicated. This seems like a server side issue. I'm going to take a crack at fixing this bug.

coreycarvalho avatar May 01 '21 19:05 coreycarvalho

This issue has been automatically marked as stale because it has not been commented on for at least two months.

The resources of the Jekyll team are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.

jekyllbot avatar Jul 01 '21 20:07 jekyllbot

https://github.com/jekyll/jekyll-admin/pull/629 addresses this issue.

coreycarvalho avatar Aug 12 '22 16:08 coreycarvalho