requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
101 stars 75 forks source link

Not able to save changes in doc #110

Open MxSinan opened 6 years ago

MxSinan commented 6 years ago

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. savings error

baer95 commented 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.

akarel commented 6 years ago

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.

baer95 commented 6 years ago

How did you install wiki.js without git? It blocks the install guide...

akarel commented 6 years ago

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).

MxSinan commented 6 years ago

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?

MxSinan commented 6 years ago

the error i am getting when looking to response of request in network is:

{"ok":false,"error":"Failed to save document"}

NGPixel commented 6 years ago

Run Wiki.js in interactive mode to view errors and try again: node server

jimgall commented 5 years ago

Did this get resolved - I am having same issue

ghost commented 5 years ago

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 .