Support » Fixing WordPress » Rewrite rules needs to be flushed all the time

  • So, I have problem with specific page + blog. If this bug occurs, I need to flush rewrite rules and then it works fine.

    But it’s causing big problems – it happens quite often. But I am unable to know why.

    It’s only for specific page + blog. If it happens, WordPress returns basically empty page.

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @pavelmares,

    This issue might be occurring due to a third party WP plugin you are using which deals with rewrite rules but not flushing them on proper hook resulting your issue.

    You can tackle this issue by adding a following code snippet:

    
    add_action('init', function(){ flush_rewrite_rules() });
    

    You can add this code snippet by using following plugin:
    https://wordpress.org/plugins/code-snippets/

    Let us know if this solution works!

    Hi @pavelmares,

    This issue might be occurring due to a third party WP plugin you are using which deals with rewrite rules but not flushing them on proper hook resulting your issue.

    You can tackle this issue by adding a following code snippet:

    
    add_action('init', function(){ flush_rewrite_rules() });
    

    You can add this code snippet by using following plugin:
    https://wordpress.org/plugins/code-snippets/

    Let us know if this solution works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Rewrite rules needs to be flushed all the time’ is closed to new replies.