Open MxSinan opened 6 years ago
Please open the network tab of the developer tools in your browser. There should be a new line for an xhr-request that is sent to the wiki-server when you hit the save button. Post the response payload here, as it may contain an error message.
Noticed the same issue. The responses we were getting were:
Home Page: {"ok":false,"error":"Failed to save document"}
Create a new page: {"ok":false,"error":"Oops, something went wrong"}
Then I realized I had forgotten to install Git on the server. Did that, restarted, now it works.
How did you install wiki.js without git? It blocks the install guide...
I had a remote repo setup, and during the configuration step for Git I entered the creds, and it connected successfully. No errors. I had forgotten to install Git on the server however (Windows Server 2012 r2).
I doub that, seen Git is already installed? it worked also before...suddenly it did not work anymore...could there be something with restarting server or so?
the error i am getting when looking to response of request in network is:
{"ok":false,"error":"Failed to save document"}
Run Wiki.js in interactive mode to view errors and try again: node server
Did this get resolved - I am having same issue
In case anyone runs into this issue, I resolved it by going to the directory where the repo is in my case it was /var/wiki/repo
then typing git status
and it gave error fatal: index file smaller than expected
so I ran these two commands and it resolved it.
$ rm .git/index
$ git reset HEAD .
Actual behavior
When trying to save an edited doc, I get a red alert without any text value. So i don't know what is causing this.
No errors in console.
Expected behavior
Just save the my changes in the doc.
Steps to reproduce the behavior
Edit any document in Wiki gives this error.