til-schneider / slim-wiki

A slim wiki based on PHP and markdown
MIT License
13 stars 7 forks source link

Error "Not logged in" when saving #4

Closed fragmentbyte closed 8 years ago

fragmentbyte commented 8 years ago

Calling RPC editor.saveArticle failed: Not logged in

How to fix it?


til-schneider commented 8 years ago

The line $this->assertLoggedIn(); checks whether the user is logged in. If you remove it, everyone can edit your wiki.

Which version are you using? This should already be fixed in the development version (see 92195f431ac4be64f8855e7170fce680222cdabe). But it isn't fixed in version 1.

fragmentbyte commented 8 years ago

Yes, I use version 1. I try to carefully update files. Thank you!

fragmentbyte commented 8 years ago

And I have all broken. Please put the latest build. I can't build.

til-schneider commented 8 years ago

I've just created version 2. Please note: You have to move the directory articles into data.

fragmentbyte commented 8 years ago
[14-Mar-2016 14:49:13 Europe/Berlin] PHP Warning:  file_put_contents(/home/zuomekkx/test/data/articles/docs/start): failed to open stream: Is a directory in /home/zuomekkx/test/server/logic/EditorService.php on line 107

when saving

til-schneider commented 8 years ago

You have to put a / at the end of your link. E.g.: [My page](docs/start/)

fragmentbyte commented 8 years ago

Yes, but links in Breadcrumbs do not / at the end ( home/docs/start )

til-schneider commented 8 years ago

Grmpf. You're right. I've fixed this in efa639d6cfd6ae50fabc41f07944a44f025073c6. Links to directories are now working with or without a trailing /.

Just exchange the Main.php using the newest version. I've updated version 2, too.

fragmentbyte commented 8 years ago

Thank you so much! It seems that now everything is perfect)