( ! ) Notice: La fonction get_cart a été appelée de façon <strong>incorrecte</strong>. Get cart ne peut pas être appelé avant l’action wp_loaded. 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, WooCommerce\PayPalCommerce\PayLaterBlock\PayLaterBlockModule->WooCommerce\PayPalCommerce\PayLaterBlock\{closure}, WooCommerce\PayPalCommerce\PayLaterBlock\PayLaterBlockModule::is_block_enabled, WooCommerce\PayPalCommerce\WcGateway\Helper\SettingsStatus->is_pay_later_messaging_enabled_for_location, WooCommerce\PayPalCommerce\WcGateway\Helper\SettingsStatus->is_enabled_for_location, apply_filters('woocommerce_paypal_payments_selected_button_locations'), WP_Hook->apply_filters, WooCommerce\PayPalCommerce\Applepay\ApplepayModule->WooCommerce\PayPalCommerce\Applepay\{closure}, WooCommerce->payment_gateways, WC_Payment_Gateways::instance, WC_Payment_Gatewa in /home/u985769106/domains/nkscenter.com/public_html/wp-includes/functions.php on line 6121 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0004 | 364640 | {main}( ) | .../index.php:0 |
2 | 0.0005 | 365016 | require( '/home/u985769106/domains/nkscenter.com/public_html/wp-blog-header.php ) | .../index.php:17 |
3 | 0.0005 | 365400 | require_once( '/home/u985769106/domains/nkscenter.com/public_html/wp-load.php ) | .../wp-blog-header.php:13 |
4 | 0.0006 | 365728 | require_once( '/home/u985769106/domains/nkscenter.com/public_html/wp-config.php ) | .../wp-load.php:50 |
5 | 0.0007 | 367496 | require_once( '/home/u985769106/domains/nkscenter.com/public_html/wp-settings.php ) | .../wp-config.php:104 |
6 | 0.5387 | 28781896 | do_action( $hook_name = 'init' ) | .../wp-settings.php:727 |
7 | 0.5387 | 28782272 | WP_Hook->do_action( $args = [0 => ''] ) | .../plugin.php:517 |
8 | 0.5387 | 28782272 | WP_Hook->apply_filters( $value = '', $args = [0 => ''] ) | .../class-wp-hook.php:348 |
9 | 1.0136 | 51899656 | WooCommerce\PayPalCommerce\PayLaterBlock\PayLaterBlockModule->WooCommerce\PayPalCommerce\PayLaterBlock\{closure:/home/u985769106/domains/nkscenter.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-paylater-block/src/PayLaterBlockModule.php:71-94}( '' ) | .../class-wp-hook.php:324 |
10 | 1.0139 | 51901472 | WooCommerce\PayPalCommerce\PayLaterBlock\PayLaterBlockModule::is_block_enabled( $settings_status = class WooCommerce\PayPalCommerce\WcGateway\Helper\SettingsStatus { protected $settings = class WooCommerce\PayPalCommerce\WcGateway\Settings\Settings { private array $settings = [...]; protected array $default_button_locations = [...]; protected array $default_pay_later_button_locations = [...]; protected array $default_pay_later_messaging_locations = [...]; protected string $default_dcc_gateway_title = 'Cartes de débit/crédit'; protected WooCommerce\PayPalCommerce\Compat\Settings\SettingsMapHelper $settings_map_helper = class WooCommerce\PayPalCommerce\Compat\Settings\SettingsMapHelper { ... } } } ) | .../PayLaterBlockModule.php:76 |
11 | 1.0139 | 51901472 | WooCommerce\PayPalCommerce\WcGateway\Helper\SettingsStatus->is_pay_later_messaging_enabled_for_location( $location = 'custom_placement' ) | .../PayLaterBlockModule.php:45 |
12 | 1.0139 | 51901472 | WooCommerce\PayPalCommerce\WcGateway\Helper\SettingsStatus->is_enabled_for_location( $setting_name = 'pay_later_messaging_locations', $location = 'custom_placement' ) | .../SettingsStatus.php:55 |
13 | 1.0139 | 51901472 | apply_filters( $hook_name = 'woocommerce_paypal_payments_selected_button_locations', $value = [0 => 'cart', 1 => 'checkout', 2 => 'product'], ...$args = variadic('pay_later_messaging_locations') ) | .../SettingsStatus.php:117 |
14 | 1.0139 | 51901880 | WP_Hook->apply_filters( $value = [0 => 'cart', 1 => 'checkout', 2 => 'product'], $args = [0 => [0 => 'cart', 1 => 'checkout', 2 => 'product'], 1 => 'pay_later_messaging_locations'] ) | .../plugin.php:205 |
15 | 1.0139 | 51903008 | WooCommerce\PayPalCommerce\Applepay\ApplepayModule->WooCommerce\PayPalCommerce\Applepay\{closure:/home/u985769106/domains/nkscenter.com/public_html/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-applepay/src/ApplepayModule.php:139-145}( $locations = [0 => 'cart', 1 => 'checkout', 2 => 'product'], $setting_name = 'pay_later_messaging_locations' ) | .../class-wp-hook.php:324 |
16 | 1.0139 | 51903008 | WooCommerce->payment_gateways( ) | .../ApplepayModule.php:140 |
17 | 1.0144 | 51944480 | WC_Payment_Gateways::instance( ) | .../class-woocommerce.php:1176 |
18 | 1.0144 | 51944536 | WC_Payment_Gateways->__construct( ) | .../class-wc-payment-gateways.php:46 |
19 | 1.0144 | 51944536 | WC_Payment_Gateways->init( ) | .../class-wc-payment-gateways.php:73 |
20 | 1.0409 | 53822544 | Payplug\PayplugWoocommerce\Controller\ApplePay->__construct( ) | .../class-wc-payment-gateways.php:100 |
21 | 1.0422 | 53850848 | Payplug\PayplugWoocommerce\PayplugWoocommerceHelper::is_subscription( ) | .../ApplePay.php:63 |
22 | 1.0422 | 53850848 | WC_Cart->get_cart( ) | .../PayplugWoocommerceHelper.php:835 |
23 | 1.0442 | 53868304 | WC_Cart_Session->get_cart_from_session( ) | .../class-wc-cart.php:626 |
24 | 1.0442 | 53869000 | do_action( $hook_name = 'woocommerce_cart_loaded_from_session', ...$arg = variadic(class WC_Cart { public $cart_context = 'shortcode'; public $cart_contents = []; public $removed_cart_contents = []; public $applied_coupons = []; protected $shipping_methods = NULL; protected $has_calculated_shipping = FALSE; protected $default_totals = ['subtotal' => 0, 'subtotal_tax' => 0, 'shipping_total' => 0, 'shipping_tax' => 0, 'shipping_taxes' => [...], 'discount_total' => 0, 'discount_tax' => 0, 'cart_contents_total' => 0, 'cart_contents_tax' => 0, 'cart_contents_taxes' => [...], 'fee_total' => 0, 'fee_tax' => 0, 'fee_taxes' => [...], 'total' => 0, 'total_tax' => 0]; protected $totals = ['subtotal' => 0, 'subtotal_tax' => 0, 'shipping_total' => 0, 'shipping_tax' => 0, 'shipping_taxes' => [...], 'discount_total' => 0, 'discount_tax' => 0, 'cart_contents_total' => 0, 'cart_contents_tax' => 0, 'cart_contents_taxes' => [...], 'fee_total' => 0, 'fee_tax' => 0, 'fee_taxes' => [...], 'total' => 0, 'total_tax' => 0]; protected $session = class WC_Cart_Session { protected $cart = ... }; protected $fees_api = class WC_Cart_Fees { private $fees = [...]; private $default_fee_props = [...] }; public $cart_session_data = ['cart_contents_total' => 0, 'total' => 0, 'subtotal' => 0, 'subtotal_ex_tax' => 0, 'tax_total' => 0, 'taxes' => [...], 'shipping_taxes' => [...], 'discount_cart' => 0, 'discount_cart_tax' => 0, 'shipping_total' => 0, 'shipping_tax_total' => 0, 'coupon_discount_amounts' => [...], 'coupon_discount_tax_amounts' => [...], 'fee_total' => 0, 'fees' => [...]]; public $coupon_applied_count = []; public $coupon_discount_totals = []; public $coupon_discount_tax_totals = [] }) ) | .../class-wc-cart-session.php:242 |
25 | 1.0443 | 53869376 | WP_Hook->do_action( $args = [0 => class WC_Cart { public $cart_context = 'shortcode'; public $cart_contents = [...]; public $removed_cart_contents = [...]; public $applied_coupons = [...]; protected $shipping_methods = NULL; protected $has_calculated_shipping = FALSE; protected $default_totals = [...]; protected $totals = [...]; protected $session = class WC_Cart_Session { ... }; protected $fees_api = class WC_Cart_Fees { ... }; public $cart_session_data = [...]; public $coupon_applied_count = [...]; public $coupon_discount_totals = [...]; public $coupon_discount_tax_totals = [...] }] ) | .../plugin.php:517 |
26 | 1.0443 | 53869376 | WP_Hook->apply_filters( $value = '', $args = [0 => class WC_Cart { public $cart_context = 'shortcode'; public $cart_contents = [...]; public $removed_cart_contents = [...]; public $applied_coupons = [...]; protected $shipping_methods = NULL; protected $has_calculated_shipping = FALSE; protected $default_totals = [...]; protected $totals = [...]; protected $session = class WC_Cart_Session { ... }; protected $fees_api = class WC_Cart_Fees { ... }; public $cart_session_data = [...]; public $coupon_applied_count = [...]; public $coupon_discount_totals = [...]; public $coupon_discount_tax_totals = [...] }] ) | .../class-wp-hook.php:348 |
27 | 1.0443 | 53870128 | WC_Cart_Session->set_session( class WC_Cart { public $cart_context = 'shortcode'; public $cart_contents = []; public $removed_cart_contents = []; public $applied_coupons = []; protected $shipping_methods = NULL; protected $has_calculated_shipping = FALSE; protected $default_totals = ['subtotal' => 0, 'subtotal_tax' => 0, 'shipping_total' => 0, 'shipping_tax' => 0, 'shipping_taxes' => [...], 'discount_total' => 0, 'discount_tax' => 0, 'cart_contents_total' => 0, 'cart_contents_tax' => 0, 'cart_contents_taxes' => [...], 'fee_total' => 0, 'fee_tax' => 0, 'fee_taxes' => [...], 'total' => 0, 'total_tax' => 0]; protected $totals = ['subtotal' => 0, 'subtotal_tax' => 0, 'shipping_total' => 0, 'shipping_tax' => 0, 'shipping_taxes' => [...], 'discount_total' => 0, 'discount_tax' => 0, 'cart_contents_total' => 0, 'cart_contents_tax' => 0, 'cart_contents_taxes' => [...], 'fee_total' => 0, 'fee_tax' => 0, 'fee_taxes' => [...], 'total' => 0, 'total_tax' => 0]; protected $session = class WC_Cart_Session { protected $cart = ... }; protected $fees_api = class WC_Cart_Fees { private $fees = [...]; private $default_fee_props = [...] }; public $cart_session_data = ['cart_contents_total' => 0, 'total' => 0, 'subtotal' => 0, 'subtotal_ex_tax' => 0, 'tax_total' => 0, 'taxes' => [...], 'shipping_taxes' => [...], 'discount_cart' => 0, 'discount_cart_tax' => 0, 'shipping_total' => 0, 'shipping_tax_total' => 0, 'coupon_discount_amounts' => [...], 'coupon_discount_tax_amounts' => [...], 'fee_total' => 0, 'fees' => [...]]; public $coupon_applied_count = []; public $coupon_discount_totals = []; public $coupon_discount_tax_totals = [] } ) | .../class-wp-hook.php:324 |
28 | 1.0443 | 53870128 | WC_Cart_Session->get_cart_for_session( ) | .../class-wc-cart-session.php:350 |
29 | 1.0443 | 53870128 | WC_Cart->get_cart( ) | .../class-wc-cart-session.php:368 |
30 | 1.0443 | 53870128 | wc_doing_it_wrong( $function = 'get_cart', $message = 'Get cart ne peut pas être appelé avant l’action wp_loaded.', $version = '2.3' ) | .../class-wc-cart.php:623 |
31 | 1.0443 | 53871664 | _doing_it_wrong( $function_name = 'get_cart', $message = 'Get cart ne peut pas être appelé avant l’action wp_loaded. 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, WooCommerce\\PayPalCommerce\\PayLaterBlock\\PayLaterBlockModule->WooCommerce\\PayPalCommerce\\PayLaterBlock\\{closure}, WooCommerce\\PayPalCommerce\\PayLaterBlock\\PayLaterBlockModule::is_block_enabled, WooCommerce\\PayPalCommerce\\WcGateway\\Helper\\SettingsS'..., $version = '2.3' ) | .../wc-deprecated-functions.php:120 |
32 | 1.0444 | 53874032 | wp_trigger_error( $function_name = '', $message = 'La fonction get_cart a été appelée de façon <strong>incorrecte</strong>. Get cart ne peut pas être appelé avant l’action wp_loaded. 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, WooCommerce\\PayPalCommerce\\PayLaterBlock\\PayLaterBlockModule->WooCommerce\\PayPalCommerce\\PayLaterBlock\\{closure}, WooCommerce\\PayPalCommerce\\PayLaterBlock\\PayLaterBlockMo'..., $error_level = ??? ) | .../functions.php:6061 |
33 | 1.0445 | 53875824 | trigger_error( $message = 'La fonction get_cart a été appelée de façon <strong>incorrecte</strong>. Get cart ne peut pas être appelé avant l’action wp_loaded. 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, WooCommerce\\PayPalCommerce\\PayLaterBlock\\PayLaterBlockModule->WooCommerce\\PayPalCommerce\\PayLaterBlock\\{closure}, WooCommerce\\PayPalCommerce\\PayLaterBlock\\PayLat'..., $error_type = 1024 ) | .../functions.php:6121 |