bartkleinreesink
Forum Replies Created
-
I have found and solved the problem.
remove_post_type_support
was called in the theme for the ‘editor’, ‘trackbacks’, ‘author’, ‘revisions’ and ‘post-formats’ post types. It works as expected after removing these.It seems to be something in the theme. I will look further into it.
Forum: Plugins
In reply to: [Mollie Payments for WooCommerce] PHP 8.1 / PSR 3.0.0 compatibilityTo add to this: My plugin stopped working when my client installed this plugin due to a
Psr\Container\ContainerInterface
compatibility issue. My plugin used a newer version which want thehas
function to have a return type. Your plugin uses a version that does not require one so your implementation gives a fatal error.Please fix this problem. It’s as easy as giving line 103 in
vendor/inpsyde/modularity/src/Container/ReadOnlyContainer.php
a return type of bool.Thanks for your reply. To be very honest, I wrote my message in a hurry and didn’t take a good look at it. It indeed is strange
get_option('home')
returnsnull
.I’m going to have to check why that even happens in the first place.
Anyhow, thanks for taking a look.
Edit: Had a look, the typecasting option is indeed the best idea. It does need fixing, though. The reason why
parse_url(get_option('home'), PHP_URL_PATH);
returnsnull
is because my home url doesn’t anything after the base url. So it’s only logical it returns nothing.- This reply was modified 2 years, 3 months ago by bartkleinreesink.
- This reply was modified 2 years, 3 months ago by bartkleinreesink.
Forum: Plugins
In reply to: [WebP Express] Images not being converted on the fly on nginx serverYeah, that was my thought as well. Live testing indeed fails. I’m going to contact my server admin about this. Thanks.
Forum: Plugins
In reply to: [WebP Express] Images not being converted on the fly on nginx serverUnfortunately referencing the images from the uploads folder doesn’t change anything. All images in the HTML are referenced as webp, yet no images from the CSS are.
Here’s a screenshot of my settings: https://i.imgur.com/RZ2IojB.png
Forum: Plugins
In reply to: [WebP Express] Images not being converted on the fly on nginx serverHi,
Thanks for your quick reply, I appreciate it.
When I request a non-converted image, it indeed shows the headers you mentioned and gets converted correctly. However, images requested from CSS files are still not being redirected. I have applied the following rules to my server:
# WebP Express rules # -------------------- location ~* ^/?wp-content/.*\.(png|jpe?g)$ { add_header Vary Accept; expires 365d; if ($http_accept !~* "webp"){ break; } try_files /wp-content/webp-express/webp-images/doc-root/$uri.webp $uri.webp /wp-content/plugins/webp-express/wod/webp-on-demand.php?xsource=x$request_filename&wp-content=wp-content ; } # Route requests for non-existing webps to the converter location ~* ^/?wp-content/.*\.(png|jpe?g)\.webp$ { try_files $uri /wp-content/plugins/webp-express/wod/webp-realizer.php?xdestination=x$request_filename&wp-content=wp-content ; } # ------------------- (WebP Express rules ends here)
I have also applied the settings suggested with this configuration.
Do you maybe have any other suggestions on what I could try?