New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent possible fatal error when user holds edit lock for a deleted order #39497
Conversation
Test Results SummaryCommit SHA: 64e716e
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
Hi @coreymckrill, Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
1 similar comment
Hi @coreymckrill, Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I setup logging to use WC_Log_Handler_DB
and confirmed that with this branch, the fatal error no longer occurs when the heartbeat can't find the order it's tracking.
…order (#39497) * Prevent possible fatal error when locked order is deleted * Add changelog
Submission Review Guidelines:
Changes proposed in this Pull Request:
With HPOS enabled, if an order gets deleted while being edited in a different browser window/session, a fatal error is logged when the AJAX heartbeat attempts to refresh the edit lock. This doesn't have any serious implication, other than an error being logged, but better to not produce it at all ("silence is golden").
Closes #39354.
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
You can use the dev tools to monitor for such XHR request.
trunk
, a PHP critical error is logged:Changelog entry
Significance
Type
Message
Comment