Pictures not displayed correctly after fresh install
HalibutGitWiz opened this issue · comments
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
- Hardware: VPS bought online
- YunoHost version: 11.2.11.2
- I have access to my server: through SSH and the webadmin
- Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: yes, I installed Piwigo at the root of its own subdomain instead of a "piwigo/" subfolder in the default domain because of #127
- Using, or trying to install package version/branch: 14.3.0~ynh1
Steps to reproduce
- Install Yunohost at the root of its own subdomain
- Connect to Piwigo, go to Administration and upload pictures
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.
- Go to your gallery : pictures are not displayed either
Browser console shows a 404 error and a very small file size. I checked on the server and the files indeed don't exist.
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
can confirm, I have the same issue.
Same issue here.
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...