Pete (a11n)
Forum Replies Created
-
Please forgive me for not providing all the information needed to help you.
No problem at all! I would’ve loved to help you figure out the issues you were dealing with.
I was acting upon the guidance of the JetPack Virtual Assistant which I have learned to my despair is hardly ready for Primetime and has caused damage to my Site.
It is JVA who sent me here. JVA who composed the message I posted and JVA who indicated that was all I needed to do.
I’m sorry to hear about your experience with JVA. I’ve noted this and will pass it along to the team working on the assistant.
Can you also share some insights about the damage it caused to the site? I would really love to know!
I am sorry for causing inconvenience. I will be cancelling my upgraded JetPack Subscription soon.
No inconvenience caused and I respect your decision.
I hope you don’t mind me asking you this question, but – what were your expectations with Jetpack Boost and what made you cancel? Since I’m one of the people working on it, your input would help me see if there’s an area of Boost that can be improved (apart from the Image Size Analyzer not providing fixes for the issues it reports yet).
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Disable block inline CSSHi there!
I added the Jetpack Slideshow to a test site, and it only added a stylesheet with the id
jetpack-block-slideshow-css
. I’m probably missing something.Could you share a link to the page that has this so I can take a closer look?
If you don’t feel comfortable sharing it publicly, you can reach out via this page. Make sure to include a link to this thread as well.
Hello there @devin104!
The Additional CSS editor keeps adding unwanted formatting/line breaks
Layout shift problems continue despite following optimization steps
Which editor are you exactly referring to? Jetpack Boost doesn’t have such an editor.
There’s quite a lot to unpack here with a lot of context missing due to the copy paste. For example, the screenshots are missing. I would love some more information to be able to help you solve this!
Can you paste the screenshots here?
Hey @boombatze!
It appears you’ve stumbled on an error that shouldn’t happen ):
Apologies for the back and forth in advance, but I’d really love to get to the bottom of this!
In order to do that, we may need additional information. Can you contact is via this page so we can discuss the next steps?
Hey!
I just checked and it appears that critical css generation is stuck for your site. I can also see that it’s getting served for the home page so at least that’s working. However, other pages aren’t showing critical css.
I may need additional information in order to figure out what’s causing the issue. Can you reach out to us over at this page? Make sure to add a link to this thread so we can easily pick up from where we left off.
Hello there @sareejoh!
Can you open the browser console and see if there’s an error when saving? Hopefully, there’s an error that can help us narrow things down.
You can always try reinstalling Boost to make sure its files aren’t corrupted.
Could you also share the website URL? If you like to share it privately, you can use this page.
- This reply was modified 3 months, 3 weeks ago by Pete (a11n). Reason: added question about website URL
Hello there.
That error shouldn’t happen and I would like to get to the bottom of it!
I can see that the Jetpack connection for your site is not working properly. Can you try disconnecting jetpack and connecting it again? You can do that by deactivating Boost and activating it again.
When that’s sorted, I’ll be able to take a closer look at the problem and hopefully resolve it.
- This reply was modified 3 months, 3 weeks ago by Pete (a11n). Reason: clarify how to reconnect
Forum: Plugins
In reply to: [Jetpack Boost - Website Speed, Performance and Critical CSS] CSSHappy to hear that!
Feel free to reach out again if anything isn’t working correctly. As for this thread, I’m marking it as resolved.
Hello there @susanna961
Thanks for the info.
I can see that the last time you generated critical css was on Monday and it was successful.
Successfully generating Critical CSS should clear the diagnostics. Updating a page, post, enabling/disabling a plugin or switching a theme could cause it to show that Critical CSS is outdated.
Could you try generating again and then without any other interactions with the site, go check on the WP diagnostic? It should be cleared up.
Hello there @wowlayers!
Thank you for the code example and information about your setup.
I think you’re on the right track and you’re using the right filter! Is it possible that you’re adding it to your theme?
If so that wouldn’t work, because if WordPress serves a cached file, it stops executing code that would normally execute on a non-cached request. In this case, any PHP code you add to the theme (or the theme’s PHP code) wouldn’t get executed.
Thankfully, WP Super Cache allows for a workaround.
First, you’ll need to modify your snippet a bit. Change this line:
add_filter('wp_cache_served_cache_file', 'modify_served_cache_file', 10, 1);
to this:
add_cacheaction('wp_cache_served_cache_file', 'modify_served_cache_file' );
This will tell WP Super Cache to run your code.
After that, create a new .php file inside
wp-content/plugins/wp-super-cache/plugins/
, and add the updated code to it.This will allow WordPress to execute your code and do the replacements!
Fingers crossed this works.
If it doesn’t, leave a comment so we can continue investigating.
Cheers!
- This reply was modified 5 months, 4 weeks ago by Pete (a11n). Reason: clarify file creation
Hey @nicklee0309!
The problem has been addressed here. We should be shipping out a Boost release that includes this in the upcoming week or two.
Forum: Plugins
In reply to: [WP Super Cache] Different operating systemsFor reference, the guidelines state:
Posting or accepting offers or requests for login information to a site. While plugin and theme authors may ask for this on their own support systems, they may not do so on www.remarpro.com for liability reasons.
So I did do bad. My bad.
- This reply was modified 7 months, 3 weeks ago by Pete (a11n). Reason: wrong paragraph
Forum: Plugins
In reply to: [WP Super Cache] Different operating systemsHey @sterndata!
The way I asked for the credentials is a standard procedure for the way we offer support at Automattic. I’m not sure anything “bad” was done in the way I asked.
Please correct me if I’m wrong.
Forum: Plugins
In reply to: [WP Super Cache] Different operating systemsHey!
The code you’ve provided in the screenshot should work! Though I see the button is in the top of the page – how are you adding it there? You should just be echoing your equivalent of
DYNAMIC_CACHE_BUTTON_TAG
that’s defined in the plugins directory of your WP Super Cache. As long as your code can find the string on the page, it should replace it with what’s necessary.Can you give me a screenshot of the settings above the advanced section? A note – you shouldn’t need late init for this to work.
I tested this locally with the following script and the page gets cached, and the button text updates on each refresh (It’s in a separate file in
wp-content/plugins/wp-super-cache/plugins/dynamic-button.php
:<?php
define( 'DYNAMIC_CACHE_BUTTON_TAG', '<span>OS BUTTON VERIFICATION</span>' );
if ( '' !== DYNAMIC_CACHE_BUTTON_TAG ) {
function dynamic_cache_button_tag_safety( $safety ) {
return 1;
}
add_cacheaction( 'wpsc_cachedata_safety', 'dynamic_cache_button_tag_safety' );
function dynamic_cache_button_tag_filter( $cachedata ) {
$button = '<button>Time now is ' . date( 'H:i:s' ) . '</button>';
return str_replace( DYNAMIC_CACHE_BUTTON_TAG, $button, $cachedata );
}
add_cacheaction( 'wpsc_cachedata', 'dynamic_cache_button_tag_filter' );
function dynamic_cache_button_tag_template_tag() {
echo DYNAMIC_CACHE_BUTTON_TAG; // This is the template tag.
}
function dynamic_cache_button_tag_init() {
add_action( 'wp_footer', 'dynamic_cache_button_tag_template_tag' );
}
add_cacheaction( 'add_cacheaction', 'dynamic_cache_button_tag_init' );
}https://share.cleanshot.com/yz8JX472
https://share.cleanshot.com/g9qmCKjV
These are the settings I used – https://share.cleanshot.com/vGmCRMwZ
- This reply was modified 7 months, 3 weeks ago by Pete (a11n). Reason: clarify super cache plugin's plugin
- This reply was modified 7 months, 3 weeks ago by Pete (a11n). Reason: add screenshots
Forum: Plugins
In reply to: [WP Super Cache] Different operating systemsHey!
WP Super Cache has a feature called “dynamic caching”. You can find it under the “Advanced” section in the “Advanced” tab.
So I imagine you could look into that to make the button a dynamic fragment. That should exclude it from the cache and show the correct button to people loading the page (depending on their OS).