Users can’t remove items from cart?
-
When a logged-in user tries to delete an item from the cart page, an error alert appears stating that the user is not logged in and the item has not been deleted.
I’d like to allow any user to delete an item from the cart.
I recive POST request:
{
"code": "rest_not_logged_in",
"message": "You are not currently logged in.",
"data": {
"status": 401
}
}system raport:
### WordPress Environment ### WordPress address (URL): [Redacted] Site address (URL): [Redacted] WC Version: 10.0.2 Legacy REST API Package Version: Wtyczka przestarzałego REST API nie jest zainstalowana w tej witrynie. Action Scheduler Version: ✔ 3.9.2 Log Directory Writable: ✔ WP Version: 6.8.1 WP Multisite: – WP Memory Limit: 1 000 MB WP Debug Mode: ✔ WP Cron: ✔ Language: pl_PL External object cache: – ### Server Environment ### Server Info: LiteSpeed Server Architecture: Linux 5.14.0-570.22.1.el9_6.x86_64 x86_64 PHP Version: 8.3.21 PHP Post Max Size: 500 MB PHP Time Limit: 300 PHP Max Input Vars: 10000 cURL Version: 8.13.0 OpenSSL/3.2.2 SUHOSIN Installed: – MySQL Version: 10.11.13-MariaDB Max Upload Size: 500 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### [REDACTED] ### Post Type Counts ### attachment: 105 custom_css: 2 custom-css-js: 1 customize_changeset: 22 elementor_library: 8 em_booking: 12 em_event: 1 envato_tk_import: 1 fi_template: 5 inspire_invoice: 4 ml-slide: 18 ml-slider: 2 nav_menu_item: 11 page: 25 post: 2 product: 3 revision: 407 shop_coupon: 1 shop_order_placehold: 38 wp_font_face: 36 wp_font_family: 12 wp_navigation: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (25) ### Advanced Dynamic Pricing for WooCommerce: przez AlgolPlus – 4.9.9 Async JavaScript: przez Frank Goossens (futtta) – 2.21.08.31 Autoptimize: przez Frank Goossens (futtta) – 3.1.13 Cache Enabler: przez KeyCDN – 1.8.15 Cloudflare: przez Cloudflare Inc. – 4.12.8 CookieYes | GDPR Cookie Consent: przez CookieYes – 3.3.1 Elementor Pro: przez Elementor.com – 3.25.0 Elementor: przez Elementor.com – 3.30.2 Envato Elements: przez Envato – 2.0.16 Flexible Checkout Fields: przez WP Desk – 4.1.24 Faktury PDF WooCommerce & WordPress: przez WP Desk – 6.0.4 Site Kit od Google: przez Google – 1.157.0 Image Optimizer - Compress, Resize and Optimize Images: przez Elementor.com – 1.6.7 Limit Login Attempts Reloaded: przez Limit Login Attempts Reloaded – 2.26.19 MetaSlider: przez MetaSlider – 3.99.0 NETSENSAI Shield: przez Rafał Gierlicki – 1.4.5 Omnibus for WooCommerce: przez PRyC – 1.1.2 Laboratorium wydajności: przez WordPress Performance Team – 3.9.0 Responsywny lightbox i galeria: przez dFactory – 2.5.2 Modern Image Formats: przez WordPress Performance Team – 2.5.1 WooCommerce.com Update Manager: przez Automattic – 1.0.3 WooCommerce PayPal Payments: przez PayPal – 3.0.7 WooCommerce: przez Automattic – 10.0.2 WP Mail SMTP: przez WP Mail SMTP – 4.5.0 WPForms Lite: przez WPForms – 1.9.6.2 ### Inactive Plugins (4) ### AVIF Express: przez Pijush Gupta – 2025.05.12.01 LiteSpeed Cache: przez LiteSpeed Technologies – 7.2 PowerPack Lite for Elementor: przez PowerPack Addons Team - IdeaBox Creations – 2.9.2 WP-Optimize - Clean, Compress, Cache: przez TeamUpdraft DavidAnderson – 4.2.2 ### Dropin Plugins () ### advanced-cache.php: advanced-cache.php object-cache.php: Performance Lab Server Timing Object Cache Drop-In ### Must Use Plugins (2) ### Elementor Safe Mode: przez Elementor.com – 1.0.0 WordPress automation by Installatron: przez – ### Settings ### Legacy API Enabled: – Force SSL: – Currency: PLN (zł) Currency Position: right_space Thousand Separator: Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) ticket (ticket) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ✔ Enforce Approved Product Download Directories: ✔ HPOS feature enabled: ✔ Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore HPOS data sync enabled: – Enabled Features: analytics marketplace order_attribution site_visibility_badge remote_logging email_improvements blueprint point_of_sale custom_order_tables ### Logging ### Enabled: ✔ Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 dni Level threshold: – Log directory size: 21 KB ### WC Pages ### Strona sklepu: #524 - /sklep/ Koszyk: #525 - /koszyk/ - Zawiera blok woocommerce/cart Zamówienie: #526 - /zamowienie/ - Zawiera blok woocommerce/checkout Moje konto: #527 - /moje-konto/ - Zawiera krótki kod (shortcode) [woocommerce_my_account] Regulamin: #477 - /regulamin/ ### Theme ### Name: PopularFX Version: 1.2.6 Author URL: https://pagelayer.com Child Theme: ❌ – Jeśli modyfikujesz WooCommerce lub motyw nadrzędny którego nie jesteś autorem polecamy używanie motywu potomnego. Zobacz: Jak tworzyć motywy potomne Theme type: Klasyczny motyw WooCommerce Support: ✔ ### Templates ### Overrides: – ### WooCommerce PayPal Payments ### Onboarded: ✔ New UI active: – Shop country code: PL WooCommerce currency supported: ✔ Advanced Card Processing available in country: ✔ Pay Later messaging available in country: – Webhook status: – PayPal Vault enabled: – ACDC Vault enabled: – Logging enabled: – Reference Transactions: ✔ Used PayPal Checkout plugin: – Subscriptions Mode: Disabled PayPal Shipping Callback: – Apple Pay: ✔ Google Pay: ✔ Fastlane: – ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customize-store customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner onboarding onboarding-tasks pattern-toolkit-full-composability product-custom-fields remote-inbox-notifications remote-free-extensions payment-gateway-suggestions printful shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page launch-your-store add-to-cart-with-options-stepper-layout Disabled Features: product-data-views experimental-blocks experimental-iapi-mini-cart experimental-iapi-runtime coming-soon-newsletter-template minified-js product-pre-publish-modal settings async-product-editor-category-field product-editor-template-system use-wp-horizon Daily Cron: ✔ Next scheduled: 2025-07-16 10:59:23 +02:00 Options: ✔ Notes: 90 Onboarding: completed ### Action Scheduler ### Zakończ: 5 261 Oldest: 2025-06-14 14:44:39 +0200 Newest: 2025-07-15 14:41:09 +0200 Niepowodzenie: 58 Oldest: 2024-11-06 12:53:17 +0100 Newest: 2025-06-13 07:14:19 +0200 Oczekujące: 11 Oldest: 2025-07-15 14:42:33 +0200 Newest: 2025-07-22 08:07:35 +0200 ### Status report information ### Generated at: 2025-07-15 14:42:00 +02:00<font _mstmutation=”1″></font>
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Users can’t remove items from cart?’ is closed to new replies.