janiosarmento
Forum Replies Created
-
Forum: Plugins
In reply to: [Super Page Cache] Error Code 7003 No Route for That URISorry, I can’t paste my logs here; I’m an authorized user for some clients of mine, and the logs would expose data that do not belong to me.
However, I think I have something new to share: the failed API call is:
https://api.cloudflare.com/client/v4/accounts//workers/scripts
Notice the double-slash in the URL; it is supposed to have an ID after “accounts” and before “workers”; for some reason the plugin can’t get this ID.
Forum: Plugins
In reply to: [Super Page Cache] Error Code 7003 No Route for That URII am 100% sure my API credentials are right, and also facing this message.
Forum: Plugins
In reply to: [Invisible reCaptcha for WordPress] PHP 7.4 DeprecatedThanks God I came here to see the tickets before updating PHP in my server.
Is this a fatal error or is it safe to upgrade PHP and wait for a new release of the plugin?
Thanks!
Forum: Plugins
In reply to: [Contextual Related Posts] ExcerptsI’ll see what I can do with the amount of post content.
I asked about post excerpt because I use it as a “subtitle” for my posts, reinforcing the keywords.
Thanks for your answer.
Nice that my ticket was useful not only for me. ??
Thanks for your kind response.
Forum: Plugins
In reply to: [Merge + Minify + Refresh] When does minification occur?Sorry, but I gave up your plugin for now; I won’t be able to send any logs.
I was running
wp-cron
via CLI just to ensure it was running, not default for that blog.Forum: Plugins
In reply to: [Merge + Minify + Refresh] When does minification occur?I tried running
php wp-cron.php
but there are lots of warnings regardingUndefined index: HTTP_HOST
.Also, are there known bad interactions with cache plugins?
I purged the CSS and JS files, but the newly created merged files never get minified, it doesn’t matter what.
Forum: Plugins
In reply to: [Minify HTML] Added if user logged in to codeThank you!
Forum: Plugins
In reply to: [Minify HTML] Added if user logged in to codeWP-CLI: Command Line Interface for WordPress.
Believe me, it’s wonderful. If you happen to use Unix Terminal, you’ll love WP-CLI. I have more and less 2000 WPs under my control. Without WP-CLI I wouldn’t be making my money, my customers wouldn’t be that happy.
Forum: Plugins
In reply to: [Minify HTML] Added if user logged in to codeHi, Tim.
I did the code adjustment on my blogs.
You just have to add the line I suggested below your line:
if ( !is_admin() )
The complete code will be:
if ( !is_admin() ) if ( ! ( defined( 'WP_CLI' ) && WP_CLI ) ) add_action( 'init', 'teckel_init_minify_html', 1 );
That simple. ??
Forum: Plugins
In reply to: [Minify HTML] Added if user logged in to codeHello,
I’d like to suggest another change: check if WP is running under WP-CLI, and disable it in such case, because the output of any
wp
command gets really messed on Terminal.I did it locally with:
if ( ! ( defined( 'WP_CLI' ) && WP_CLI ) )
Forum: Plugins
In reply to: [EWWW Image Optimizer] Rewrite rules for WebP with NginxHello.
I had the same issue, and solved with the following code:
location ~* ^/.+\.(png|jpg|jpeg)$ { set $red Z; if ($http_accept ~* "webp") { set $red A; } if (-f $request_filename.webp) { set $red "${red}B"; } if ($red = "AB") { add_header Vary Accept; rewrite (.*) $1.webp redirect; } }
Instead of rewriting the image (what causes issues with my cache configuration) I made my choice for a redirect. If visitor’s browser supports webp, and an image .webp with the same name exists, then the redirection occurs.
If you can read in Portuguese, in my blog I explain the hack I had to use in order to make multiple conditionals on Nginx.
https://janio.sarmento.org/hackeando-o-nginx-condicionais-multiplas.html