Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pictures not displayed correctly after fresh install #128

Open
HalibutGitWiz opened this issue May 4, 2024 · 3 comments
Open

Pictures not displayed correctly after fresh install #128

HalibutGitWiz opened this issue May 4, 2024 · 3 comments

Comments

@HalibutGitWiz
Copy link

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 malformed webpage with no styling upon fresh installation #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

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

  • Go to your gallery : pictures are not displayed either

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
Copy link

can confirm, I have the same issue.

@jorgesat
Copy link

Same issue here.

@rthouvenin
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants