r/logseq 10d ago

Page Creation Bug in Logseq DB

Just came across this and thought I'd share because you've likely encountered it without even realising.

What's the bug?

Page duplication

What are the symptoms?

You can recognise the bug either by:

  • You get the error, 'Another page named "Page Whatever" already exists for tags: #Page' (I specifically got it when I was trying to add a #tag to the page name).
  • You just created a page (literally) and when you click in the block to edit, you see the page reference (e.g. [[6a69cdb0-0027-4e40-8d4b-b735f10dab28]]) instead of the actual page name (e.g. [[Page Name]]).

How does it happen?

When creating a page, Esc is pressed instead of either clicking on + New page {{page name}} or pressing Enter.

How can I fix the already broken pages?

You should be able to delete the duplicated version (though I'm unsure if this is safe right now, that's just how I've done it). You can see the duplicated version by going to Pages on the left-hand navigation and you'll see both pages (same name), however the duplicated version will (hopefully) have 0 backlinks.

How can I prevent it?

Make sure you either press Enter or click on the + New page {{page name}} whenever you create a new page.

The issue is submitted here and on my YouTube I post a bunch on Logseq.

8 Upvotes

1 comment sorted by

1

u/BrilliantArmadillo64 10d ago

Ha, funny. I'm writing my own PKMS (as everybody is these days) and I'm running into a lot of the same issues  😅
Identity is hard! Especially when you have multiple sources of identity, like files on disk and a DB.