Title: Admin panel freezing
Last modified: August 21, 2016

---

# Admin panel freezing

 *  [davidbean40](https://wordpress.org/support/users/davidbean40/)
 * (@davidbean40)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/admin-panel-freezing/)
 * I had this plugin working flawlessly until I migrated my site to a new host and
   now it freezes my admin whenever I try to activate it. The admin will eventually
   come up but takes at least a couple of minutes. Anyone have any ideas as to what
   this could be? Same plugins where running fine together on the old server.
 * [http://wordpress.org/plugins/simple-custom-post-order/](http://wordpress.org/plugins/simple-custom-post-order/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * (@pupunzi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/admin-panel-freezing/#post-4355005)
 * Just discovered that commenting:
    add_action( ‘admin_init’, array( &$this, ‘refresh’));
   in **simple-custom-post-order.php** will solve the slow down issue without breaking
   functionality.
 *  [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * (@pupunzi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/admin-panel-freezing/#post-4355016)
 * Hi Sameer,
 * We had some problems using your useful plugin as it was freezing the admin area
   with many posts (hundreds). We definitely solved the slow down issue by moving
   the Array ‘refresh’ from the ‘admin_init’ to the ‘wp_ajax_update-menu-order’ 
   action as follow:
 *     ```
       function __construct() {
       		if ( !get_option( 'scporder_options' ) )
       			$this->scporder_install();
   
       		add_action( 'admin_menu', array( &$this, 'admin_menu' ) );
       		//add_action( 'admin_init', array( &$this, 'refresh' ) );
       		add_action( 'admin_init', array( &$this, 'update_options' ) );
       		add_action( 'init', array( &$this, 'enable_objects' ) );
   
       		add_action( 'wp_ajax_update-menu-order', array( &$this, 'update_menu_order' ) );
               add_action( 'wp_ajax_update-menu-order', array( &$this, 'refresh' ) );
   
       		add_filter( 'pre_get_posts', array( &$this, 'scporder_filter_active' ) );
       		add_filter( 'pre_get_posts', array( &$this, 'scporder_pre_get_posts' ) );
   
       		add_filter( 'get_previous_post_where', array( &$this, 'scporder_previous_post_where' ) );
       		add_filter( 'get_previous_post_sort', array( &$this, 'scporder_previous_post_sort' ) );
       		add_filter( 'get_next_post_where', array( &$this, 'scporder_next_post_where' ) );
       		add_filter( 'get_next_post_sort', array( &$this, 'scporder_next_post_sort' ) );
       	}
       ```
   
 * Can you let me know if there are some contraindications doing that?
    If not can
   it be a fix for the next update?
 * Thank you,
    Matteo

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Admin panel freezing’ is closed to new replies.

 * ![](https://ps.w.org/simple-custom-post-order/assets/icon-256x256.jpg?rev=2969435)
 * [Simple Custom Post Order](https://wordpress.org/plugins/simple-custom-post-order/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-custom-post-order/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-custom-post-order/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-custom-post-order/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-custom-post-order/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-custom-post-order/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [pupunzi](https://wordpress.org/support/users/pupunzi/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/admin-panel-freezing/#post-4355016)
 * Status: not resolved