Can't add deleted wiki Tab. (404)
Added by thinkgamesjp serverside almost 4 years ago
Hello Redmine developer.
I accidentally deleted the wiki tab in order to remove all the wiki content from a project.
Now I can't seem able to add that tab back, it always returns me 404 error.
Is there any solution that I can do in order to add the wiki tab back?
Many Thanks.
Redmine version 3.4.4.devel
Ruby version 2.4.1-p111 (2017-03-22) [x86_64-linux]
Rails version 5.1.4
Environment production
Database adapter Mysql2
Replies (6)
RE: Can't add deleted wiki Tab. (404) - Added by Ivan Cenov almost 4 years ago
I am not the developer of Redmine, I am long time user.
How did you accidentally deleted wiki tab?
RE: Can't add deleted wiki Tab. (404) - Added by thinkgamesjp serverside almost 4 years ago
Hi, thanks for the reply.
Basically, I tried to rename/move wiki from the other project A to project B.
But couldn't seem to be able to move it properly because there is some unimportant text inside Wiki B so I decided to delete all the content on Wiki B.
My mistake was, I deleted all the wiki content including the wiki tab that exists when you create a new project.
I can't create a new wiki page because it always gives me 404 for some reason.
I could copy project B into the new project, but I prefer if I can create that wiki tab without creating a new project.
RE: Can't add deleted wiki Tab. (404) - Added by Ivan Cenov almost 4 years ago
It seems you have deleted to root page of Wiki of the project (I saw that there is an option to delete the root page, however did not tested it.) You may try to see project's settings, and to see if the module 'Wiki' is enabled. If not, enable it and see what will happen - weather 'Wiki' appeared in the menu. If appeared - the problem is probably solved. If not --- I'm sorry, may someone of the developers may help.
RE: Can't add deleted wiki Tab. (404) - Added by thinkgamesjp serverside almost 4 years ago
Thanks, manage to add the wiki tab back my unchecking and rechecking the wiki module.
RE: Can't add deleted wiki Tab. (404) - Added by Ivan Cenov almost 4 years ago
thinkgamesjp serverside wrote:
Thanks, manage to add the wiki tab back my unchecking and rechecking the wiki module.
This means that we found an error in Redmine. If someone deletes the root wiki page, module Wiki should be disabled together with the deleting. Also it should be more difficult to delete the wiki page or even to be impossible.
P.S. I created an issue #34634.
RE: Can't add deleted wiki Tab. (404) - Added by Mischa The Evil almost 4 years ago
- wiki page versions (via the wiki page 'history' view,
:delete_wiki_pages
permission needed); - wiki pages (via the contextual 'delete' drop-down button on the wiki page show view,
:delete_wiki_pages
permission needed) and - the wiki as a whole (via the contextual 'delete' links on the wiki index pages after #26579,
:manage_wiki
permission needed).
Deletion of wiki page versions is not an issue here. The problem seems to arise only with the deletion of the wiki as a whole. In that case all pages are deleted, thus no page set as start page remains, and the wiki itself is deleted. To start a new wiki afterwards, you'll need to disable the projects' wiki module first, to re-enable it successively to let Redmine create a new empty project wiki and set it a new start page.
This actually makes no sense and is fixed by the patch in #34643 by disabling the wiki module for the project after deleting its wiki.
This does not look like an issue when wiki pages are deleted. Even though it can lead to an empty project wiki (if it even actually allows deleting a last [start page designated] wiki page, which I am not sure about currently), the project wiki itself remains available thus editable with the appropriate permissions.
Please let me know if I'm missing something here.