polyfade
Forum Replies Created
-
Forum: Reviews
In reply to: [Gutenberg Block Editor Toolkit – EditorsKit] Extendify CrapDon’t you just hate it when good plugins turn bad?
Please don’t add in garbage no one asked for.I used this plugin to make Gutenberg more accessible, not for the purpose of adding more shameless blocks. That wasn’t the purpose of this plugin in the beginning, or maybe that was my assumption.
Forum: Plugins
In reply to: [amr ical events lists] How do you deregister this plugin’s styles?Nevermind. There’s a tick box to not use plugin’s styles. That’s good enough for me.
Forum: Plugins
In reply to: [amr ical events lists] Query String ErrorYes, this will mostly fall on deaf ears.
Another thing to add to my growing laundry list against them.
– Still using http/1.1 protocol, not even http/2; forget about http/3
– No Imagick support. (Now required by WordPress). The GD Images module is old and I don’t think there’s a way to properly transform transparent pngs to webp.
– No ability to enable other PHP modules.
– No database access other than PHPMyAdmin.
– Hard query limit per hour. Then, the site goes dark.
– Extremely antiquated CPanel.
– No SSH support.
– Host uses antiquated HDD instead of SSD storage.
– No PHP calendar support.Thanks for the hosting recommendation. I’ve used shared hosting like FastComet for clients sites for ~8 years. I’m pretty satisfied (but not married to them) because I know they check against all the pain points above.
Forum: Plugins
In reply to: [amr ical events lists] Query String Error@anmari thanks again. Here I was looking for some cryptic PHP function, but it’s that obvious. Yes, it seems the Calendar support was not rolled into their PHP build.
I can clearly see it on my personal, local and remote sites/servers.
Hmm, I wonder why the PHP team decided to make this optional? They include it automatically on the Windows version of PHP according to the docs.
- This reply was modified 4 years, 11 months ago by polyfade.
Forum: Plugins
In reply to: [amr ical events lists] Query String Error@anmari other than relying on the host’s word stating that
gregoriantojdwas compiled into their PHP version. Is there any way to find out for sure?Running
phpinfo()on a page to list server details doesn’t tell me much regarding it.I tested your plugin running locally and remotely on different servers running PHPv4, and there are no issues. This host is awful.
Forum: Plugins
In reply to: [amr ical events lists] Query String ErrorI’m also having this problem of
bypassing_apache, like so many other have posted to this forum. Both GD and imagick are installed and support webp, png and jpeg/jpg. I checked my server config against the one provided in the FAQs. https://gbiorczyk.pl/webp-converter/serverinfo.pngI tried both PHPv3.x and v 4.x
Both of the test png files for before and after succeeded too. For some reason my server isn’t allowing these access rules to be written to these htaccess files. File permissions are 644. Directories are 755. I can see the htaccess files this plugin has generated but there are no rules defined within them.
I don’t have any caching or security plugins enabled or server-side caching enabled for that matter.
I checked my wp-config and other htaccess files as well for anything that would prevent access to these files.
I’m completely dumbfounded.
Basically, I had to copy the htaccess files where this plugin was working from my local dev and add them to my shared hosting in order to get this working. This might be ill-advised but it was the only way to get this working. And it does work without error. The files get generated and the webp type has been assigned to relevant images.
Exactly, thanks. I was getting confused by this: https://htaccess-for-nginx.com/
- This reply was modified 4 years, 11 months ago by polyfade.
@mateuszgbiorczyk No worries, thanks.
- This reply was modified 4 years, 11 months ago by polyfade.
Entire nginx config for the site. Much of this stuff is what Valet adds in for SSL, etc.
server { location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif)$ { if ($http_accept !~* "image/webp") { break; } add_header Vary Accept; expires 365d; try_files /wp-content/uploads-webpc/$path.$ext.webp $uri =404; } } server { listen 127.0.0.1:80; #listen 127.0.0.1:80; # valet loopback server_name mysite.test www.mysite.test *.mysite.test; return 301 https://$host$request_uri; } server { listen 127.0.0.1:443 ssl http2; #listen 127.0.0.1:443 ssl http2; # valet loopback server_name mysite.test www.mysite.test *.mysite.test; root /; charset utf-8; client_max_body_size 512M; http2_push_preload on; location /41c270e4-5535-4daa-b23e-c269744c2f45/ { internal; alias /; try_files $uri $uri/; } ssl_certificate "/Users/me/.config/valet/Certificates/mysite.test.crt"; ssl_certificate_key "/Users/me/.config/valet/Certificates/mysite.test.key"; location / { rewrite ^ "/Users/me/.composer/vendor/laravel/valet/server.php" last; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } access_log off; error_log "/Users/me/.config/valet/Log/nginx-error.log"; error_page 404 "/Users/me/.composer/vendor/laravel/valet/server.php"; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass "unix:/Users/me/.config/valet/valet.sock"; fastcgi_index "/Users/me/.composer/vendor/laravel/valet/server.php"; include fastcgi_params; fastcgi_param SCRIPT_FILENAME "/Users/me/.composer/vendor/laravel/valet/server.php"; fastcgi_param PATH_INFO $fastcgi_path_info; } location ~ /\.ht { deny all; } } server { listen 127.0.0.1:60; #listen 127.0.0.1:60; # valet loopback server_name mysite.test www.mysite.test *.mysite.test; root /; charset utf-8; client_max_body_size 128M; add_header X-Robots-Tag 'noindex, nofollow, nosnippet, noarchive'; location /41c270e4-5535-4daa-b23e-c269744c2f45/ { internal; alias /; try_files $uri $uri/; } location / { rewrite ^ "/Users/me/.composer/vendor/laravel/valet/server.php" last; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } access_log off; error_log "/Users/me/.config/valet/Log/nginx-error.log"; error_page 404 "/Users/me/.composer/vendor/laravel/valet/server.php"; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass "unix:/Users/me/.config/valet/valet.sock"; fastcgi_index "/Users/me/.composer/vendor/laravel/valet/server.php"; include fastcgi_params; fastcgi_param SCRIPT_FILENAME "/Users/me/.composer/vendor/laravel/valet/server.php"; fastcgi_param PATH_INFO $fastcgi_path_info; } location ~ /\.ht { deny all; } }@mateuszgbiorczyk ok, I removed that
uploadsfrom the path location.Now it reads
try_files /wp-content/uploads-webpc/$path.$ext.webp $uri =404;if I don’t use the Pass Thru mode, I receive a server configuration error returned by the plugin.
I’m trying to configure using htaccess.
I don’t have any caching enabled via plugin or server-side. Restarted after each test.
In functions, I set to absolute path:
add_filter( 'webpc_site_root', function( $path ) { return '/Volumes/Evo/Sites/mysite'; } );Other than that my WP setup is the typical uploads directory location – nothing special.
Absolute path to uploads:
/Volumes/Evo/Sites/mysite/wp-content/uploadsAbsolute path to uploads-webpc:
/Volumes/Evo/Sites/mysite/wp-content/uploads-webpcStill getting rewrites_not_working.
- This reply was modified 4 years, 11 months ago by polyfade.
Regarding my nginx setup, on some images I now see
https://mysite.test/wp-content/webpc-passthru.php?src=https://gateway.test/wp-content/uploads/eva-400x400.png&nocache=1So it must be this configuration:
server { location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif)$ { if ($http_accept !~* "image/webp") { break; } add_header Vary Accept; expires 365d; try_files /wp-content/uploads-webpc/uploads/$path.$ext.webp $uri =404; } }In the FAQs, the
try_files /wp-content/uploads-webpc/$path.$ext.webp $uri =404;is specified differently. Should it betry_files /wp-content/uploads-webpc/uploads/$path.$ext.webp $uri =404;instead? Or maybe this is specific to my setup?- This reply was modified 4 years, 11 months ago by polyfade.
I now understand it won’t show the
.webpfile, but rather its displaying the.jpg.webpfile. That is “magical” yet its awkward when it comes to testing.When I tried this out on an Apache server using MAMP, this plugin works right out of the box (I think). In devtools, within the Network tab, the jpg shows as a type of webp with Headers as
Content-Type: image/webp.My Valet setup is a bit different besides it running nginx. My projects live on an external SSD. So I don’t know how the paths should be specified within the site’s nginx config. This is the absolute path to
uploads-webpcis/Volumes/Evo/Sites/mysite/wp-content/uploads-webpc.- This reply was modified 4 years, 11 months ago by polyfade.
Forum: Plugins
In reply to: [Static Site Exporter] Menu order for custom post typesAlso, to return the slug, add
'slug' => $post->post_name.Forum: Plugins
In reply to: [Static Site Exporter] Menu order for custom post typesActually easier than I thought.
Add
'menu_order' => $post->menu_orderto the output array ~line 154