Skip to content

[Bug]: WP Admin notice for removing legacy coupon menu does not disappear after clicking "Remove legacy coupon menu" button #32187

@kaushikasomaiya

Description

@kaushikasomaiya

Prerequisites

  • I have carried out troubleshooting steps and I believe I have found a bug.
  • I have searched for similar bugs in both open and closed issues and cannot find a duplicate.

Describe the bug

The WP Admin notice for "Coupon management has moved" does not get dismissed by pressing the "Remove legacy coupon menu" button.

image

I was able to reproduce the issue on my test site, and I've put the steps to reproduce it below.

A month back, I saw the same issue on my test site as well as on some of my old client's websites.

I came across a similar issue today in 4727785-zen.

I've recorded the steps that:

  1. Does not reproduce the issue.
  2. Reproduces the issue.

Expected behavior

The WP Admin notice for "Coupon management has moved" should get dismissed by pressing the "Remove legacy coupon menu" button.

Actual behavior

The WP Admin notice for "Coupon management has moved" does not get dismissed by pressing the "Remove legacy coupon menu" button.

Steps to reproduce

Steps that reproduce expected results

  1. Install WooCommerce on a new WordPress site
  2. Skip the installation wizard and go to WooCommerce > Coupons
  3. Press on the "Remove legacy coupon menu" button once the WP Admin notice for Coupon management appears.
  4. The notice gets dismissed. Video below.
normal.mov

Steps that reproduce bug

  1. Install WooCommerce on a new WordPress site
  2. Skip the installation wizard and go to WooCommerce > Orders
  3. Now go to WooCommerce > Coupons
  4. Press on the "Remove legacy coupon menu" button once the WP Admin notice for Coupon management appears.
  5. The notice does not get dismissed. Video below.
bug.mov

WordPress Environment

`

WordPress Environment

WordPress address (URL):
Site address (URL):
WC Version: 6.1.1
REST API Version: ✔ 6.1.1
WC Blocks Version: ✔ 6.5.2
Action Scheduler Version: ✔ 3.4.0
WC Admin Version: ✔ 3.0.3
Log Directory Writable: ✔
WP Version: 5.9
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: –

Server Environment

Server Info: Apache
PHP Version: 7.4.27
PHP Post Max Size: 128 MB
PHP Time Limit: 300
PHP Max Input Vars: 1000
cURL Version: 7.81.0
OpenSSL/1.1.1m

SUHOSIN Installed: –
MySQL Version: 5.7.23-23
Max Upload Size: 128 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

Database

WC Database Version: 6.1.1
WC Database Prefix: wpfh_
Total Database Size: 4.76MB
Database Data Size: 3.37MB
Database Index Size: 1.39MB
wpfh_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpfh_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpfh_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wpfh_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpfh_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wpfh_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpfh_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpfh_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpfh_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpfh_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
wpfh_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpfh_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpfh_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
wpfh_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpfh_options: Data: 2.48MB + Index: 0.03MB + Engine InnoDB
wpfh_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_posts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wpfh_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpfh_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wpfh_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
wpfh_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpfh_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpfh_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wpfh_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wpfh_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpfh_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wpfh_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpfh_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpfh_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpfh_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

Post Type Counts

attachment: 1
page: 7
post: 2

Security

Secure connection (HTTPS): ✔
Hide errors from visitors: ✔

Active Plugins (1)

WooCommerce: by Automattic – 6.1.1

Inactive Plugins (10)

Akismet Anti-Spam: by Automattic – 4.2.1
Avada Builder: by ThemeFusion – 3.4
Avada Core: by ThemeFusion – 5.4
Classic Editor: by WordPress Contributors – 1.6.2
Hello Dolly: by Matt Mullenweg – 1.7.2
Jetpack: by Automattic – 10.4
MOJO Marketplace: by Mike Hansen – 1.5.3
OptinMonster: by OptinMonster Team – 2.6.9
WPForms Lite: by WPForms – 1.7.2
WP Reset: by WebFactory Ltd – 1.95

Must Use Plugins (1)

Endurance Page Cache: by Mike Hansen – 2.2

Settings

API Enabled: –
Force SSL: –
Currency: USD ($)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: 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: –

WC Pages

Shop base: #6 - /?page_id=6
Cart: #7 - /?page_id=7
Checkout: #8 - /?page_id=8
My account: #9 - /?page_id=9
Terms and conditions: ❌ Page not set

Theme

Name: Twenty Twenty-Two
Version: 1.0
Author URL: https://wordpress.org/
Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
WooCommerce Support: ✔

Templates

Overrides: –

Action Scheduler

Complete: 2
Oldest: 2022-01-28 08:32:48 +0000
Newest: 2022-01-28 08:32:48 +0000

Pending: 1
Oldest: 2022-01-28 08:38:09 +0000
Newest: 2022-01-28 08:38:09 +0000

Status report information

Generated at: 2022-01-28 08:37:17 +00:00
`

Isolating the problem

  • I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
  • This bug happens with a default WordPress theme active, or Storefront.
  • I can reproduce this bug consistently using the steps above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThe issue is a confirmed bug.WayfindingIssues related to the inbox feature (not individual notes).plugin: woocommerceIssues related to the WooCommerce Core plugin.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions