Network Orders – Dashboard ISSUE – HIGH CPU USAGE
-
Hi,
I would like to report a serious resources consumption widget that is crashing our WordPress constantly and woocommerce support does not seem to do anything to solve this issue. I have reported the problem to support team and they are trying to convince me that the issue is related to my site usage which is NOT!!!The issue description;
If you use WordPress Multinetwork with WooCommerce since the May 2018 updates and experiencing crashes with “503 SERVICE UNAVAILABLE
The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay.” the problem is NOT your hosting resources!!! It is the new widget called “Network Order Widget”. This unnecessary extra by woo-dev team is completely crashing WP by using a huge amount of server resources.Example:
Before update (without) Network Order Widget we was able to open 21 dashboards for our multinetwork purposes and the WP was 100% stable.
After the update (with) Network Order Widget WP is CRASHING every single time when I try to open more than 4-5 dashboards.
EROR LOG: /wp-admin/admin-ajax.php stopped because of load 47.17
Solution 1;
!!!PLEASE DO NOT UPGRADE YOUR HOSTING PLAN AND WASTE YOUR MONEY!!!Solution 2;
OPEN (/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-dashboard.php)
FIND & REMOVE: // Network Order Widget. if ( is_multisite() ) { $this->register_network_order_widget(); }
/***Register the network order dashboard widget.*/ public function register_network_order_widget() { wp_add_dashboard_widget( 'woocommerce_network_orders', __( 'WooCommerce network orders', 'woocommerce' ), array( $this, 'network_orders' ) ); }
FIND & REMOVE: /*** Network orders widget. */ public function network_orders() { $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; wp_enqueue_style( 'wc-network-orders', WC()->plugin_url() . '/assets/css/network-order-widget.css', array(), WC_VERSION ); wp_enqueue_script( 'wc-network-orders', WC()->plugin_url() . '/assets/js/admin/network-orders' . $suffix . '.js', array( 'jquery', 'underscore' ), WC_VERSION, true ); $user = wp_get_current_user(); $blogs = get_blogs_of_user( $user->ID ); $blog_ids = wp_list_pluck( $blogs, 'userblog_id' ); wp_localize_script( 'wc-network-orders', 'woocommerce_network_orders', array( 'nonce' => wp_create_nonce( 'wp_rest' ), 'sites' => array_values( $blog_ids ), 'order_endpoint' => get_rest_url( null, 'wc/v2/orders/network' ), ) ); ?> <div class="post-type-shop_order"> <div id="woocommerce-network-order-table-loading" class="woocommerce-network-order-table-loading is-active"> <p> <span class="spinner is-active"></span> <?php esc_html_e( 'Loading network orders', 'woocommerce' ); ?> </p> </div> <table id="woocommerce-network-order-table" class="woocommerce-network-order-table"> <thead> <tr> <td><?php esc_html_e( 'Order', 'woocommerce' ); ?></td> <td><?php esc_html_e( 'Status', 'woocommerce' ); ?></td> <td><?php esc_html_e( 'Total', 'woocommerce' ); ?></td> </tr> </thead> <tbody id="network-orders-tbody"> </tbody> </table> <div id="woocommerce-network-orders-no-orders" class="woocommerce-network-orders-no-orders"> <p> <?php esc_html_e( 'No orders found', 'woocommerce' ); ?> </p> </div> <script type="text/template" id="network-orders-row-template"> <tr> <td> <a>" class="order-view"><strong>#<%- number %> <%- customer %></strong></a> <br> <em> <%- blog.blogname %> </em> </td> <td> <mark class="order-status status-<%- status %>"><span><%- status_name %></span></mark> </td> <td> <%= formatted_total %> </td> </tr> </script> </div> <?php }
- The topic ‘Network Orders – Dashboard ISSUE – HIGH CPU USAGE’ is closed to new replies.