nilsjeppe
Forum Replies Created
-
Forum: Plugins
In reply to: [WebP Express] Multisite?thanks @vadim-s-sabinich for your reply ??
It does seem to work somewhat. Test images work, and so do some images hard coded in themes, apparently. In the webp-express directory, I see:
webp-express]# find . |grep -i \.webp$
./webp-images-bigger-than-source/themes/duster/images/search.png.webp
./webp-images-bigger-than-source/themes/webp-express-test-images/Bd1ZSK.JPEG.webp
./webp-images-bigger-than-source/uploads/webp-express-test-images/rllyVA.JPEG.webp
./webp-images/plugins/cookie-law-info/admin/modules/cookies/images/cli_icon.png.webp
./webp-images/plugins/cookie-law-info/admin/images/support.png.webp
./webp-images/plugins/cookie-law-info/admin/images/documentation.png.webp
./webp-images/plugins/cookie-law-info/images/cross.png.webp
./webp-images/wp-content/blogs.dir/36/files/2020/01/cropped-gwicon-32×32.jpg.webp
./webp-images/themes/hemingway/assets/images/header.jpg.webp
./webp-images/themes/twentyten/images/headers/path.jpg.webp
./webp-images/themes/twentyten/images/wordpress.png.webp
./webp-images/themes/neve/screenshot.png.webp
./webp-images/themes/duster/images/search.png.webp`(grep for brevity). So the plugin does run. it can convert and write files, etc. but it’s ignoring any and all “content” images.
I do make heavy use of child themes, mainly to prevent calls to fonts.google.com, which may be noteworthy. It does not seem to make a difference though (a site that doesn’t use a child theme also doesn’t appear to convert images).
There’s really nothing weird about my lamp stack. It’s apache + MariaDB + php-fpm. PHP version is 7.4 – I tried 8.1 and 8.0 but apparently those cause issues with WP and various plugins and themes so that’s not an option.
Apache config is absolutely minimal. 2 vhosts per site, one http that redirects to https, one https that points at wordpress:
<VirtualHost ip:80>
ServerName https://www.example.com
ServerAlias example.comDirectoryIndex index.html index.php
DocumentRoot /home/www/wordpress/htdocs/CustomLog /var/log/httpd/wordpress.combined.log combined
ErrorLog /var/log/httpd/wordpress.errors.log# mod_deflate
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
RewriteEngine on
RewriteCond %{SERVER_NAME} =example.com [OR]
RewriteCond %{SERVER_NAME} =www.example.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>`<IfModule mod_ssl.c>
<VirtualHost ip:443>
ServerName https://www.example.com
ServerAlias example.comDirectoryIndex index.html index.php
DocumentRoot /home/www/wordpress/htdocs/CustomLog /var/log/httpd/wordpress.combined.log combined
ErrorLog /var/log/httpd/wordpress.errors.log# mod_deflate
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascriptInclude /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pemHeader always set Strict-Transport-Security “max-age=31536000; includeSubDomains; preload”
</VirtualHost>
</IfModule>`The vhost for *.blog.example.net is identical, except for the domain name. (Reason for separate vhosts is the use of letsencrypt SSL certs, I can’t work with SANs.)
The only “nonstandard thing” I set outside the vhosts is:
ExpiresActive on
ExpiresDefault “access 1 day”
Header append Cache-Control “public”I really doubt that’s related to this issue.
Relevant plugins might be:
GDPR Cookie Consent – doesn’t seem to affect the issue (tested on/off)
Autooptimize – doesn’t seem to affect the issue (tested on/off)
Jetpack – without the CDN/image acceleration options
WordPress MU Domain Mapping – For, well, domain mapping (I am not even sure this is still needed)Webp Express settings:
Operation mode varied (default)
Scope All Content
Image types both jped and png
Destination folder separate
File extension append (it’s greyed out, can’t be changed)
Destination structure image roots
Cache control set private one day
Prevent using webps larger than original disabledI haven’t enabled “convert on upload”, and I haven’t tried “bulk convert”.
Enable direct redirection to existing converted images enabled
Enable redirection to converter enabled
Create webp files upon request enabledweb service and alter html are disabled.
Available Conversion methods are ImageMagick (php extension) and gd.
Side note, if I enable “alter html”, it does attempt to replace content images – it alters the html code, but they’re broken (because the images do not exist). Custom header image is untouched and still a jpeg.
Hmm. If there’s anything else that might be relevant… please let me know.
Forum: Fixing WordPress
In reply to: Disable automatic redirect to siteurl?Hm, doesn’t seem to work for me. Is there something else to do?
Edit: Sorry, caching problem… Works.
Forum: Fixing WordPress
In reply to: Themes disappearing in the admin interface..Are you using safe mode?
Forum: Your WordPress
In reply to: My first wordpress layoutEh, that should be 10 posts instead of 15 for the main column.
Forum: Your WordPress
In reply to: My first wordpress layoutGood morning!
Thanks for the kind words and great feedback, guys.
I am actually on 1680×1050 (20″ widescreen…), and I did notice the width problem. Ever since I got this screen, I have started to not use software in fullscreen mode for the first time since I started using GUIs. ?? I think I’d rather leave it open to the user what to do, since no matter what limit I chose, someone may still disagree. I guess this is why they make software run in resizeable windows ??
The problem with the sidebar is when you display a single post, the main section will be much shorter than the sidebar. I did fix this recently, by removing a lot of cruft from sidebar-single.php, it should be better now. I will also read up on Moshu’s link, thanks for that.
I’ve reduced the stuff in the main content column to 10 days instead of 15. Since I expect my weblog to be updated fairly regularily, I wasn’t sure what the best choice is. Limit by # of days would mean an “empty” main section if I post little for some time; limit by # of posts may mean that stuff rolls out of the main window too quickly if I am overly active.
Maybe I should add a “more recent posts” part on the bottom which just lists headline, date & category, for say, another 5 posts?
I agree that the archive should probably be collaped, at least for everything older than 12 months; I’ll check into that and see how it looks.
Thanks again to all of you, I really appreciate your help ??
– Nils
PS – Once the theme is done, I’ll happily provide it as a downloadable zip file under a creative commons license.