Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter iisti

    (@iisti)

    Hi,

    I fixed a client IP logging issue from Apache2, and it also fixed Duplicator’s backup issue.
    The issue was that the X-Forwarded-For header was set incorrectly.

    Thread Starter iisti

    (@iisti)

    I got an answer on serverfault.com about the output_buffering.

    According to PHP documentation, output_buffering is always Off for PHP-CLI.

    output_buffering bool/int

    Output buffering for all files can be enabled by setting this directive to On. To limit the size of the buffer, a number/quantity corresponding to the maximum numbers of bytes allowed can be used instead of On for the value of this directive. For example output_buffering=4096. This directive is always Off in PHP-CLI.

    Source: https://serverfault.com/a/1189433
    Thread Starter iisti

    (@iisti)

    The container logs show the Duplicator script tries to find mysqldump.

    sh: 1: --help: not found
    sh: 1: mysqldump: not found
    sh: 1: /usr/local/bin/mysqldump: not found
    sh: 1: /usr/local/mysql/bin/mysqldump: not found
    sh: 1: /usr/mysql/bin/mysqldump: not found
    sh: 1: /usr/bin/mysqldump: not found
    sh: 1: /opt/local/lib/mysql6/bin/mysqldump: not found
    sh: 1: /opt/local/lib/mysql5/bin/mysqldump: not found
    sh: 1: /usr/bin/mysqldump: not found

    Does PHP-Code-Mode require mysqldump installed on the host? As far as I understood from this article it’s not needed https://duplicator.com/knowledge-base/choosing-the-best-database-sql-mode-in-duplicator/#PHP-Code-Mode

    I created a test.php page with content <?php phpinfo(); ?>. The test page shows that output_buffering is on, and Duplicator doesn’t give the notice anymore.

    Loaded Configuration File   /usr/local/etc/php/php.ini 
    ---
    Directive Local Value Master Value
    output_buffering 4096 4096

    Now there are no errors, warnings, or notices in the Duplicator log file, but backup still fails with Host Build Interrupt.

    P.s. I posted a question to https://serverfault.com/questions/1189431/php-info-shows-different-configuration-than-phpinfo about php infos showing different outputs.

    Thread Starter iisti

    (@iisti)

    I’m running the official image wordpress:6.8.1-php8.2-apache of WordPress in a Kubernetes pod. I have full control of the infrastructure. I tried to enable the output_buffering setting by copying the example configuration file.

    # Check that the php.ini-production has output_buffering enabled.
    grep "output_buffering" /usr/local/etc/php/php.ini-production
    ; output_buffering
    output_buffering = 4096
    ; performance, enable output_buffering in addition.

    # Enable the configuration file by copying it
    cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini


    The copy is done before Apache starts, and php --ini shows the configuration file is loaded.

    php --ini
    Configuration File (php.ini) Path: /usr/local/etc/php
    Loaded Configuration File: /usr/local/etc/php/php.ini
    Scan for additional .ini files in: /usr/local/etc/php/conf.d
    Additional .ini files parsed: /usr/local/etc/php/conf.d/docker-php-ext-bcmath.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-exif.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-gd.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-imagick.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-intl.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini,
    /usr/local/etc/php/conf.d/docker-php-ext-zip.ini,
    /usr/local/etc/php/conf.d/error-logging.ini,
    /usr/local/etc/php/conf.d/opcache-recommended.ini

    But if I check for current running configuration, the output_buffering is off.

    php --info | grep "output_buffering"
    output_buffering => 0 => 0

    Do you have any idea why the output_buffering is not enabled properly?

    iisti

    (@iisti)

    I had same case as @caseywp that I got errors and after I removed blank line after final ?> in child theme’s functions.php everything is fine.

    Error in browser:

    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/themes/mytheme-child/functions.php:16) in /var/www/html/wp-login.php on line 447
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/themes/mytheme-child/functions.php:16) in /var/www/html/wp-login.php on line 462
    

    Hi Satrya, thanks for nice plugin!

    I have the same problem. I wrote to Limit to Taxonomy box “category=uutinen” and tried “post_tag=uutinen”. “uutinen” is the slug name for my category. Does it not work with slugs? I didn’t find any ID numbers to separate the categories from each other. I’m not using cache plugins.

    When I put the “category=uutinen” nothing shows up and when I don’t write anything every post show up. I tried other slugs also.

    Thanks!

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