shaarli / Shaarli

The personal, minimalist, super-fast, database free, bookmarking service - community repo
https://shaarli.readthedocs.io/
Other
3.45k stars 296 forks source link

My shaarli instance only shows the first link of page with "An unexpected error occurred." #2085

Closed Riduidel closed 6 months ago

Riduidel commented 6 months ago

Starting this week end, it seems like my Shaarli instance now only shows the first link on each page with "An unexpected error occurred." displayed on page upper side. See this snapshot

shaarli

My shaarli is available at https://nicolas-delsaux.hd.free.fr/Shaarli/index.php

Riduidel commented 6 months ago

Seems like I got a reproduction of #2065

Riduidel commented 6 months ago

I'm running Shaarli from Raspbian latest version

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"

Apache is version

pi@raspberrypi:~ $ apache2 -v
Server version: Apache/2.4.59 (Raspbian)
Server built:   2024-04-05T12:08:04

My php 8.1 comes from

pi@raspberrypi:~ $ apt policy php8.1
php8.1:
  Installed: 8.1.28-1+0~20240424.64+debian11~1.gbpd7b516
  Candidate: 8.1.28-1+0~20240424.64+debian11~1.gbpd7b516
  Version table:
 *** 8.1.28-1+0~20240424.64+debian11~1.gbpd7b516 500
        500 https://packages.sury.org/php bullseye/main armhf Packages
        100 /var/lib/dpkg/status
kcaran commented 6 months ago

I commented on #2065 as well:

I'm using Centos 8, but I had the same issue and made this note to myself:

(2022-03-31 Added php-intl to install - didn't automatically add the module) http://tutorialspots.com/php-how-to-install-intl-module-on-centos-4357.html

It looks like there is a php-intl package on Debian as well.

Riduidel commented 6 months ago

Looks like the same problem, but is not : php-intl is installed on my raspberry

ArthurHoaro commented 6 months ago

If you login, you should have stack trace. Is it the same error as the one you linked?

Riduidel commented 6 months ago

Yes, I have the error when logged in (and can't log out)

ArthurHoaro commented 6 months ago

This error could potentially come from a bug fixed by #2044 (not released). You could try to make sure that your locale is properly defined in your PHP config.

Riduidel commented 6 months ago

I've set the locale to fr-FR using intl.default-locale, but it changed nothing

Riduidel commented 6 months ago

Wait, after setting the intl.default-locale, re-running the sudo dpkg-reconfigure locales, restarting both php-fpm and apache2, it worked again !