• Resolved zymmm

    (@zymmm)


    The below error occurs in the regular version as well as in the pro version.

    The plugin is not compatible with Polylang.

    filter-everything-pro/src/WpManager.php line 24: "$rewrite = $wp_rewrite->wp_rewrite_rules();"

    If you look inside the above method, you will notice that when the rules are empty, they are refreshed.

    Unfortunately, not all rewrite rules from other plugins, e.g. polylang, are ready here.

    This will display index.php instead of a specific template file, e.g. page.php.

    The error appears seemingly without any reason and suddenly. However, I spent some time investigating. The conclusion is that some plugins, e.g. All-In-One Security (AIOS), remove rewrite rules via transients. Filter Everything PRO then refreshes them too early (before loading data from other plugins) and therefore the error appears without user intervention. This is a huge trap for many users.

    The solution is to use “$rewrite = get_option( ‘rewrite_rules’ );” in the Filter Everything PRO plugin. instead of “$rewrite = $wp_rewrite->wp_rewrite_rules();” or adding “define(‘FLRT_PERMALINKS_ENABLED’, true);” to functions.php, but users who bought Filter Everything PRO don’t know about it…

The topic ‘The plugin is not compatible with Polylang.’ is closed to new replies.