Viewing 5 replies - 1 through 5 (of 5 total)
  • Ok, I looked over both of your pages. I see a few odd things (on both pages).

    Let me start with a question first — are you set to “both” or to “inline”? I did not receive an email from either page, so if you are set to “both” then it’s not working for the delivery of the email to the end user (though you may be receiving the “notification email”, which is the email that goes to the admin user and tells you what someone downloaded).

    For both pages, I immediately see an odd thing in that both pages when they first load (before the end user has even seen the page) issue an ajax get, which is not right. It looks related to Contact Form 7 because it has some CF7 variables. It gets back an empty data set (an empty array). That doesn’t seem to affect the initial page load since everything looks ok after that, but it does tell me that you have some plugin or javascript that is interfering with your ajax stuff somehow or with your forms .. it may not be enough to break things, since things generally seem to do ajax OK after that point, but it’s suspicious.

    Looking at the page that you said works ok, I can fill in the form and press Submit and it looks good at that point. A link appears with the text “Link Smart Update – Social Contributions for 2015” and the URL associated with that is https://www.smartree.com/wp-content/plugins/email-before-download/download.php?dl=c8dcfafd130b0b681596d0a5a988e06d If I click that link, it does a 302 redirect to this URL, which is the Download Monitor URL for your file: https://www.smartree.com/download/5892/ Going to that URL will pop up a download box in Google Chrome and it will be filled in with the filename Smart-Update-Cote-contributii-2015.pdf. If I click the Save button, then it fails to save it and says something about a Network Error. So, that tells me that even if we are dealing with just your Download Monitor set up and your files (completely outside of EBD), then it is not working correctly. If you look at each file in Download Monitor, in the detail area, you’ll see a URL for the file (it’s kind of in the top right area of the screen). You should be able to take that URL and put it in a browser and download the file, but that is not working for your site. So, I suspect that that file is missing off your filesystem, or it’s 0 bytes in length, or it can’t be read because of permissions, or the path is wrong, or one of your plugins is interfering, or you have some weird redirects or misconfiguration in your Litespeed setup or other proxy or caching or webserver or load balancer. Until you fix this, nothing is going to work I suspect.

    Over on the other page, the one that doesn’t even show the link, the issue there is that the download id is not getting set right. This is probably a mistake in your shortcode. So, what happens is that when you press Submit button, a bunch of variables get passed on to the server. One of those is called _wpcf7_download_id and it is created from the download_id value of the shortcode. In your form that works mostly, it is filled in with a value of 20. On this form, it is empty. So, on this form, you are missing the download_id or have a syntax error in your shortcode or there is a problem in the Download Monitor part where the file associated with that download_id is really messed up or something. The fact that you are multilingual may be an issue — I’m fairly certain that filenames (on the filesystem itself) or file titles (in download monitor) with any kind of non-English character can cause problems (like things with an accent mark).

    Thread Starter SmartreeRomania

    (@smartreeromania)

    Hello,

    Thank you for your complex answer!

    I tried to follow your suggestions. I didn’t find any error on the pages and I double check the file links. Even if the site is multilingual, in fact bilingual, the other language doesn’t use any special or non-English character that could cause problems – no accent marks, no diacritical marks etc.

    I don’t know what to do next ??

    Go look at your downloads (the files you have uploaded into Dowonload Monitor). Click Edit on one of them so that you are looking at it’s detail page. In the upper right of the screen there is a section titled “Download Information”. It has 3 fields — ID, URL, and Shortcode. Grab the entire value of the URL field. Put that in a browser and see if you can completely download one of your files (put it in a browser, hit enter, it should pop up a file save box, click Save and see if really saves the file [I suspect you’ll get a network error in the lower left of the browser & you won’t actually save the file]).

    Post back in here & tell me what happened. Include the URL that you tried.

    Thread Starter SmartreeRomania

    (@smartreeromania)

    Hi there,

    I tried to save a file directly from the link generated by the Download Monitor:

    https://www.smartree.com/download/7331/

    As you correctly suspected, I received an error and I wasn’t able to save the file. You can see the error here:

    https://smt.0d.ro/wp-content/uploads/2015/10/link-error.png

    Thank you again for your answers!

    That means the problem is not with Email Before Download.

    The problem is one of the following:

      something wrong with your file (like it is zero bytes long)
      something wrong with your Download Monitor setup
      some other wordpress plugin or theme messing things up
      something wrong with your webserver config

    If you don’t have any ideas of what might be the problem, then I suggest the following:

    remove Email Before Download and Download Monitor plugins
    if you weren’t already using Contact Form 7 then remove that too .. otherwise leave it
    install the latest version of the Download Monitor plugin
    make a test file to upload — make sure it is a NEW filename that you have NEVER used before and make it be a .jpg or .png file (do NOT use pdf files).
    in your wordpress admin menus, go into Download Monitor and Upload that file that you just made.
    once you have uploaded it successfully, look at your list of files in Download Monitor and make sure it is there and then click “Edit” and look at the top right area of the screen for the URL for that file.
    copy and paste that url into a browser and hit enter
    the save box should appear, click save and see if it will save
    if it saves, then you can go install Email Before Download
    if it does not save then you know for sure that the problem is with your webserver configuration or with some other plugin interfering or there is some sort of weird permissions problem (though I can’t think of one that would cause that).

    Assuming it doesn’t save, then you need to talk to someone technical who understands your webserver setup. You are not using Apache, so I don’t really know what could be wrong on the webserver part.

    Again, if you haven’t disabled your other plugins & tried it, then that’s a big troubleshooting step you need to try.

    You could also go post on the Download Monitor support forum and see if they can help you, though it is pretty clear this is a problem with your setup / your environment and not a problem with their plugin, so they may not help, I don’t know…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The download link is not showing’ is closed to new replies.