• Resolved sstucl

    (@sstucl)


    `[19-Sep-2022 07:47:25 UTC] get_cart was called incorrectly. “Get cart” se ne sme klicati pred dejanjem wp_loaded. Backtrace: 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, WCCP->wp_init, WCCP->AJAX_review_order, WCCP_WC_Checkout->process_checkout_custom, WC_Checkout->validate_checkout, WC_Checkout->check_cart_items, do_action(‘woocommerce_check_cart_items’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Cart->check_cart_items, WC_Cart->check_cart_item_validity, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.
    [19-Sep-2022 07:47:25 UTC] get_cart was called incorrectly. “Get cart” se ne sme klicati pred dejanjem wp_loaded. Backtrace: 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, WCCP->wp_init, WCCP->AJAX_review_order, WCCP_WC_Checkout->process_checkout_custom, WC_Checkout->validate_checkout, WC_Checkout->check_cart_items, do_action(‘woocommerce_check_cart_items’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Cart->check_cart_items, WC_Cart->check_cart_item_stock, WC_Cart->get_cart_item_quantities, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.
    [19-Sep-2022 07:47:25 UTC] get_cart was called incorrectly. “Get cart” se ne sme klicati pred dejanjem wp_loaded. Backtrace: 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, WCCP->wp_init, WCCP->AJAX_review_order, WCCP_WC_Checkout->process_checkout_custom, WC_Checkout->validate_checkout, WC_Checkout->check_cart_items, do_action(‘woocommerce_check_cart_items’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Cart->check_cart_items, WC_Cart->check_cart_item_stock, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.
    [19-Sep-2022 07:47:25 UTC] get_cart was called incorrectly. “Get cart” se ne sme klicati pred dejanjem wp_loaded. Backtrace: 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, WCCP->wp_init, WCCP->AJAX_review_order, WCCP_WC_Checkout->process_checkout_custom, WC_Checkout->validate_checkout, WC_Cart->needs_payment, apply_filters(‘woocommerce_cart_needs_payment’), WP_Hook->apply_filters, WC_Braintree_Subscriptions_Cart->cart_needs_payment, wcs_braintree_cart_contains_subscription, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.
    [19-Sep-2022 07:47:25 UTC] get_cart was called incorrectly. “Get cart” se ne sme klicati pred dejanjem wp_loaded. Backtrace: 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, WCCP->wp_init, WCCP->AJAX_review_order, WCCP_WC_Checkout->process_checkout_custom, WC_Checkout->process_customer, WC_Checkout->is_registration_required, apply_filters(‘woocommerce_checkout_registration_required’), WP_Hook->apply_filters, WC_Braintree_Subscriptions_Checkout::require_account_creation, wcs_braintree_cart_contains_subscription, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.
    [19-Sep-2022 07:47:25 UTC] get_cart was called incorrectly. “Get cart” se ne sme klicati pred dejanjem wp_loaded. Backtrace: 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, WCCP->wp_init, WCCP->AJAX_review_order, WCCP_WC_Checkout->process_checkout_custom, WC_Checkout->create_order, WC_Cart->get_cart_hash, WC_Cart_Session->get_cart_for_session, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.
    [19-Sep-2022 07:47:25 UTC] get_cart was called incorrectly. “Get cart” se ne sme klicati pred dejanjem wp_loaded. Backtrace: 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, WCCP->wp_init, WCCP->AJAX_review_order, WCCP_WC_Checkout->process_checkout_custom, WC_Checkout->create_order, WC_Checkout->set_data_from_cart, WC_Checkout->create_order_line_items, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.
    [19-Sep-2022 07:47:25 UTC] get_cart was called incorrectly. “Get cart” se ne sme klicati pred dejanjem wp_loaded. Backtrace: 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, WCCP->wp_init, WCCP->AJAX_review_order, WCCP_WC_Checkout->process_checkout_custom, WC_Checkout->create_order, do_action(‘woocommerce_checkout_create_order’), WP_Hook->do_action, WP_Hook->apply_filters, WCCP->{closure}, WCCP->AJAX_review_order_Callback, WCCP_Public::get_confirmation_page_html, WCCP_Public::render_column, WCCP_Public::_render_section_order_items, woocommerce_order_review, wc_get_template, include(‘/plugins/woocommerce/templates/checkout/review-order.php’), WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.`

    I’m getting this error message in Logs. Everything is updated on the last version.

    Any known issues?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @sstucl

    There aren’t any references to the Braintree plugin in the logs you provided.

    It appears the logs are originating from your WCCP plugin.

    Thanks,

    Thread Starter sstucl

    (@sstucl)

    Here you go:

    [19-Sep-2022 08:31:00 UTC] get_cart was called incorrectly. "Get cart" se ne sme klicati pred dejanjem wp_loaded. Backtrace: 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, WCCP->wp_init, WCCP->AJAX_review_order, WCCP_WC_Checkout->process_checkout_custom, WC_Checkout->validate_checkout, WC_Cart->needs_payment, apply_filters('woocommerce_cart_needs_payment'), WP_Hook->apply_filters, WC_Braintree_Subscriptions_Cart->cart_needs_payment, wcs_braintree_cart_contains_subscription, WC_Cart->get_cart, wc_doing_it_wrong. This message was added in version 2.3.

    Plugin Author Payment Plugins

    (@mrclayton)

    @sstucl that warning message seems to be appearing because your WCCP plugin is calling WC_Cart->needs_payment() very early in the WordPress loading process.

    Our plugin hooks in to the woocommerce_cart_needs_payment action which then calls WC_Cart->get_cart().

    What does this WCCP plugin do?

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get_cart was called incorrectly’ is closed to new replies.