-
Notifications
You must be signed in to change notification settings - Fork 168
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
Conflict when dispatching batch from Ajax call #129
Comments
Actually, diving deeper into the code, I think the issue is simply trying to dispatch a batch from any Ajax call. This will make the |
Having this issue too. It's breaking the WooCommerce checkout since I'm using a queue to dispatch emails to a custom mail server. Fix would be much appreciated. |
@craigrileyuk You can temporarily use my fixed branch by including the repo in your composer.json: "repositories": [
{
"type": "vcs",
"url": "https://github.com/koen12344/multisite-background-processing"
}
], "deliciousbrains/wp-background-processing": "dev-prod", It fixes this issue, as well as the other issue I opened with processing batches on multisite. I use it in production on a few plugins |
The library checks the
nonce
arg in theget_chain_id()
function when callingdispatch()
. That arg is potentially overwritten by plugins, causing the nonce validation to fail, and the request to 403. The process will then not be dispatched and no healthcheck will be scheduled.The text was updated successfully, but these errors were encountered: