• Everything in the plugin works fine but extracting is not possible:

    Unable to extract files from “html/wp-content/plugins/xyz.zip”

    I run WordPress as Docker container and the ZIP functionality is installed:

    RUN \
    apt-get update && \
    apt-get install -y --no-install-recommends \
    libicu-dev \
    libzip-dev \
    libldap2-dev \
    ssmtp && \
    docker-php-ext-install zip && \
    docker-php-ext-enable zip && \
    docker-php-ext-install intl && \
    docker-php-ext-enable intl && \
    docker-php-ext-install shmop && \
    docker-php-ext-enable shmop

    Permissions are set to 644 and 755. Can I debug this or collect some logs? I cannot find anything that would help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support File Manager Support

    (@filemanagersupport)

    Hello cptdaydreamer,

    I hope you are doing well.
    To conclusively check whether the issue is coming from the plugin or from the server environment, we recommend running one quick test directly on the server.

    Please access your Docker container and run the following command:

    php -r '
    $zip = new ZipArchive();
    var_dump($zip->open("/var/www/html/wp-content/plugins/xyz.zip"));
    var_dump($zip->extractTo("/var/www/html/wp-content/plugins"));
    $zip->close();
    '

    Don’t forget to change your path if it is different from the one used in the snippet above.

    This test uses the exact same ZIP extraction method that the plugin relies on internally.
    Once you have the output, feel free to share it with us, and we’ll be happy to guide you with the next steps.

    Thread Starter cptdaydreamer

    (@cptdaydreamer)

    The output is

    bool(true)
    bool(true)

    I guess this is good, right? So that is not the reason. It was extracted as well.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.