• 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://wordpress.org/plugins/email-before-download/

Viewing 15 replies - 1 through 15 (of 19 total)
  • it looks like you have combined the CF7 shortcode with the EBD shortcode, which is not right. A valid EBD shortcode would look something like this:

    [email-download download_id=”5246″ contact_form_id=”5240″]

    try that. If that doesn’t work, make a test page that is public and post the URL back in here so I can try it.

    Also, it is usually helpful to make your download be something other than a pdf file (like a .jpg). You don’t have to do that, but sometimes it can help narrow down the problem.

    Thread Starter bnurcan

    (@bnurcan)

    Thank you for your reply dtynan, I tried this code and uploaded jpeg but it doesn’t work. I don’t want to publish the page because it is business web site, not mine.

    What I can do? I have to do that. Is there alternative plug-in instead EBD or how can I fix this error?

    There is no alternative plugin that does the same thing that I know of.

    It’s ok if you can’t publish a test page, we can probably figure it out, you just have to try some stuff & tell me what you see & so on.

    One problem that can cause the issue that you are seeing is if you have used wordpress reserved words in the field names of the CF7 form that you made. You need to make sure that the fields you have in there are “your-email” (for the user to put his email address in) and “your-name” (assuming you have a name field. If you have any other fields, make sure they are your-whatever, just to be safe. It needs to look like the CF7 form on the screenshots page of Email Before Download ( https://wordpress.org/plugins/email-before-download/screenshots/ )

    Another thing that can cause that problem is if your page doesn’t have a wp_footer. Some themes are missing that and will cause CF7 to issue that error. Your theme must have a wp_footer, which is usually created by calling the wp_footer() function. Since i can’t see your page, you will need to figure that out on your own. Note that if you followed the instructions and made sure you got CF7 working properly first (installed it, made a little test form in CF7, made a WP page, put the cf7 shortcode in there, used your browser to go to it and fill it in and submit it, made sure you got the email), then a missing wp_footer is not the cause of the problem. If you did not test CF7 fully first, then missing wp_footer could be the problem … you could go make a test page now & put the cf7 shortcode in there (not the ebd shortcode) and try it and see if you get the same error (then you’ll know for sure).

    Thread Starter bnurcan

    (@bnurcan)

    Thank you so much for your helps dtynan. Ok, I’ve fixed this, I changed Contact Form 7 values and form appeared on page, but there are still some troubles. When I click submit button, system is giving adverse reply and I think it is failed. Then e-mail is coming to my e-mail address. There is a dowload link, everything is ok, but link is not working (file not found error)

    There is something of EBD options, “Check if cURL is enabled”, when I click that, it is giving file not found error too. This is link: http://www.keytorc.com/wp-content/plugins/email-before-download/checkcurl.php. Is this related my problem? I uploaded file via Download Monitor plugin. File’s link is working. Why is it giving this error?

    The curl thing doesn’t matter, ignore it.

    What did you change to make the form appear? I need to know what was wrong.

    I didn’t understand your description of what is happening now. Are you to ‘both’ in the EBD settings? When you get “adverse reply”, what does that mean – an error appears below the submit button or..? In one sentence you say there is a download link but you click it and get file not found. Then, at the end you say “File’s link is working”.

    You need to make a page so I can see this or else describe what’s happening in much greater details – maybe with screenshots.

    Seeing any kind of file not found message is definitely not right — that makes me think you have the wrong number in there for download_id maybe. Hard to say from your description.

    I am also getting a 404 Error code for AFTER the Name and Email are submitted.

    After completely following tutorial steps and publishing the page that holds the code, I submit my name and email, which are asked for. The “inline link” pops up like it should but once I click on it, I am sent to a 404 Error “Page does not exist” page.

    the code I am using on the page for the form is:
    [email-download download_id=”3194″ contact_form_id=”3193″]

    **I do know for certain that the given IDs are correct.

    Here is the link to the page to test … http://www.clickfox.com/test/

    Are you set to ‘both’ or to ‘inline’?
    (Set it to ‘both’ and set it to do attachments please)

    Also, in your Downloads (the Download Monitor area of your menu), pull up your download (should be the same download_id as you have in your shortcode) and when you are looking at it in the detail page look at the top right area of the screen and there will be a URL there that is the URL to directly access that file (using only Download Monitor, bypassing EBD). Please post that URL here.

    I changed it to BOTH from INLINE.

    The download_id is 3194

    http://www.clickfox.com/download/3194/

    Great, thanks. Ok, so I tried it again and put in an email address on my own server so that I could be sure the email came through without the email service provider (yahoo, gmail, etc) getting in the way. I received the email successfully and it did have the file attached and the file is good. However, the link in the text of the email gave a 404 just like the link that appears on the webpage.

    So, that tells us that it IS finding the file ok (since it came through as an attachment). It’s just the link that seems to be messed up. I’m not sure why. It could be a conflict with your theme somehow. I don’t see any plugins that should cause a problem, so probably not a plugin conflict, but there’s always a chance.

    If you have Hide/Masked checked, uncheck it (same for expiring). Try that. Let me know what happens.

    If that didn’t help, go back into that same screen in Downloads for your download and check “Redirect to File” over on the right side. Try that. Let me know what happens.

    also, if Hide/Mask has been unchecked the whole time, try checking it and trying again. It could be that you have some tests & redirects in your apache config or htaccess files that are somehow getting in the way.

    So I used my own personal GMAIL account and then our company domain, and I still haven’t received a single email.

    I changed it from being unchecked and never expire to checking hide/mask and expire after 1 week. I still did not get an email and it gave me the 404 error.

    Redirect to download still gave me the 404 error … and no email was received at all.

    I can, however see that you were able to download the form 8 times.

    The email download works with my GMAIL account but not my work email. It does however send it to the junk folder in GMAIL

    Ok, I’m gonna give you quite a bit of info here so you understand what’s up. The email delivery problem and the 404 problem are probably not related. I will explain the email delivery problem next, in this comment, then I will do a separate comment on what we can try next on the 404.

    EMAIL DELIVERY PROBLEM:

    The email not showing up is a separate (and common) issue. Yahoo Mail, Gmail, and so on have anti-spam measures in place that are preventing the email that goes to the web surfer who filled your form from getting through. It has to do with the From: of the email that is being sent.

    The email shows up for me because I sent it to my own linux server and I don’t have any antispam measures turned on.

    To be clear, I’m talking about the email that goes to the email address that some web surfer filled in on your form (on the test page in this case). That email is the one with the link to the file and (in this case) the attached pdf. There is a different email, that I call the Notification Email, which goes to the wordpress admin (which is probably one of your email addresses). The notification email almost always goes through (it is sent by Contact Form 7). The other email (the one with the link & attachment) is the one that often has trouble getting through (it is sent by EBD and when you are on a shared hosting environment it will usually have a From: that doesn’t match your domain name and/or is not a real email account, which causes it to not get through to some email addresses because it looks like spam to some email providers).

    Most people on here fix that problem by installing a plugin called Postman SMTP by Jason Hendriks. That plugin is very nice, has an email delivery log, and lets you set various fields like the From:, and so on. That plugin is at
    https://wordpress.org/plugins/postman-smtp/

    Alternatively, you can install a plugin that lets you set the From: of the email sent by EBD. That plugin is at
    https://wordpress.org/plugins/custom-sender-for-email-before-download/
    You set the From: to be a valid email address at your domain (clickfox.com). Note that every time you change & save your Email Before Download settings, it may wipe out the value you have put in there, so you need to remember to double-check it & put it back in there if needed. (that is one reason it is better to use Postman SMTP).

    Ok, on the 404 problem, it looks like something is set up wrong or somehow interfering. I suspect there is some issue related to PHP files.

    My guess is that you have some security setting somewhere that is preventing PHP files from executing when they are accessed from somewhere other than localhost.

    This could be a setting in your apache config file or in htaccess files or in some security plugin in your webserver (apache module of some type) or a wordpress security plugin.

    Or, it could be some sort of php misconfiguration. That would probably take the form of a FILES directive (or related regex matching directive) that is targeting PHP files.

    The reason I say all that is because I can go to
    http://www.clickfox.com/wp-content/plugins/email-before-download/readme.txt
    using my browser and it shows me the EBD readme.txt file.

    But if I go to any of the PHP programs, I always get a 404, which is not right:

    http://www.clickfox.com/wp-content/plugins/email-before-download/checkcurl.php
    (that should display curl is enabled or curl is not enabled message)

    http://www.clickfox.com/wp-content/plugins/email-before-download/export.php
    (that should just give a 200 success with no html, not a 404 error)

    http://www.clickfox.com/wp-content/plugins/email-before-download/download.php
    (this is the program that executes when the user clicks the link .. it should not 404)

    http://www.clickfox.com/wp-content/plugins/email-before-download/email-before-download.php
    (on mine that gives a 500 internal server error, but I have made modifications .. regardless, it should not give a 404).

    All of yours that end in .php and that are in the plugins area are giving a 404, which is not right. Definitely configuration problem or security crap getting in the way.

    I’m having a similar problem. I followed all the steps to setup the Download Monitor, Contact-7 and EBD plugin correctly, but it’s weird because when I upload a file using Download Monitor, the ID #s are off by one. (see image below)

    View post on imgur.com

    Because of the difference in IDs, I’m getting a 404 error when trying to use the Email Before Download plugin.

    Here’s the page where the issue is reproducing:
    http://www.kwaddle.com/blog/index.php/austin-summer-camp-guide-2016/

    Download Monitor version: 1.9.4
    Email Before Download version: 3.4.2
    Contact-7 version: 4.4.2

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