The latest WordPress update breaks the FTP server capabilities. )
So don't update to 6.1 yet, because it will break the update possibility of your installation.
And you cannot update anymore after it.
I've created an issue for it (Technically the exists method of the ftpext filesystem always returns true for the default FreeBSD ftpd server)
The coming 6.1.1 version should have reverted this change, but when you already upgraded it's already too late of course ;-)
When you've already installed, to only way forward is to
copy the WordPress 6.0
wp-admin/includeas/class-wp-filesystem-ftpext.php file into the installation.
You can download this 6.0 file here (remove the .txt extension)
Sometimes you want to only execute a given piece of code if a specific gem has is available. Testing if a constant is defined doesn't aslways work when using autoloading.
Running a rsync command to an old server, specifying a different HostKeyAlgorithm fails very strangely on OpenSuSE
rsync -av --stats --delete '-oHostKeyAlgorithms=+ssh-dss' email@example.com:/data/path/ /local/path/
rsync: [Receiver] Failed to exec yAlgorithms=+ssh-dss: No such file or directory (2)
rsync error: error in IPC code (code 14) at pipe.c(85) [Receiver=3.2.3]
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in IPC code (code 14) at io.c(228) [Receiver=3.2.3]
No such file or directory.... IPC code (code 14)
I don't know exactly what's causing this, but a workaround seems to be to use the -e option and to supply this command to your ssh shell
rsync -av --stats --delete -e "ssh -o HostKeyAlgorithms=+ssh-dss" firstname.lastname@example.org:/data/path/ /local/path/
We have a synchronisation script running with the REST API from WooCommerce. This script is running for years. But suddenly it received gateway errrors
/var/log/nginx/error.log, the following error messages appeared
2022/08/03 22:41:19 [error] 1233#33321: *323108 upstream sent too big header while reading response header from upstream, client: 10.0.0.1, server: www.example.com, request: "POST /wp-json/wc/v3/products/1234/variations/batch HTTP/1.1", upstream: "fastcgi://unix:/tmp/example.com.sock:", host: "www.example.com"
It seems PHP is sending debug information over the FASTCGI headers.
This isn't desirable.
To fix it, disable it in php.ini. (it's on by default. WHY!?)
fastcgi.logging = 0
Btw. these errors/warnings are from low quality wordpress-plugins. (which cannot be replaced directly)
defaults write com.apple.screencapture type jpg; killall SystemUIServer
# Your options are JPG, TIFF, GIF, PDF and PNG.