Java Restriction Problem
When the host informs me that I have a problem using a lot of resources, I've done something that maybe because of that
#- In the first step, I installed the following plugin:
https://wordpress.org/plugins/heartbeat-control/
The host contacted me after 24 hours and said this problem has not yet been resolved
I deleted this plugin.
---- ---- ----
#- In the second stage
I got help from my friends in Iran
I used the following code
In this path, the functions.php file
public_html/wp-content/themes/kuteshop
/** Disable All WooCommerce Styles and Scripts Except Shop Pages*/
add_action( 'wp_enqueue_scripts', 'dequeue_woocommerce_styles_scripts', 99 );
function dequeue_woocommerce_styles_scripts() {
if ( function_exists( 'is_woocommerce' ) ) {
if ( ! is_woocommerce() && ! is_cart() && ! is_checkout() ) {
# Styles
wp_dequeue_style( 'woocommerce-general' );
wp_dequeue_style( 'woocommerce-layout' );
wp_dequeue_style( 'woocommerce-smallscreen' );
wp_dequeue_style( 'woocommerce_frontend_styles' );
wp_dequeue_style( 'woocommerce_fancybox_styles' );
wp_dequeue_style( 'woocommerce_chosen_styles' );
wp_dequeue_style( 'woocommerce_prettyPhoto_css' );
# Scripts
wp_dequeue_script( 'wc_price_slider' );
wp_dequeue_script( 'wc-single-product' );
wp_dequeue_script( 'wc-add-to-cart' );
wp_dequeue_script( 'wc-cart-fragments' );
wp_dequeue_script( 'wc-checkout' );
wp_dequeue_script( 'wc-add-to-cart-variation' );
wp_dequeue_script( 'wc-single-product' );
wp_dequeue_script( 'wc-cart' );
wp_dequeue_script( 'wc-chosen' );
wp_dequeue_script( 'woocommerce' );
wp_dequeue_script( 'prettyPhoto' );
wp_dequeue_script( 'prettyPhoto-init' );
wp_dequeue_script( 'jquery-blockui' );
wp_dequeue_script( 'jquery-placeholder' );
wp_dequeue_script( 'fancybox' );
wp_dequeue_script( 'jqueryui' );
}
}
}
But this code was a problem and my shopping cart did not work
I also deleted this code
---- ---- ----
#- In the third stage
The host in the wp-config.php file will apply the code
Code: define('DISABLE_WP_CRON', true);
Then the code in the file wp-cron.php
Code: /usr/bin/wget -O /dev/null http://vssouq.com/wp-cron.php >/dev/null 2>&1
At the end of the host told me the problem was not resolved
You must fix one of the malformed plugins or the template
---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
Whether this makes the problem occur?
I probably happened after application of the Code.
what do you think ?