Fossil Forum

holgerj 1 month, 3 weeks ago

Post: Editing existing Wiki page fails

Post: Editing existing Wiki page fails

holgerj 1 month, 3 weeks ago

Edit: Editing existing Wiki page fails

holgerj 1 month, 3 weeks ago

Edit: Editing existing Wiki page fails

holgerj 1 month, 3 weeks ago

Sometimes (not always reproducible) after editing a Wiki page produces an error.

Exception: json.error: Requested a new page, but it already exists with RID 12345

If a Wiki pages produces the error, it will persist. The only solution (actually, a workaround) is saving it under a new name and redirect all links to the new page. The old page becomes an orphan.

How can I delete a page, so that creating a new one becomes possible? If this was possible, I could transfer the content of the old page to the a one under the same name.

This is what happens:

  • I search for a Wiki page (from the list or via a link).
  • I see the current content of the page.
  • When I click on "History", I see two edits from a couple of days ago. The diffs look good.
  • I click on "Edit", and the message is shown: "You are editing a new, unsaved page"
  • Below is the editor area with the current content of the page.
  • Editor and Preview work fine. Diff shows nothing.
  • Trying to "Save" produces the error shown above: "Exception: json.error: Requested a new page, but it already exists with RID ..."
holgerj 1 month, 3 weeks ago

Sometimes (not always reproducible) after editing a Wiki page produces an error.

Exception: json.error: Requested a new page, but it already exists with RID 12345

If a Wiki pages produces the error, it will persist. The only solution (actually, a workaround) is saving it under a new name and redirect all links to the new page. The old page becomes an orphan.

How can I delete a page, so that creating a new one becomes possible? If this was possible, I could transfer the content of the old page to the a one under the same name.

This is what happens:

  • I search for a Wiki page (from the list or via a link).
  • I see the current content of the page.
  • When I click on "History", I see two edits from a couple of days ago. The diffs look good.
  • I click on "Edit", and the message is shown: "You are editing a new, unsaved page"
  • Below is the editore with the current content of the page.
  • Editor and Preview work fine. Diff shows nothing.
  • Trying to "Save" produces the error shown above: "Exception: json.error: Requested a new page, but it already exists with RID ..."

I'm on Fossil 2.27, but an earlier version showed the same behaviour.

spindrift 1 month, 3 weeks ago

That sounds annoying. To the best of my knowledge (rudimentary at best) there is no way to delete a wiki page short of shunning it.

Out of interest and given a recent tide of comments in this general area, can you confirm that the page titles of the wiki pages you are seeing this problem with contain only ASCII characters? Or so they stray into unicode territory...?

stephan 1 month, 3 weeks ago

To the best of my knowledge (rudimentary at best) there is no way to delete a wiki page short of shunning it.

Kinda. You can't really delete it without shunning but if you empty the body fossil will generally treat it as deleted.

i've not yet seen Holger's issue happen but will try to reproduce/fix it later today.

spindrift 1 month, 3 weeks ago

It's worth pointing out that he then almost immediately started another thread describing a problem he'd had with a wiki page containing a "ä" in the title.

stephan 1 month, 3 weeks ago

It's worth pointing out that ...

Noted - and i suspect that was the culprit, but would like to see it ruled out.

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button