Impossible to download a pdf file through mobile device

Hello everyone!

I finally need help.

I have set up the basic download restrictions and uploaded a PDF.

You can download it on the computer without any issues but it is impossible, at least for me, on my android device —regardless the browser.

I even have tried to set it up as open it on a new tab and it happens the same: error downloading.

I have uploaded on a Facebook group and, in there, the downloading works perfect on my mobile (android).

I even have set the mobile browser as desktop and it had no difference.

In regard to the test server, everything is perfect. I have actually increased the memory server to 64MB as it was recommended.

Any clue?

Many thanks in advance!

Just tried on my own Android device, and had no problems.

Have you tried different browsers?

If all browsers give you this problem, then either you’ll need to tell us step by step what you have done, the link, and the settings you’ve chosen, or else you need to check for a theme or plugin conflict, or some conflicting setting on your server (e.g. a .htaccess file setting if you have Apache).

1 Like

At the beginning, I started uploading it just as a media file like all the pictures. Then, since I received this concern I set up the download restrictions and uploaded it to “/plugins/s2member-files” without getting any better.

As you mentioned, I have tried with chrome and the default browser of my mobile with the same result. However, it is possible for me to download the one I uploaded to a Facebook group with both browsers.

However, at least, there is one user that has no issue downloading from his mobile which happens to be the same model as mine: LG G3.

That having said, I have put an open post for you to check out. It should download a PDF touching the picture:
https://conexioninstantanea.com/a

As a plugins, I am using a few but I believe the most relevant is Wp-courseware plugin.

These are the codes I have tried:

The one using default wordpress media content:

    <div class="one-third first">[wpcourse course="1" module="1,2" module_desc="true" /]</div>
    <h1 class="two-thirds" style="text-align:center;">Contrato</h1>
    <div class="two-thirds"><a class="w3-btn w3-white w3-ripple" **https://conexioninstantanea.com/wp-content/uploads/2016/09/" download="Contrato-Fiel-a-mi-Mejor-Versión.pdf"**>[caption id="attachment_359" align="alignnone" width="800"]<img class="wp-image-359 size-full" src="https://conexioninstantanea.com/wp-content/uploads/2016/09/ContratoFielMejorVersion.jpg" alt="contratofielmejorversion" width="800" height="615" />[/caption]</a>
    <p align="center">Haz clic en la imagen para descargar el contrato.
    Si estás en un dispositivo táctil y no te descarga pulsando en la imagen, deberás hacerlo desde un ordenador o accediendo al <a href="https://www.facebook.com/groups/conexioninstantanea/" target="_blank">grupo privado</a>. Allí deberás buscar y encontrar el archivo:
    "Contrato Fiel a mi Mejor Versión".</p>
    </div>
    <div class="clearfix"></div>

The one using /plugins/s2member-files:

<div class="one-third first">[wpcourse course="1" module="1,2" module_desc="true" /]</div>
    <h1 class="two-thirds" style="text-align:center;">Contrato</h1>
    <div class="two-thirds"><a class="w3-btn w3-white w3-ripple" **href="https://conexioninstantanea.com/?s2member_file_download=Contrato Fiel a mi Mejor Versión.pdf&s2member_skip_confirmation"**>[caption id="attachment_359" align="alignnone" width="800"]<img class="wp-image-359 size-full" src="https://conexioninstantanea.com/wp-content/uploads/2016/09/ContratoFielMejorVersion.jpg" alt="contratofielmejorversion" width="800" height="615" />[/caption]</a>
    <p align="center">Haz clic en la imagen para descargar el contrato.
    Si estás en un dispositivo táctil y no te descarga pulsando en la imagen, deberás hacerlo desde un ordenador o accediendo al <a href="https://www.facebook.com/groups/conexioninstantanea/" target="_blank">grupo privado</a>. Allí deberás buscar y encontrar el archivo:
    "Contrato Fiel a mi Mejor Versión".</p>
    </div>
    <div class="clearfix"></div>

Anything else you need, please, do not hesitate.

Many, many thanks for your efforts.

I can’t download that at all, either from my phone or desktop PC.

It looks to me that you have spaces in the file name. You should never do that. Either use dashes or underscores instead.

Sorry about that. It’s already changed —just in case.

However, I don’t think it is the issue because I was trying with a correct file name before —Contrato-Fiel-a-mi-Mejor-Versión.pdf— and the issue was the same.

In fact, I am still able to download it with spaces anyway, thus it should be related to level #0 restrictions which I have set it up now. Before was only set up level #1.

Thanks and looking forward to hearing from you.

Well, I can’t download it still because it is protected at level 0. And that is exactly as it should be. Level 0 still requires membership of your site (as a subscriber).

My apologies, I doubled it with both links (protected and unprotected) but I forgot to publish.

Now it’s at it should be.

First section you have the protected version and second section, with the same layout, the unprotected one.

On the other hand, if you want to have access as level 1 member with my dummy account go to: https://conexioninstantanea.com/wp-login.php

And use: user: p - pass: p

Thanks and sorry for the inconvenience!

I can’t download either file, even the unprotected one (and I tried from my PC). As I suspected from the beginning, this isn’t an s2Member issue.

You have a lot of javascript running on that page. Apart from the other things I suggested, I wouldn’t be surprised if some of that javascript is getting in the way. I really think you need to try turning all your other plugins off and see what happens then.

Mmmm… That’s weird because with the same user account § I can download the protected one without problems from the computer. From the mobile, still not.

On the other hand, I modified the code for the unprotected PDF and now it should work both ways logged in and logged out.

Now the new code is like this:

<a class="w3-btn w3-white w3-ripple" href="https://conexioninstantanea.com/wp-content/uploads/2016/09/Contrato-Fiel-a-mi-Mejor-Versión.pdf" download="">[caption id="attachment_359" align="alignnone" width="800"]<img class="wp-image-359 size-full" src="https://conexioninstantanea.com/wp-content/uploads/2016/09/ContratoFielMejorVersion.jpg" alt="contratofielmejorversion" width="800" height="615" />[/caption]</a>

As you can see I have modified the download instruction and it works for me.

If you can have a look now, it would be amazing.

Anyway, I will try deactivating the other plugins tomorrow to see what’s going on.

Thanks a lot for the support and the patience and have a lovely night —for me is time to sleep. :wink:

Thanks!

Unfortunately, the only way I can get the unprotected PDF to download is to right-click on the image first, and then left-click. I suspect it’s the way you are creating your hyperlink, which looks very odd to me with those shortcodes.

Ah! I just had an idea and viewed your page source. I see you are using Elementor, which I have only just heard about, but which I believe is a “page builder” plugin. If it’s anything like others I’ve seen, that will be your problem right there.

I hate page builders! They are really only good for sites that hardly use anything else.

Hello back!

As far as I know, everything looks really weird.

In my case, on the computer there is not issue at all. However, it still doesn’t work on my mobile. Nonetheless, on my partner’s mobile (Alcatel one touch) it works perfectly.

On the other hand, I tried something similar as your “method” on my mobile device and it have worked. If I maintain pressing the image until the dialog box appear and then select “save link as” it is downloaded successfully. Ain’t weird?

In regards to plugins, I am only using Elementor to build few pages. At the moment it’s only being used in the home page. I would like to use it on a landing pages for sales but nothing else.

However, I understand your concern and now it’s disabled as well as all of them apart from s2member (of course) and wpcourseware and the wpcourseware addon for s2member.

In any case, it still does not work on my mobile so I believe is an issue on my android device.

These are the plugins I have:

  1. Clef
  2. Conditional menus
  3. Elementor
  4. Limited login attempts
  5. User switching
  6. All 404 Redirect to Homepage
  7. BackWPup
  8. Catch IDs
  9. Comments - wpDiscuz
  10. Duplicate post
  11. Genesis Dambuster
  12. s2Member Framework —ENABLED
  13. Thrive Leads
  14. UpdraftPlus - Backup/Restore
  15. WP Courseware —ENABLED
  16. WP Courseware - s2Member Add On —ENABLED

Explanation:

  1. As you can see I am using 3 plugins for backups. It is because I don´t know which one is better.
  2. I hate when the 404 page appears giving some information that should be private. That’s why I prefer to send the user to the home page or any landing page.
  3. I’m in love with Genesis Dumnuster because it eliminates boundaries whenever you need without coding.
  4. I am using wpDiscuz just for comment voting.

I don’t want to put more work on you but if you have any suggestion I will appreciate it.

Thanks for your patience!

I like UpdraftPlus. (I found BackWPup rather difficult to use when I actually wanted to restore a backup, though that was a few years ago now.)

Since you still have WP Courseware running, that’s the most likely candidate for a conflict. But you might also find this suggestion on Stack Overflow helpful: http://stackoverflow.com/questions/9165047/download-file-without-right-click

1 Like

OM*G!

Honestly, I am using Wpcourseware because is the only solution I have found but I would rather use something else “better”.

On one hand, I am using it because the tests are mandatory to continue.
I was trying to add a mandatory quiz to move along and I wasn’t able to find one with that option.

On the other hand and less important, because dripping content is quite simple.
I would rather use the dripping feature for a whole page or post rather than only the content of any.

Do you know any other way to block a whole page or post and make it appear (drip it) after a while?

And what about a plugin —or something— that force you to pass it before you are allow to continue?

I was struggling, as well, with the header menu. I wanted to make it drip at the same pace as the modules of the course but I had to give up.

Thousand thanks!

Hi @Ray,

Sorry to get in your talk, but here is a plugin that may be helpful for you. Your menu may need some custom code.

1 Like

@krumch, Useful input, as always! I assume the timing runs from the date on which a user obtained a specific role or capability, and not just when they became a site member?

@Ray, I don’t know of any other plugin that offers the ability to “block” access to a post or page until a prerequisite (like a unit or quiz) has been completed, but then I can’t say that I am particularly familiar with LMS plugins.

@KTS915 Thanks :slight_smile: Yes, time counts from the purchase moment of the exactly playlist.

1 Like