Opened 3 months ago
Closed 4 weeks ago
#61839 closed defect (bug) (invalid)
user-edit.php invalid stay on page prompt
Reported by: | edtorrey | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.6 |
Component: | Users | Keywords: | |
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 (6)
#1
@
3 months ago
- Keywords reporter-feedback added
Can you specify how to reproduce this?
I wasn't able 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 weeks 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 weeks 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
follow-up:
↓ 5
@
4 weeks 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.
#5
in reply to:
↑ 4
@
4 weeks ago
- Keywords reporter-feedback removed
- Milestone 6.6.3 deleted
- Resolution set to invalid
- Status changed from new to closed
Replying to edtorrey:
I would say now to close the ticket since the problem immediately discontinued after deactivating plugins.
Thank you @edtorrey for retesting and investigating.
Where can you get help?
As this seems to be a plugin issue, you can find people who are able to assist with your site in the WordPress support forums.
I've closed this ticket as invalid
, which is Trac's unfriendly term to indicate I've referred you to the support team.
wpcore 20240807 user-edit-php leave-or-stay-on-page-error