• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

WP-Toolkit update broke permalinks

We face the same issue here. I was wondering if the wp function flush_rewrite_rules() could be a solution for all of us by placing it in an according wordpress hook. But I can‘t figure out which hook should be used :S Has anybody an idea? Or is the shell script with a cron runner the only solution at the moment?

Btw. I refer to the thread start initial issue that permalinks of crp are broken after wptoolkit do his magic automated stuff.
 
We face the same issue here. I was wondering if the wp function flush_rewrite_rules() could be a solution for all of us by placing it in an according wordpress hook. But I can‘t figure out which hook should be used :S Has anybody an idea? Or is the shell script with a cron runner the only solution at the moment?

Btw. I refer to the thread start initial issue that permalinks of crp are broken after wptoolkit do his magic automated stuff.

That's what I tried to do and was pretty sure it would solve this issue. But, it didn't.
Maybe the "upgrader_process_complete" isn't the right hook in this case. This is the code I used:

Code:
function do_rewrites() {
  flush_rewrite_rules();
}

add_action( 'after_switch_theme', 'do_rewrites' );
add_action( 'upgrader_process_complete', 'do_rewrites' );
 
  • Like
Reactions: sp7
That's what I tried to do and was pretty sure it would solve this issue. But, it didn't.
Maybe the "upgrader_process_complete" isn't the right hook in this case. This is the code I used:

Code:
function do_rewrites() {
  flush_rewrite_rules();
}

add_action( 'after_switch_theme', 'do_rewrites' );
add_action( 'upgrader_process_complete', 'do_rewrites' );

Thanks for your response. Such bad luck we just wanted to try the after_switch_theme. Than we search on for other hooks. Mean a while hopefully someone find a hook or a handy workaround that could solve this issue. A cron with a low interval is too consuming :/

Edit: The latest solution we faced in our agency for that is to disable the whole automatic update functionallity and create a weekly cron script that fires the update of all instances manually and afterwards rebuilds the permalinks over the shell script above.
 
Last edited:
Back
Top