Notice: The get_cart function was called incorrectly

[ad_1]

Hello, when placing an order, the page displays the following error (Notice) on half the screen.

Notice: The get_cart function was called incorrectly. The get cart action must not be called before the wp_loaded action. Backtrace: require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action( 'init'), WP_Hook->do_action, WP_Hook->apply_filters, WCDP_Form->wcdp_checkout_donation_calculation, WCDP_Form->wcdp_add_to_cart, WCDP_Form->maybe_empty_cart, WC_Cart->is_empty, WC_Cart->get_cart, wc_doing_it_wrong Please see Fix WordPress Errors for more detailed information. (This message was added in version 2.3.) in /*****/wp-includes/functions.php on line 6078

I deactivated all other plugins and found out what is causing your plugin. Tell me how I can fix it?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer