Hacker News new | ask | show | jobs
by iamthedata 4866 days ago
Gratz, Shaarli is pretty cool. Diigo is quite decent, but now I rather run Shaarli on localhost. Archival feature would be great, even if it just shells out to httrack. If used on a local machine, the disk space is not a great concern.

With 0.0.40 beta, I was having the problem about "Wrong login/password" and "Wrong token". It would be great if you could apply the fix described by this user:

lgaggini, 2012/11/10 18:59, http://sebsauvage.net/wiki/doku.php?id=php:shaarli:discussio...

> I host last beta of shaarli (0.0.40) on my local network and I access it by custom name defined in clients hosts file and relative virtual host configuration in my nginx web server. My browser is Chromium (22.0.1229.94 (161065)). After the first configuration, every time I try to login I receive the Wrong login/pass error. After some investigation and debugging I discover a problem with cookie management (only in Chromium, in Firefox all work flawlessly). With the default code and Chromium, the cookie is correctly written by the browser, but it's not retrieved so all checks performed on sessions value (mainly tokenOK() and isLoggedIn()) fail. To fix I have to replace, in the main code index.php, the session cookie path parameter, from dirname($_SERVER[“SCRIPT_NAME”]).'/' to dirname($_SERVER[“SCRIPT_NAME”]) (short story, i remove the trailing /). I hope to help someone else with similar problem. Regards and keep up the good work.

1 comments

Thanks :-)

Oh, and thanks for the bug report regarding the cookie path. I did not pinpoint this behaviour before. (And I currently lack time to update Shaarli.)

For the archival feature, you use the export option (in tools menu), then import it later to restore. Or you can backup all files located in the "data" subdirectory.

Shaarli grew too fast and I did not expect to have so many people interested in it (This is a typical scratch-an-itch project). I plan a complete rewrite, with multi-users support and many other features (I have a heavy to-do/feature request list :-)