• Hello!

    First of all thank you for your plugin! But now I have an issue… In the following page (my page):https://gmc-peru.com/administracion-de-costos-2/ I am using the EBD plugin (both mode: inline and email), after I put the name and email and send “download” (in my specific case: ‘descargar syllabus detallado’ button) it appears the link of the PDF to download, but when I make click in the link nothing is downloaded and I finish in an “500 Internal Server Error” page: https://gmc-peru.com/wp-content/plugins/email-before-download/download.php?dl=581d99fe2591397285fd2bd7927b5e92 Is a weird path…

    If you see in this same page, I have left down “on purpose” another link to reach the download file and this works fine! (it has the same id: [download id=”979″] ) and the path is the correct one (not the weird path above)… But when I use the EBD putting or using the [email-download download_id=”979″ contact_form_id=”906″] happens what I have told you first… I finish in that weird 500 error page…!

    I have also tried several times to flip the setting for the “hide/mask real url” in the EBD settings: if it’s checked I’ve uncheck it and retest .. if it’s not checked then check it and retest, but neither works…!

    Additonaly, I can tell you that in the Email Before Download Options, exactly in point 2 “Hide/Mask Real Link option” it appears the following quote: “Hide/mask the real file link from the user. It requires the cURL php extention to be enabled, which is done by uncommenting it from the php.ini file. Check if cURL is enabled.” But when I click in the link: Check if cURL is enabled, it takes me to another “500 Internal Server Error”. Does this matter?

    If you need it, my form in Contact 7 is as following:

    <p>[submit class:btn “Descargar Syllabus Detallado”]</p>
    <p>E-mail (para descargar y enviarle el syllabus!)<br />
    [email* your-email]</p>
    <p>Nombres (opcional)<br />
    [text your-name]</p>

    [acceptance Politica default:on] Acepto las condiciones de tratamiento para mis datos personales.

    I’m trying to give you all the possible data, but if you need more, please don’t hesitate in require it…

    I don’t know what’s happening… Please I would appreciate a lot if you can help me please!

    I’m using: WordPress 4.7.4 – Download Monitor 1.9.6 – Contact Form 7 4.8-dev – Email Before Download 3.5 (incedibly updated just some minutes ago… But I have this problems like 8 months ago!)

    Thanks a lot in advance!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Nearly exact problem I am having – only difference is mine returns a 404 (Page Not Found) error. I’ve checked/unchecked, re-downloaded, re-created, re-typed, etc. Nothing fixes it.

    I’ve had the same issue. Make sure your CF7 form names are [your-name] and [your-email]. I think the plugin expects the form names to be unchanged from the CF7 default for name and email. Changing those back fixed the issue for me.

    Plugin Author mandsconsulting

    (@mandsconsulting)

    Hi cekar,

    I just navigated to the URLs you provided to test. I did receive the email with download. I hope this means you were able to resolve the issue. If so, can you please mark this as resolved and mention what you did to fix in case it will help others (such as sdgolightly) that might be facing a similar problem?

    Also, thanks to gspowart for offering the tip about the CF7 form field names!

    Thread Starter cekar

    (@cekar)

    Dear mandsconsulting,

    Thank you for your reply and for your plugin!

    As I told in my first text, my problem is with the “inline download link”, not with the e-mail and its attachement, fortunately this is working well, I receive the “attached” PDF (not the link).

    The problem is with the “inline download link” that ‘appears’ just after you have inserted your e-mail and push the send button… When this “inline download link” ‘appears’ and you click on that to download the file, it sends you to a “500 Internal Server Error” page: https://gmc-peru.com/wp-content/plugins/email-before-download/download.php?dl=581d99fe2591397285fd2bd7927b5e92

    Please don’t confuse the “inline download link” that ‘appears'(and is not working) after we have insert our e-mail and push de send button… with the other link I have left down “on purpose” just to make you see that the path to get the downlodable PDF file works fine…

    I would be really gratefull is you may read one more time in detail my first post, where everything is detailed…

    Thank you a lot again in advance for your help!

    My issue is similar – email before download function works and it delivers a link. The link though returns a 404 error.

    FYI – my issue was finally resolved after quite a bit of sleuthing. Thank you to all who helped and stuck it out. In simple (and hopefully correct) terms, the issue was due to a htaccess file hanging out in an odd place with a bad script. Why it was there – we’ll never know … but it’s gone now and the functionality works.

    Thread Starter cekar

    (@cekar)

    Congrats @sdgolightly! I hope I can also find a solution for me…

    @sdgolightly @mandsconsulting @dtynan Based in what sdgolightly comments, my explanations (mainly the 1st one) or other possibilities, may you suggest me some guides please?

    Thanks everybody in advance!

    Cekar –

    It’s often helpful to look at the webserver’s error log file in order to debug 500 Internal Server errors. Often, it will have some text in the error that will clue you in to where the problem might be. Your system is hosted by 1and1, so the server error log file is going to be exposed through their cpanel menu probably. You should be able to cause the 500 error then look at your log on their site & see the 500 error show up in there.

    Aside from any clues from the error log, another clue is the fact that every php program file in the plugin directory gives a 500 error when accessed externally — by that I mean when I go to it with my browser, as opposed to wordpress loading the plugin itself inside its own running wordpress process, which is how almost all plugins are accessed. Because EBD has features like link expiration, people have to directly access the plugin files from outside with a URL that has wp-content/plugins/email-before-download/download.php in it. Normally, people don’t directly access plugins that way.

    We can see that all the php programs give a 500 error on your site. Try these:
    https://gmc-peru.com/wp-content/plugins/email-before-download/checkcurl.php
    https://gmc-peru.com/wp-content/plugins/email-before-download/export.php
    https://gmc-peru.com/wp-content/plugins/email-before-download/email-before-download.php
    and so on. Normally those programs do not give 500 errors.

    That could be the result of not configuring your webserver to disallow running of php files from non-localhost (from over the web). People sometimes do that for security. Sometimes security plugins or services do that as well. The likely reason it results in a 500 error is because it’s outputting some sort of error message that doesn’t contain an http header, so the server gives a 500 error.

    Now, aside from the 500 error, I see some other weird stuff happening when I submit the EBD form. It may not be a problem, since it does run and displays the download link, but it doesn’t look normal. Normally, when the website visitor submits the EBD form, the browser does an ajax POST back to the same webpage and the result that is returned is a couple of lines of JSON which update the page with the link to the download & a thank you message. On your site, when I submit the EBD form, it looks like it submits to the correct place, but the result that comes back is delivered from https://gmc-peru.com/wp-json/contact-form-7/v1/contact-forms/988/feedback which I have never seen before. I believe /wp-json has to do with the WordPress REST API. Somehow it seems to intercept the submitted request, or the returned result. My guess is that it’s grabbing the returned result from EBD because it’s JSON format, but I’m not really sure. Now, the URL is weird too. v1/contact-forms/988/feedback .. I’m guessing you must have a Contact Form 7 integration plugin installed under the “Integrations” section of Contact Form 7 maybe? I’ll bet that is intercepting all CF7 submissions or results. Anyway, I don’t know that it’s causing problems, but it could be an issue. It might be related to the 500 Internal Server error, but I think that’s unlikely….

    Thread Starter cekar

    (@cekar)

    Dear @dtynan,

    Thank you for your long and detailed reply, I really appreciate it!

    I’m not a programmer, but I’ll do my best to follow all your advices and finally find out what’s happening in order to resolve this issue…

    Now in 1and1, I’m in “Managed WordPress” mode… do you think it has something to do with my issue? I’m thinking seriously to change to “Standard WordPress” mode, due I can’t access for example to the “Editor” (inside appereance) to make other changes, etc.

    I’ll keep you informed,

    Thank you again!

    I don’t know.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Inline download link: 500 Internal Server Error – Doesn’t Work!’ is closed to new replies.