January 31, 2020 at 3:58 am #1431
We’ve been using the Squeeze Form without any issues, but something has recently gone awry. Our site is now running WordPress 5.3.2 and PHP 7, and the Squeeze Form is forcing all files (PDFs, JPGs, etc.) to be downloaded instead of displaying them in the browser. This is causing errors for people using iPhones + Chrome. This was not happening previously. We turned off every single plugin and switched to the default theme and the problem persists. Can anyone help?January 31, 2020 at 5:03 am #1432
Have you enabled any of the following mentioned option that maybe forcing the file to download?
Do you have any modifications done to your .htaccess file of the site where new directives have been added to force download?January 31, 2020 at 12:49 pm #1433
No. We do not have PHP dispatching turned on or anything in the .htacces file forcing it. In fact, if we don’t put the download in a squeeze form, and just use the regular download short code [sdm_download_link id=12345], the download work fine. It opens in the browser and causes no issues on mobile. Its only once we put it in the squeeze form [sdm-squeeze-form id=”12345″ button_text=”Download Now”] that the issue occurs.February 1, 2020 at 11:59 pm #1435
Try the following feature of the squeeze form addon.
Go to “Squeeze Form -> Settings” then check the following checkbox:
Deliver the Download via Email
Does that work better when the link is sent to the email and the user downloads it by clicking on that URL from the email?February 2, 2020 at 12:09 am #1436
Yes, that is what we had to do because the instant mobile download continued to be an issue for people on iPhones using Chrome. So we switched it to the email delivery – which was the desired method – but it was the only way we were able to avoid the error. Does that help your troubleshooting?February 4, 2020 at 12:01 am #1437
I have done tests with iPhone X (with chrome browser) and the file download works fine. After the squeeze form is submitted, it asks if the file should be downloaded or viewed. If I select “view” then it shows the image file in the browser. I am not sure what else could be affecting this on your site.February 4, 2020 at 12:42 am #1438
Would you be willing to share the test you are using? And are you using the most recent version of WordPress and PHP? I can’t turn off our email delivery because of the error that happens with the instant download. I’m just baffled because the error still occurs if every single plugin is turned off and the default WordPress theme is used. Also, let me know if seeing a screen capture of the error would help.
There are two consistent errors. The first one being in the browser. It’s hundreds of lines of code that starts with %PDF-1.4 %aaIO 194 0 obj <> endobj xref 194 338 … and then thousands of others.
The other error message if you try to download it is: Chrome cannot handle this link.
Note that this is for any PDF that we use. (We’ve tested that to make sure the issue wasn’t with the PDF itself.) It also occurs for JPGs (which we also tested, to see if it was a file type issue.)February 5, 2020 at 1:01 am #1439
We have just done another couple of tests with the following configuration:
WordPress Version: latest
Simple Download Monitor Version: latest
PHP Version: 7.3.8
Download File: A PDF file
Device: iPhone X and iPhone XS
Browser: Chrome and safari
The PDF file opened fine in the browser.February 6, 2020 at 2:36 pm #1452
Do you have a public URL we could test? I’m completely stumped, because we have this issue even if we turn off every single plugin and use the WordPress default theme. The only thing left to consider I guess would be our hosting provider? We use WPEngine. Have you ever encountered issues with them and your plugin before?
- You must be logged in to reply to this topic.