Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:07

    dependabot[bot] on npm_and_yarn

    build(deps): bump decode-uri-co… (compare)

  • Dec 01 01:47

    ArthurHoaro on master

    Ensure tags are unique when add… (compare)

  • Nov 30 17:49

    ArthurHoaro on master

    fix: bulk tag action - wrong co… (compare)

  • Nov 26 15:39

    ArthurHoaro on master

    Fix ReadItLater checkbox label … (compare)

  • Nov 26 13:58

    ArthurHoaro on master

    docker: install php8-ldap in Do… (compare)

  • Nov 26 13:58

    ArthurHoaro on master

    Bulk action: add or delete tag … (compare)

  • Nov 26 13:58

    ArthurHoaro on master

    PubSubHub Plugin: make 1 extern… (compare)

  • Nov 25 16:23

    ArthurHoaro on master

    Add an additional free disk spa… (compare)

  • Nov 25 16:16

    ArthurHoaro on master

    Fix PHP 8 incompatibility with … (compare)

  • Nov 25 15:06

    ArthurHoaro on disk-space

    (compare)

  • Nov 25 14:56

    ArthurHoaro on disk-space

    Add an additional free disk spa… (compare)

  • Nov 20 15:13

    nodiscc on master

    Fix mishandling of Shaare term … Merge pull request #1909 from h… (compare)

  • Nov 20 15:12

    nodiscc on master

    autocapitalize off for username… Merge pull request #1905 from p… (compare)

  • Nov 17 17:32

    nodiscc on npm_and_yarn

    (compare)

  • Nov 17 17:32

    nodiscc on master

    build(deps): bump minimatch fro… Merge pull request #1912 from s… (compare)

  • Nov 17 15:49

    dependabot[bot] on npm_and_yarn

    build(deps): bump minimatch fro… (compare)

  • Nov 17 15:48

    dependabot[bot] on npm_and_yarn

    (compare)

  • Nov 17 15:48

    nodiscc on master

    build(deps): bump loader-utils … Merge pull request #1908 from s… (compare)

  • Nov 15 22:18

    dependabot[bot] on npm_and_yarn

    build(deps): bump loader-utils … (compare)

  • Nov 08 23:00

    dependabot[bot] on npm_and_yarn

    (compare)

goodelyfe
@goodelyfe
but how do i do that?
I know it has to do with permissions
chown httpduser? www user?
@ArthurHoaro thank you for your responses btw!!!
nodiscc
@nodiscc
@goodelyfe make sure your datastore.php is owned and readable by your webserver user (usually www-data)

It should read something like this

srvadmin@demo1:~$ sudo ls -l /var/www/links.xinit.se/data/datastore.php
-rw-r--r-- 1 www-data www-data 2379 Apr 11 18:03 /var/www/links.xinit.se/data/datastore.php

www-data must have rw permissions so if it doesn't: sudo chown www-data /path/to/your/datastore.php; sudo chmod u+rw /path/to/your/datastore.php

goodelyfe
@goodelyfe
@nodiscc Thank you for the reply!
How much different is it that I'm on running shaarli on docker?
goodelyfe
@goodelyfe
so just for sh*ts and giggles, i ran that on other files in the directory. Is it safe to say, that said user on the other files would be also be the user for the datastore.php too? weird user never seen before, but never had to mess around within the docker webserver user either.
That may explain when i tried to link explicit volumes to it and my spidy senses were screaming permissions. Going to try again with a docker compose. Any help would be greatly appreciated!
also...does shaarli/shaarli build for arm32v7/armhf? Could i build it with wget and all that? I only ask because i got Shaarli working with ugeek/shaarli:arm i blv
C-Duv
@C-Duv

hi folks, my docker just auto-updated to 0.12, and now my installation is broken - all links, assets etc. ignore the subdirectory shaarli is installed in
I cant find any release notes or migration guides - does shaarli no longer support installation in a subdirectory (with reverse proxy)?

Hello, I more or less have the same issue. Shaarli v0.11.1 is working just fine on my setup:

  • PHP 7.3
  • Nginx server as a reverse proxy (listens to ports 80 and 443), forwarding to Apache
  • Apache server listen to port 8080 runs PHP with mod_php
  • Shaarli installed in /shaarli/ subdirectory

But with v0.12.1 Shaarli behave just like if mod_rewrite was disabled:

  • a GET /shaarli/tags/cloud fails with a 404 Not Found
  • a GET /shaarli/index.php/tags/cloud works (200 OK)

Setting general.root_url to https://www.example.com/shaarli/index.php/ in config.json.phpas advised in the documentation does not fixes the issue (GET /shaarli/tags/cloud still returns a 404).

Is this a bug I should post on GitHub?

ArthurHoaro
@ArthurHoaro
Hi. There is probably a misconfiguration somewhere; and my guess would be with Apache's URL rewriting: is .htaccess properly allowed? You can also try to include these directives in your vHost configuration directly: https://github.com/shaarli/Shaarli/blob/master/.htaccess#L16-L21
If that doesn't help you can open a support issue on github with your web servers config files as it will be easier to follow.
C-Duv
@C-Duv
You were right, I had a misconfiguration: the .htaccess were not taken into account by Apache (they disallowed AllowOverride in <Directory> with regular expression: and I did not know that...). One this part was fixed everything work just fine without any hack on change in .htaccess`: Thanks for the pointer.
qbi
@qbi:matrix.kraut.space
[m]
I have an issue with my Shaarli installation. Sometimes, when an old session has expired, I have to re-login. However when I enter the credentials, Shaarli shows an error message "Wrong token" and it is not possible to log in.
Can you tell how to resolve this or how I can investigate into this issue?
I already tried to play around with general.root_url and security.session_protection_disabled. Both led to no results. Also the logfiles don't give a clue.
aynish
@aynish:sealight.xyz
[m]
hey everyone i'm trying to diagnose why my shaarli install isn't able to rewrite urls for the API. I'm using nginx on nixOS, and have setup php-fpm and nginx as per the config. the location for ~ (index).php doesn't seem to be able to find the correct rewrite for try_files $uri =404; ? not really sure how to go about debugging this, so any pointers would be appreciated! :)
nodiscc
@nodiscc
@aynish:sealight.xyz you can enable debugging for URL rewriting in nginx https://serverfault.com/questions/333048/best-way-to-debug-nginx-rewrite-rules-in-config-file
If you're stuck please post your full setup on https://github.com/shaarli/Shaarli/issues/ including installed version, installation method/commands used, nginx/php-fpm configuration, error/debug logs, expected behavior/observed behavior etc etc
aynish
@aynish:sealight.xyz
[m]
thank you nodiscc! ill give that a go :)
agentcobra
@agentcobra
Hi everybody,
I'm starting a skin before google favoris shutdown
https://lab.frogg.it/agentcobra/google_favoris #WIP
SnowCode
@chopin2712
Hello
I am very new to this software
I've just installed it, but the "tag cloud" doesn't work
Here is the error message:
The page is just blank, but it seems the rest of functions works
Can you help me?
dgleba
@dgleba
When I import google bookmarks export, tags with spaces in the tagname are split into separate tags in Shaarli. How can I import with tags with spaces that remain all as one tag?
dgleba
@dgleba
I did set the tags separator to a semi colon before importing.
Matt Sephton
@gingerbeardman
Just wanted to say thanks for Shaarli, the docker image, and the import feature! Perfect.
Alexis J.
@alexisj:matrix.org
[m]
@ArthurHoaro: Hello! J'ai l'impression que Shaarli (v0.12.1) ne tourne pas rond avec php 8.1...
agentcobra
@agentcobra
Salut,
j'arrive pas à connecter shaarlier sur un shaarli installé par yunohost, il y a des choses à faire en plus ?
Letouane
@Letouane
Hi there, I'm trying to migrate my shaarli docker container on a new host. Initialy I didn't touch much at the docker-compose file which provides volumes. As noob as I am, seeing my other containers using volumes the following way "./data:/path/inside/the/container", I thought that I could just scp the files from my "/var/lib/docker/volumes/shaarli_shaarli-data/_data" to "/path/to/my/dockers/shaarli/shaarli-data/" but it doesn't work. I said to myself that it may be the cause of "_data" folder which can be generated by docker or something... Anyone here have a an idea to help my noobishness ?
Any hint accepted :)
Letouane
@Letouane
Nevermind, found the solution, it was related to ownership. Files were not owned by the correct user. Changed it to the same numeric id as in the source host
kalvn
@kalvn
I noticed there's a problem with URL containing the @ sign in <link> tags. When I want to add the Mastodon verification code
<link rel="me" href="https://mastodon.xyz/@kalvn">, it's rendered as
<link rel="me" href="https://mastodon.xyz/" kalvn@="">
Any idea why?
3 replies
Maldoror974
@Maldoror974

Hi, I'm trying to install Shaarli on a ovh perso 2014 server. This server has no ssh access (only "professionnal", double price). I changed my php version to 7.3, no firewall, and I have this message : Warning: require_once(/home/MYDOMAIN/www/Shaarli-master/vendor/autoload.php): failed to open stream: No such file or directory in /home/MYDOMAIN/www/Shaarli-master/index.php on line 17

Fatal error: require_once(): Failed opening required '/home/MYDOMAIN/www/Shaarli-master/vendor/autoload.php' (include_path='.:/usr/local/php7.3/lib/php') in /home/MYDOMAIN/www/Shaarli-master/index.php on line 17 . I tried php 7.1 and 8.0, blank pages with other errors, and nothing in debug mode... Do someone have an idea on how to make it work? Thank you.

jan Talu
@pguimier:matrix.org
[m]
Can you tell the pwd of your installation directory?
Maldoror974
@Maldoror974
/www/Shaarli-master/
I have no access to /home or /home/MYDOMAIN with my perso offer
jan Talu
@pguimier:matrix.org
[m]
Can you access to data/config.json.php ? If so what is in general->header-link ?
Maldoror974
@Maldoror974
No. The only files I see upper /www are .ovhconfig, .bash_logout, .bash_profile, .bash_rc. No other directory or file.
jan Talu
@pguimier:matrix.org
[m]
Oh config.json.php should be in /www/Shaarli-master/data/
ArthurHoaro
@ArthurHoaro
@Maldoror974 Make sure that you download and install the ZIP or tarball suffixed with -full and not just the source code. It looks like you are missing the dependencies.
ArthurHoaro
@ArthurHoaro

@kalvn RainTPL applies a bunch of regexes on links and resource path which are not always very accurate. One easy way to trick it is to put the href attribute in a new line. Another way is to output link instead of using it directly.

{$tmp='link'}
<{$tmp} rel="me" href="https://mastodon.xyz/@kalvn">
<link rel="me"
  href="https://mastodon.xyz/@kalvn">

It's very hacky, but that template engine served us well.

1 reply
Maldoror974
@Maldoror974
@ArthurHoaro : It worked! Thank you!
Maldoror974
@Maldoror974
Another question regarding plugins. I installed matomo on the same server. Shaarli is in MYDOMAIN\www\BLOG and Matomo in MYDOMAIN\www\MATOMO . I put the code generated by matomo inside MYDOMAIN\www\BLOG\tpl\default\page.header.html, but it doesn't work. I also tried to put the the inside the piwik plugin MYDOMAIN\MATOMO , and since I have no errors, I don't have any views either. I tried also in page.footer.html, linklist.html... nothing. Any idea what's wrong? Thank you.
<script>
var _paq = window._paq = window._paq || [];
/ tracker methods like "setCustomDimension" should be called before "trackPageView" /
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//MYDOMAIN/matomo/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
ArthurHoaro
@ArthurHoaro

I put the code generated by matomo inside MYDOMAIN\www\BLOG\tpl\default\page.header.html, but it doesn't work.

What do you mean by "it doesn't work"? Is the code you added present in the HTML page when you render it in your browser?
I'll check what's up with the Piwik plugin, maybe it got outdated without anyone noticing.