-
Notifications
You must be signed in to change notification settings - Fork 74
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
Unable to download backups from admin or using download link generated in admin #1161
Comments
I might have figured out at least one reason why this is failing for some users (though not on the newest Chrome). I tracked the URLs, and the URL to the actual path is actually invalid. Chrome uses it anyway, but it has a double IE: Is anyone able to help me find where this is set up in the code, because it includes a lot of extraneous bits to compile the URL path: Looks like it is compiled here but I'm not seeing where the issue is yet: |
Possibly related to this function:
My understanding is that it first tests whether the path is accessible (per the function defined in the core.php file) and then uses the wp_nonce to protect the download link to the given backup? And that link is compiled using all the different parts of the array? I’m trying to figure out why a growing number of people are having issues downloading those files. It’s not all the same browser, php version, anything I can pin down. So I’m trying to see if there’s something in the function that might be redirecting incorrectly? Or the link being compiled incorrectly in some way. |
I was putting notes together and I’m wondering if this is one symptom of a larger issue that is an issue with the root path. There are similarities between this, the recursive symlink issue, and a wp-cli specific one for |
Update: spent some time trying to write failing tests for this but couldn't reproduce the problem yet. I'll take another look at the intercom data. |
Possible causes:
|
can't seem to find where the email download link is handled in the plugin, @willmot can you point me in the right direction? Unless the download link handler was changed and the email link not updated to reflect it. |
@willmot I found that bit sorry - what I meant is the link that's appended to the email notification generated here containing the I can only find a handler for links within the admin UI containing the nonce which the email link doesn't have: |
Oh good catch, that could be an oversight for sure. Although I guess that’s only going to affect links from emails and this issue is about admin links not working? |
Doh. There is an intercom issue related to the email link though, maybe there's a separate issue for that already. @katmoody don't suppose you can dig out and link to the intercom convo for this one? |
I will dig that out because they continue to get in touch with me about our progress on it. So it seems that the email issue stems more from the fact that the link added isn't including the nonce? I'll look into that, and I'll link to it once I find it. (and make sure there's a corresponding issue too) |
Here's the most consistent person to get back in touch with me - https://app.intercom.io/a/apps/7f1l4qyq/respond/inbox/247906/conversations/5680812053 I'm also including a list of some of the main settings here for your convenience: The long plugin list includes some security plugins and I already tested against those - no impact, just in case you needed to know 😀 I also changed the site name, for obvious reasons. ;-)
|
Also, @roborourke - check out this old closed issue? #93 |
@katmoody cheers 👍 |
Description of issue
I've had a few users report this and thought it was some kind of weird glitch. I had a new report this morning from a user who tried using different browsers and who was still unable to download her backups.
She tried copying and pasting the download link in a new tab as well, and that didn't work either.
So I tried this on my own test site - the download worked just fine for me on the newest version of Chrome on Mac … so I used the developer tools to see if I noticed anything I could point to as a potential 'thing'.
I saw this come up, not as an error, but it was in the console: "
Resource interpreted as Document but transferred with MIME type application/zip
"I did some searching and found a potentially applicable Stack Overflow post talking about the same issue:
http://stackoverflow.com/questions/6587393/resource-interpreted-as-document-but-transferred-with-mime-type-application-zip
I'm not sure if there are steps we can take on our end, but if it is impacting users regularly, even a small number, it might be worth investigating a bit further?
The text was updated successfully, but these errors were encountered: