iisti
Forum Replies Created
-
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.I got an answer on serverfault.com about the
output_buffering.According to PHP documentation,
output_bufferingis alwaysOfffor PHP-CLI.
Source: https://serverfault.com/a/1189433output_bufferingbool/intOutput 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 ofOnfor the value of this directive. For exampleoutput_buffering=4096. This directive is alwaysOffin PHP-CLI.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 foundDoes PHP-Code-Mode require
mysqldumpinstalled 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-ModeI created a
test.phppage with content<?php phpinfo(); ?>. The test page shows thatoutput_bufferingis 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 4096Now 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.I’m running the official image
wordpress:6.8.1-php8.2-apacheof WordPress in a Kubernetes pod. I have full control of the infrastructure. I tried to enable theoutput_bufferingsetting 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 itcp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
The copy is done before Apache starts, andphp --inishows 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.iniBut if I check for current running configuration, the
output_bufferingis off.php --info | grep "output_buffering"
output_buffering => 0 => 0Do you have any idea why the
output_bufferingis not enabled properly?Forum: Themes and Templates
In reply to: [Twenty Seventeen] Warning when creating child themeI 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 462Forum: Plugins
In reply to: [Recent Posts Widget Extended] Limit to Category doesn't worksHi 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!