• Resolved opfoxtuck

    (@opfoxtuck)


    I’ve just updated to WP Rocket v3.14.3 (19th July 2023) and it flags this message in WordPress Dashboard…

    WP Rocket: The following plugins are not compatible with this plugin and may cause unexpected results:

    • WP-Optimize – Clean, Compress, Cache

    The update notes include…
    3rd-party compatibility:?Make WP-Optimize not compatible plugin (#6005)

    Thought you would want to know.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support vupdraft

    (@vupdraft)

    Hi,

    Thank you for this but this is correct (it’s not advised that you use any two plugins to do the same functions such as caching or lazy load)

    It’s not uncommon for caching plugins to have notices like this and we would not recommend that you use both plugins either

    Thread Starter opfoxtuck

    (@opfoxtuck)

    I only activate your brilliant database optimisation functions. I leave all other functions to WP-Rocket. It’s been a blast. Thanks

    Same incompatible error message now appearing for me too. Only used WP-Optimise for compressing images, and cleaning database. Never overlapped functions with wp-rocket. Don’t want to have to deactivate

    Plugin Support vupdraft

    (@vupdraft)

    @oriver @opfoxtuck – could one of you take a screenshot.

    Does it force you to deactivate or just suggest it?

    Here ya go. Thanks!

    Plugin Support vupdraft

    (@vupdraft)

    Thank you. At the moment it looks like it’s just a message prompting the user to deactivate. You should be fine continuing to use WPO for the DB optimising and image compression

    If you look at the code in the function, all it does is put WPO in a list and put generate that notice suggesting you to deactivate

    In?inc/admin/ui/notices.php

    Function rocket_plugins_to_deactivate()

    • Add wp-optimize to the plugins array, using this key value pair:?'wp-optimize' => 'wp-optimize/wp-optimize.php'

    It does not have any capability other than this.

    Thanks! I also use WPO for my db optimization — since I’m under the UpdraftPlus and UpdraftCentral umbrella. The WP Rocket warning is a little scary because it isn’t specific as to what isn’t compatible. Hopefully, just WPO’s caching…

    Plugin Support vupdraft

    (@vupdraft)

    I think the message likely related to both of the plugins offering caching.

    heron69

    (@heron69)

    Add the code below to your function.php of your child theme. To silence the message without modifying the actual plugin.

    /**

    • Remove WP Optimize from WP Rocket’s list of plugins to deactivate.
      *
    • @param array $plugins List of plugins that WP Rocket recommends to deactivate.
    • @return array Modified list of plugins.
      */
      function remove_wp_optimize_from_rocket_warning( $plugins ) {
      if ( isset( $plugins[‘wp-optimize’] ) ) {
      unset( $plugins[‘wp-optimize’] );
      }
      return $plugins;
      }
      add_filter( ‘rocket_plugins_to_deactivate’, ‘remove_wp_optimize_from_rocket_warning’ );
    jarpiino

    (@jarpiino)

    The issue is still apparent even on the latest WP-rocket release ??

    WP-rocket for cache.

    WP-optimize for database optimizations.

    heron69

    (@heron69)

    /**
     * Remove WP Optimize from WP Rocket's list of plugins to deactivate.
     *
     * @param array $plugins List of plugins that WP Rocket recommends to deactivate.
     * @return array Modified list of plugins.
     */
    function remove_wp_optimize_from_rocket_warning( $plugins ) {
        if ( isset( $plugins['wp-optimize'] ) ) {
            unset( $plugins['wp-optimize'] );
        }
        return $plugins;
    }
    add_filter( 'rocket_plugins_to_deactivate', 'remove_wp_optimize_from_rocket_warning' );

    Here is the updated code to supress the warning. Add it to the bottom of your function.php file. Works best if you’re running a child theme with an extra function.php file. This prevents it from being overwritten on theme updates.

    • This reply was modified 1 year ago by heron69.
    • This reply was modified 1 year ago by heron69.
    • This reply was modified 1 year ago by heron69.
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘WP-Optimize No Longer Compatible with WP Rocket’ is closed to new replies.