• Hi,

    I have a pdf, I want to take e-mails before download, plugin will send download link to visitors. I added Contact Form 7, installed E-mail Before Download Plugin with Download Monitor, but page is giving error. When I preview the post there is only [contact-form-7 404 “Not Found”]. Contact Form is working without e-mail before download plugin code.

    My code is [email-download download id=”5246″ contact-form-7 id=”5240″ title=”download_deneme”] and I am sure IDs are right.

    How can I fix this, can you help me? Thanks in advance.

    https://www.ads-software.com/plugins/email-before-download/

Viewing 4 replies - 16 through 19 (of 19 total)
  • To add some more info to my last post…I get a Forbidden error when trying to go straight to the url of the file:

    https://www.kwaddle.com/blog/wp-content/uploads/dlm_uploads/2016/05/2016-Austin-Summer-Camp-Guide-by-Kwaddle.xlsx

    But, when I check the permissions of the file and folder it shows read access:

    View post on imgur.com

    I think I’ve figured out a hack to my problem. my problem being that the file IDs are incorrect when using the Download Monitor plugin. To work around the problem here is what I did:

    1.) on my amazon AWS server, there is a .htaccess file being created in the dlm_uploads directory that had an entry to “deny all”, this was blocking direct access to the file, so I removed the “deny all” in the file.

    2.) now I am able to access my file directly, which isn’t ideal, but at least users can now download the file.

    3.) the EBD plugin was still showing an obfuscated link for users to download the file and this link was giving the 404 error. so I used CSS to hide the link created by EBD by adding an “Inline Custom Link CSS” in the EBD settings and then adding CSS to my theme to hide the link.

    4.) Then, using the EBD setting for “HTML after link” I added my own link directly to the file.

    I know this is hacky, but I wasn’t sure how else to get the EBD plugin to work. Any suggestions would be greatly appreciated.

    The ID difference is normal in the Download Monitor area when you’re looking at a download’s detail page like in your screenshot. That versioning section in the middle always has an id that is 1 higher than the id in the top right area of that screen. The correct id to use is the one in the top right.

    This all should still work even if dlm_uploads is protected like yours was with the .htaccess in a directory above it somewhere.

    So, the thing to do is to concentrate on the Download Monitor part and get that working — ignore the CF7 and EBD for now…. You should be able to upload a file into Download Monitor, see it in the list of Downloads, edit it to get to the detail screen, then copy that URL from the top right and paste it into a different browser and it should work. That URL will be something like: https://kwaddle.com/blog/download/115
    or something like that. Going to that URL should cause the uploaded file to try to download or display.

    I think what you should do is get a new file .. make it a .jpg file .. give it a filename that you have never used before and then upload it to Download Monitor. Go into it’s detail page and copy that URL and paste it into a completely different browser (not the one you are logged into wordpress with). It should work.

    If it doesn’t, post the URL in here so I can see it.

    The one thing that’s different about your setup is that your wordpress site is under “/blog”. So instead of https://www.kwaddle.com/download/115 it ends up being https://www.kwaddle.com/blog/download/115. That might be the problem, but you’d think that should work. In the Download Monitor settings there should be an “endpoint” url or something like that … I’d be curious to know what that says.

    also, make sure you did NOT check “redirect to file” in the detail page for your download.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘404 Not Found Error’ is closed to new replies.