Title: tenacityio's Replies | WordPress.org

---

# tenacityio

  [  ](https://wordpress.org/support/users/tenacityio/)

 *   [Profile](https://wordpress.org/support/users/tenacityio/)
 *   [Topics Started](https://wordpress.org/support/users/tenacityio/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tenacityio/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tenacityio/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tenacityio/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tenacityio/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tenacityio/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/users/tenacityio/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/tenacityio/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spectra Legacy – Gutenberg Blocks] Image Gallery toggles Imagify on init, WebP/picture on non-gallery pages](https://wordpress.org/support/topic/image-gallery-toggles-imagify-on-init-webp-picture-on-non-gallery-pages/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/image-gallery-toggles-imagify-on-init-webp-picture-on-non-gallery-pages/#post-18731263)
 * [@mohsinbsf](https://wordpress.org/support/users/mohsinbsf/) I know why your 
   devs think it’s needed but what I don’t understand is why it setup to impact 
   the entire website. 
   “we’ve implemented a scan to detect when the lightbox is
   enabled and temporarily disable WebP image conversion on those pages.” In Version
   2.19.16? **Please clarify.**We are seeing `picture` shutoff across the entire
   website, unless we implement the patch above, which I would consider a temporary
   hotfix, since all it really does it reruns the imagify picture tag replacement.
   We don’t use the Spectra Image Gallery or lightbox on the site at all, and it
   impact the entire site. I’ve turned off Image Gallery in the settings panel, 
   which looking at the code it’s clear this doesn’t actually stop the Image Gallery
   class. So, it affects pages that don’t have a single Spectra block.**Let me explain
   again and provide a potential fix**In ultimate-addons-for-gutenberg/blocks-config/
   image-gallery/class-spectra-image-gallery.phpThe issue is when `class Spectra_Image_Gallery`
   is initiated (~ line 17), which will be always, the Imagify nextgen picture tags
   are turned off (~ line 58), it only turns back on when it when an Image Gallery
   is rendered (~ line 1089). That means that if any page doesn’t have an Image 
   Gallery on it, the next gen will be turned off, because Image nextgen picture
   tags will be turned off but never turned back on. So, the plugin effectively 
   turns it off on the entire website, with potentially one exception of page with
   Image Galleries on it after they are rendered, I haven’t tested this.**The potential
   fix**Remove the filters and add Imagify native `imagify-no-webp` class to any
   and all images in the Image Gallery. This ensures those of us that prefer using
   the Imagify picture tag don’t have our sites broken, those that use the Imagify
   htaccess method will be unaffected and Spectra image gallery will be excluded
   from the picture tag rendering issues.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spectra Legacy – Gutenberg Blocks] Image Gallery toggles Imagify on init, WebP/picture on non-gallery pages](https://wordpress.org/support/topic/image-gallery-toggles-imagify-on-init-webp-picture-on-non-gallery-pages/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [10 months ago](https://wordpress.org/support/topic/image-gallery-toggles-imagify-on-init-webp-picture-on-non-gallery-pages/#post-18682208)
 * Respectfully, that’s not correct, about the buffering
   This adds the action lightweight_webp_fix
   to every page load
 *     ```wp-block-code
       add_action( 'template_redirect', 'lightweight_webp_fix', 1 );
       ```
   
 * This says buffer output when next gen images are turned on, which is the purpose
   of Imagify.
 *     ```wp-block-code
               if ( get_imagify_option( 'display_nextgen' ) ) {            add_action( 'template_redirect', function() {                ob_start( function( $buffer ) {                    return apply_filters( 'imagify_process_webp_content', $buffer );                });            }, 101 );        }
       ```
   
 * So, if next gen images are on, which it would be on the entire website, the output
   buffers on every page.
 * I guess it’s correct, in that the issue affects the entire website because the
   Spectra Gallery isn’t properly scoped. Two things can be true, I suppose. But
   this is a workaround that introduces a global performance issue, in place of 
   another global performance issue, not a fix.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spectra Legacy – Gutenberg Blocks] Image Gallery toggles Imagify on init, WebP/picture on non-gallery pages](https://wordpress.org/support/topic/image-gallery-toggles-imagify-on-init-webp-picture-on-non-gallery-pages/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [10 months, 1 week ago](https://wordpress.org/support/topic/image-gallery-toggles-imagify-on-init-webp-picture-on-non-gallery-pages/#post-18675323)
 * Just to clarify doesn’t this require us to buffer every single page on the website?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Open in New Tab Toggle](https://wordpress.org/support/topic/open-in-new-tab-toggle/)
 *  [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/open-in-new-tab-toggle/#post-17558134)
 * They had added the checkbox back in on the link preview in 6.4, so at least it
   reduced the total number of clicks and unhid the option. But once again, they
   removed it in 6.5, which is very frustrating.
    -  This reply was modified 2 years, 4 months ago by [tenacityio](https://wordpress.org/support/users/tenacityio/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] PHP Errors and JavaScript Issues](https://wordpress.org/support/topic/php-errors-and-javascript-issues/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-errors-and-javascript-issues/#post-16471727)
 * [@jtsternberg](https://wordpress.org/support/users/jtsternberg/) That seems to
   have eliminated the error and restored the editor. Thank you! That would have
   taken forever to figure out.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] PHP Errors and JavaScript Issues](https://wordpress.org/support/topic/php-errors-and-javascript-issues/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-errors-and-javascript-issues/#post-16471671)
 * Sure here is all of the related PHP code that use CMB2 in the theme.
   [https://gist.github.com/tenacityio/a6d3afb28a8192677431b53d610567d1](https://gist.github.com/tenacityio/a6d3afb28a8192677431b53d610567d1)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] PHP Errors and JavaScript Issues](https://wordpress.org/support/topic/php-errors-and-javascript-issues/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-errors-and-javascript-issues/#post-16471644)
 * Registration Code? Like an activation code for the plugin?
   Or do you mean the
   theme code that uses CMB2?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] PHP Errors and JavaScript Issues](https://wordpress.org/support/topic/php-errors-and-javascript-issues/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/php-errors-and-javascript-issues/#post-16471612)
 * It’s not just Gamipress. 
   When activated, it reports the following error. (Gamipress
   not active.) I look at it, and basically, it’s using call_user_func but not limiting
   parameters.[https://help.tenacity.io/rRu5r0nl](https://help.tenacity.io/rRu5r0nl)
 * When activated, it also breaks the Standard Editor and WP Bakery (but only on
   Pages), which makes sense because it’s only being used for Pages in our theme.
   
   [https://help.tenacity.io/Jruy0qwR](https://help.tenacity.io/Jruy0qwR)I think
   this is likely two separate issues. Gamipress activation generates the same errors
   since they use CMB2 as a library.I found the following[https://stackoverflow.com/questions/34116787/cmb2-tinymce-menu-bar-not-showing](https://stackoverflow.com/questions/34116787/cmb2-tinymce-menu-bar-not-showing)
   But I’ve been through our theme code, and we don’t use wysiwyg fields, so it 
   didn’t apply. Perhaps there is something else?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-In-One Security (AIOS) – Security and Firewall] NGINX Support](https://wordpress.org/support/topic/nginx-support-27/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/nginx-support-27/#post-16404730)
 * Ok, thanks. I can probably generate something, based on a baseline wordpress 
   install. Or perhaps from the plugin code, but if it existed already it would 
   be helpful.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-In-One Security (AIOS) – Security and Firewall] NGINX Support](https://wordpress.org/support/topic/nginx-support-27/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/nginx-support-27/#post-16393395)
 * Follow up do you have all the rules that AOIS writes to htaccess as a reference
   or in documentation?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OneSignal - Web Push Notifications] Caching CSS Files](https://wordpress.org/support/topic/caching-css-files/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/caching-css-files/#post-16346413)
 * [@onesignal](https://wordpress.org/support/users/onesignal/) To be clear, it’s
   the CSS files that the Service Worker is caching that matter to us and causing
   issues. 
   Is there no way to clear those or prevent them from being cached? Why
   does a push notification script need to cache CSS?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[My Sticky Bar - Floating Notification Bar & Sticky Header (formerly myStickymenu)] Prevent perma-hide on interaction](https://wordpress.org/support/topic/prevent-perma-hide-on-interaction/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/prevent-perma-hide-on-interaction/#post-16107489)
 * [@karinapremio](https://wordpress.org/support/users/karinapremio/) Found it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[My Sticky Bar - Floating Notification Bar & Sticky Header (formerly myStickymenu)] Prevent perma-hide on interaction](https://wordpress.org/support/topic/prevent-perma-hide-on-interaction/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/prevent-perma-hide-on-interaction/#post-16099086)
 * [@karinapremio](https://wordpress.org/support/users/karinapremio/)… yes, is there
   a way to stop the bar from hiding?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[My Sticky Bar - Floating Notification Bar & Sticky Header (formerly myStickymenu)] Prevent perma-hide on interaction](https://wordpress.org/support/topic/prevent-perma-hide-on-interaction/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/prevent-perma-hide-on-interaction/#post-16028177)
 * Sorry for the delay.
 * We just want to “show the bar when the user refreshes the page or visits another
   page.” Or really just the option to not hide the bar at all.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF] Webp Not Scaling to Maximum Width Increasing Page Weight](https://wordpress.org/support/topic/webp-not-scaling-to-maximum-width-increasing-page-weight/)
 *  Thread Starter [tenacityio](https://wordpress.org/support/users/tenacityio/)
 * (@tenacityio)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/webp-not-scaling-to-maximum-width-increasing-page-weight/#post-15980185)
 * How is this resolved?

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/users/tenacityio/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/tenacityio/replies/page/2/?output_format=md)