Opened 2 months ago
Last modified 4 days ago
#61839 new defect (bug)
user-edit.php invalid stay on page prompt
Reported by: | edtorrey | Owned by: | |
---|---|---|---|
Milestone: | 6.6.3 | Priority: | normal |
Severity: | normal | Version: | 6.6 |
Component: | Users | Keywords: | reporter-feedback |
Focuses: | administration | Cc: |
Description
After performing a user edit and saving the changes, when leaving or closing the page, the browser raises an alert box like the content has not yet been saved.
Attachments (1)
Change History (5)
#1
@
2 months ago
- Keywords reporter-feedback added
Can you specify how to reproduce this?
I wasn't able to at the moment. Please provide us more information on your current setup.
In a default WordPress install I can't reproduce this behavior.
#2
@
4 days ago
- Milestone changed from Awaiting Review to 6.6.3
- Version changed from 6.6.1 to 6.6
Hello @edtorrey,
Welcome back to WordPress Core's Trac. I'm sorry to hear you are having difficulty with your site after updating to 6.6.1.
The confirmation dialogue box was added in #40493 via [58137] and shipped in WP 6.6.0.
By design, it alerts there are unsaved changes to avoid those changes being lost when navigating away from the page. Its presence communicates something didn't get or hasn't yet been saved.
As you shared, you've edited a field, then saved, and then attempted to navigate away or close the page.
- When it happens, are there any errors in the browser's console? To find out, please open your browser's Developer Tools, go to its Console tab, and then redo the steps that led to the dialogue box appearing.
- After saving, does the dialogue always appear? Or is it intermittent?
- Are there specific fields being changed that trigger it?
I wonder too if there are any plugins potentially conflicting. Can you please try it with no plugins activated?
Moving this ticket into 6.6.3 for awareness, though at the moment it's not yet actionable as it's not reproducible. Needs more information.
In reviewing r58137, it's not immediately obvious to me how the changes might be causing an issue. Pinging @joedolson for awareness.
#3
@
4 days ago
Thanks for the notification, @hellofromTonya. The pattern used for this page is the same as used elsewhere in WordPress, so I'll wait to investigate this significantly once there's some reporter feedback. I can imagine some hypothetical situations that could cause this, but they depend on some unusual behaviors by extending code or browser extensions (e.g., if a password extension or browser autocomplete was attempting to autofill an empty field, creating a dirty state in the form.)
#4
@
4 days ago
I wonder too if there are any plugins potentially conflicting. Can you please try it with no plugins activated?
Disable all plugins except WordFence Security and WooCommerce. Error condition noted did not occur. Further, after reactivating all plugins, the problem still is not occurring. It was intermittent before.
When it happens, are there any errors in the browser's console? To find out, please open your browser's Developer Tools, go to its Console tab, and then redo the steps that led to the dialogue box appearing.
I did the plugin deactivation task first. I'll have to wait and see if the problem returns first.
After saving, does the dialogue always appear? Or is it intermittent? Intermittent.
Are there specific fields being changed that trigger it? Text fields and meta boxes. Some are WP Core and others are from WP-Members.
I would say now to close the ticket since the problem immediately discontinued after deactivating plugins.
wpcore 20240807 user-edit-php leave-or-stay-on-page-error