YunoHost-Apps / piwigo_ynh

Piwigo package for YunoHost
http://piwigo.org/
GNU General Public License v2.0
6 stars 3 forks source link

Pictures not displayed correctly after fresh install #128

Open HalibutGitWiz opened 2 months ago

HalibutGitWiz commented 2 months ago

Describe the bug

After a fresh install (both Yunohost and Piwigo), uploading pictures seem to work. But the pictures are not displayed correctly afterwards.

Context

Steps to reproduce

2024-05-04_12-20

This step seems to behave as expected : I get a confirmation message and the upload takes a few seconds per picture. But the pictures don't appear.

2024-05-04_12-20_1

2024-05-04_12-20_2

Browser console shows a 404 error and a very small file size. I checked on the server and the files indeed don't exist.

2024-05-04_12-23

Expected behavior

See the images I uploaded both in Administration panel and in the gallery.

Logs

I don't know where Piwigo logs are stored.

This issue was discussed (in French) in the forum

sdfoersn490 commented 1 month ago

can confirm, I have the same issue.

jorgesat commented 1 month ago

Same issue here.

rthouvenin commented 3 weeks ago

I faced the same issue after upgrading from 13.8 to 14.3. I could see the photos were still present on the file system in /home/yunohost.app/piwigo, but the requests to display them was returning 404 errors.

I looked at the code of i.php, and found that it was trying to read the file from the folder <piwigo_root>/$conf['data_location'], and data_location is set to /home/yunohost.app/piwigo. So there is a mismatch between the config set by the YNH package and the fact that Piwigo expects the data folder to be a sub-folder of the application root.

To solve the problem on my server, I replaced the folder /var/www/piwigo/home/yunohost.app/piwigo (which existed but as mostly empty) with a symbolic link to /home/yunohost.app/piwigo. The pictures are now correctly displayed.

I hope this helps people work around the problem, and package maintainers provide a fix...