• Resolved Ben

    (@bencalder)


    Hi,

    I recently tried to delete a product and a Rest API key and I’m getting errors which appear permissions related for admin users.

    When revoking an API Key:
    “You do not have permission to revoke this API key”

    When clicking on Trash for a Product:
    “Error in moving this item to the Trash.”

    What I’ve tried

    1. Created a new admin user, had the same issue when completing the same actions
    2. Cleared browser cache, same issue
    3. Disabled every plugin, same issue

    I’m only having issues in WooCommerce, other administrative functions seem to be fine.

    Any thoughts on what would be failing and why?

    System Status Report

    ### WordPress Environment ###
    
    WordPress address (URL): [Redacted]
    Site address (URL): [Redacted]
    WC Version: 9.3.3
    Legacy REST API Package Version: ? 1.0.4
    Action Scheduler Version: ? 3.8.1
    Log Directory Writable: ?
    WP Version: 6.6.2
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_AU
    External object cache: ?
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 8.3.11
    PHP Post Max Size: 256 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 10000
    cURL Version: 7.87.0
    OpenSSL/1.1.1w
    
    SUHOSIN Installed: –
    MySQL Version: 8.0.39-cll-lve
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    [REDACTED]
    
    ### Post Type Counts ###
    
    amn_om: 1
    attachment: 532
    blocks: 47
    custom_css: 1
    mc4wp-form: 1
    nav_menu_item: 115
    oembed_cache: 2
    omapi: 73
    page: 42
    post: 77
    product: 32
    product_variation: 111
    psppnotif_workflow: 6
    revision: 67
    shop_coupon: 58
    shop_order: 9843
    shop_order_refund: 39
    sp_easy_accordion: 2
    vtprd-rule: 15
    wmpc-trash: 55
    wpcf7_contact_form: 7
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (63) ###
    
    Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.5
    Afterpay Gateway for WooCommerce: by Afterpay – 3.8.6
    AltText.ai: by AltText.ai – 1.8.6
    Classic Editor: by WordPress Contributors – 1.6.5
    Contact Form 7: by Takayuki Miyoshi – 5.9.8
    Customer Reviews for WooCommerce: by CusRev – 5.61.0
    Eway Payment Gateway: by WebAware – 5.3.0
    Google for WooCommerce: by WooCommerce – 2.8.6
    WP Armour - Honeypot Anti Spam: by Dnesscarkey – 2.2.02
    Imagify: by Imagify – Optimize Images & Convert WebP & Avif – 2.2.2
    Jetpack: by Automattic – 13.9
    Mailchimp for WooCommerce: by Mailchimp – 4.4.1
    MC4WP: Mailchimp for WordPress: by ibericode – 4.9.17
    Media Cleaner: by Jordy Meow – 6.7.9
    Max Mega Menu - Pro Addon: by megamenu.com – 2.4
    Max Mega Menu: by megamenu.com – 3.3.2
    OptinMonster: by OptinMonster Popup Builder Team – 2.16.5
    Pixel Manager for WooCommerce (Premium): by SweetCode – 1.44.2
    PublishPress Future: by PublishPress – 3.4.4
    PublishPress Planner: by PublishPress – 4.5.0
    Payment Plugins for PayPal WooCommerce: by Payment Plugins
    [email protected] – 1.0.52
    
    Redis Object Cache: by Till Krüss – 2.5.3
    Solid Affiliate: by Solid Plugins – 2.1.2
    ThoughtMetric for WooCommerce: by ThoughtMetric – 1.26.0
    Uncanny Automator: by Uncanny Automator
    Uncanny Owl – 5.10.4
    
    UpdraftPlus - Backup/Restore: by TeamUpdraft
    DavidAnderson – 2.24.6.26
    
    Premmerce WooCommerce Customers Manager: by Premmerce – 1.1.14
    Discount Rules PRO 2.0: by Flycart – 2.6.5
    Discount Rules Core: by Flycart – 2.6.6
    Product Feed ELITE for WooCommerce: by AdTribes.io – 4.9.4
    WooCommerce.com Update Manager: by Automattic – 1.0.3
    Variation Swatches for WooCommerce: by Emran Ahmed – 2.1.2
    WooCommerce Legacy REST API: by WooCommerce – 1.0.4
    WooCommerce Product Bundles: by Woo – 8.1.1
    WooCommerce - ShipStation Integration: by WooCommerce – 4.4.4
    WooCommerce: by Automattic – 9.3.3
    WooSidebars: by WooCommerce – 1.4.6
    Wordfence Security: by Wordfence – 7.11.7
    Yoast SEO Premium: by Team Yoast – 23.6
    Yoast SEO: by Team Yoast – 23.6
    WP Armour Extended - Honeypot Anti Spam: by Dnesscarkey – 1.34
    WP Bulk Delete Pro: by Xylus Themes – 1.3.4
    WP Bulk Delete: by Xylus Themes – 1.3.2
    WP Consent API: by RogierLankhorst – 1.0.7
    WP Crontrol: by John Blackbourn – 1.17.0
    WP Mail SMTP Pro: by WP Mail SMTP – 4.1.1
    WP Rocket | Deactivate WooCommerce Refresh Cart Fragments Cache: by WP Rocket Support Team –
    WP Rocket: by WP Media – 3.17.0.2
    ProfilePress: by ProfilePress Membership Team – 4.15.16
    WPForms Lite: by WPForms – 1.9.1.3
    WPMU DEV Dashboard: by WPMU DEV – 4.11.26
    WPSSO Core Premium: by JS Morisset – 18.12.1
    WPSSO Schema Breadcrumbs Markup: by JS Morisset – 5.3.0
    WPSSO Commerce Manager Catalog Feed XML: by JS Morisset – 4.7.0
    WPSSO Ratings and Reviews: by JS Morisset – 3.2.0
    WPSSO Schema Shortcode: by JS Morisset – 2.1.0
    WPSSO Tune WP Image Editors: by JS Morisset – 4.1.0
    WPSSO Update Manager: by JS Morisset – 7.2.1
    WPSSO Product Metadata for WooCommerce SEO: by JS Morisset – 4.3.0
    Product Import Export for WooCommerce Add-on: by WebToffee – 1.2.7
    Import Export for WooCommerce Wrapper: by WebToffee – 1.3.0
    Custom Product Tabs for WooCommerce: by Code Parrots – 1.8.5
    YITH WooCommerce Brands Add-On: by YITH – 2.28.0
    
    ### Inactive Plugins (2) ###
    
    Caldera Forms MailChimp: by Caldera Labs – 1.4.2
    CalderaWP License Manager: by CalderaWP – 1.2.11
    
    ### Dropin Plugins () ###
    
    advanced-cache.php: advanced-cache.php
    maintenance.php: maintenance.php
    object-cache.php: Redis Object Cache Drop-In
    
    ### Must Use Plugins (1) ###
    
    Health Check Troubleshooting Mode: by  – 1.7.2
    
    ### Settings ###
    
    Legacy API Enabled: ?
    Force SSL: ?
    Currency: AUD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: bundle (bundle)
    external (external)
    grouped (grouped)
    simple (simple)
    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: WC_Order_Data_Store_CPT
    HPOS data sync enabled: –
    
    ### Logging ###
    
    Enabled: ?
    Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
    Retention period: 30 days
    Level threshold: –
    Log directory size: 2 MB
    
    ### WC Pages ###
    
    Shop base: #63 - /shop/
    Cart: #62 - /cart/ -  Contains the [woocommerce_cart] shortcode
    Checkout: #61 - /checkout/ -  Contains the [woocommerce_checkout] shortcode
    My account: #60 - /my-account/
    Terms and conditions: #796 - /terms-and-conditions/
    
    ### Theme ###
    
    Name: Flatsome Child
    Version: 3.0
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Flatsome
    Parent Theme Version: 3.19.6
    Parent Theme Author URL: https://uxthemes.com
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart-empty.php
    flatsome/woocommerce/cart/cart-shipping.php
    flatsome/woocommerce/cart/cart.php
    flatsome/woocommerce/cart/mini-cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/form-coupon.php
    flatsome/woocommerce/checkout/order-received.php
    flatsome/woocommerce/checkout/terms.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome/woocommerce/content-product-cat.php
    flatsome/woocommerce/content-product.php
    flatsome/woocommerce/content-single-product.php
    flatsome/woocommerce/content-widget-product.php
    flatsome-child/woocommerce/emails/customer-note.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/quantity-input.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/header.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/rating.php
    flatsome/woocommerce/loop/result-count.php
    flatsome/woocommerce/loop/sale-flash.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/myaccount/navigation.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/notice.php
    flatsome/woocommerce/notices/success.php
    flatsome/woocommerce/product-searchform.php
    flatsome/woocommerce/single-product/photoswipe.php
    flatsome/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/rating.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/share.php
    flatsome/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php
    flatsome/woocommerce/single-product.php
    
    
    ### Product Bundles ###
    
    Database Version: 8.1.1
    Loopback Test: ?
    Template Overrides: –
    
    ### 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
    navigation
    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
    
    Disabled Features: experimental-blocks
    minified-js
    product-pre-publish-modal
    settings
    async-product-editor-category-field
    product-editor-template-system
    blueprint
    reactify-classic-payments-settings
    
    Daily Cron: ? Next scheduled: 2024-10-12 05:48:44 +11:00
    Options: ?
    Notes: 215
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Cancelled: 10
    Oldest: 2024-09-11 13:52:46 +1000
    Newest: 2024-10-11 13:35:59 +1100
    
    Complete: 2,150
    Oldest: 2024-09-10 18:14:22 +1000
    Newest: 2024-10-11 17:21:47 +1100
    
    Failed: 4,725
    Oldest: 2019-06-05 03:31:45 +1000
    Newest: 2024-10-11 16:56:54 +1100
    
    In-progress: 1
    Oldest: –
    Newest: –
    
    Pending: 30
    Oldest: 2024-10-11 23:01:05 +1100
    Newest: 2024-10-18 16:57:51 +1100
    
    
    ### Status report information ###
    
    Generated at: 2024-10-11 17:21:58 +11:00

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same problem with many of my sites. Try f12 to check the requests to see if the post requests are x2? This causes the second request to fail because the first request has already completed trashing so the post_id does not exist.
    I also disabled all plugins and used the default theme to check but still the same

    • This reply was modified 1 month, 1 week ago by phonguyen179.
    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello Ben,

    Thank you for contacting WooCommerce support.

    Could you please open the Developer Tools in your browser and share screenshots of the requests being sent when you try to revoke the API key or delete the product? This will help me review the details and any potential errors to get a better idea of what’s happening.

    Looking forward to your response. ??

    Plugin Support Feten L. a11n

    (@fetenlakhal)

    Hello! I’ll close this for the time being since it’s been a while. Reach out whenever it’s convenient for you, and we’ll be glad to continue

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.