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

Batch Downloader fails when using piwigo as Docker Image #58

Open
PaulSpa opened this issue Sep 28, 2024 · 0 comments
Open

Batch Downloader fails when using piwigo as Docker Image #58

PaulSpa opened this issue Sep 28, 2024 · 0 comments

Comments

@PaulSpa
Copy link

PaulSpa commented Sep 28, 2024

Environment

  • Piwigo Version 14.5.0
  • BatchDownloader Version 14.a
  • Docker image linuxserver/piwigo or scr.io/linuxserver/piwigo:latest
    This issue does not appear, if Piwigo is installed via the manual installation instructions

Symptoms

  • After requesting the zip file by the cloud button of Batch Downloader the browser reports an HTTP Error 500
  • In the nginx error.log messages like the following appear:

2024/09/28 11:29:08 [error] 294#294: *7179 FastCGI sent in stderr: "PHP message: PHP Warning: include(../../include/common.inc.php): Failed to open stream: No such file or directory in /config/www/plugins/BatchDownloader/download.php on line 3; PHP message: PHP Warning: include(): Failed opening '../../include/common.inc.php' for inclusion (include_path='.:/usr/share/php83') in /config/www/plugins/BatchDownloader/download.php on line 3; PHP message: PHP Fatal error: Uncaught Error: Call to undefined function check_status() in /config/www/plugins/BatchDownloader/download.php:5

Not your fault but others might see the same issue

I am aware, this is not directly a Batch Downloader issue, but caused by the set up of the docker image. But many Piwigo administrators do use docker to run Piwigo and might interprete this as a Batch Downloader issue first.

I also reported this to the maintainer of the Piwigo docker image.

Workaround

Adjust the path in to the plugin/BatchDownloader/download.php script:

<?php
#define('PHPWG_ROOT_PATH', '../../');
define('PHPWG_ROOT_PATH', '/app/www/public/');
include(PHPWG_ROOT_PATH.'include/common.inc.php');
[...]

After this change the issue does not exist anymore in this environment.

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

1 participant